Hello Guest

Author Topic: example demos -- transforms not in pixel units?  (Read 3946 times)

alcove

  • Newbie
  • *
  • Posts: 5
    • View Profile
example demos -- transforms not in pixel units?
« on: November 02, 2012, 08:24:12 pm »
Just learning this now, and was confused because the documentation seems to refer to placing items via pixel units that are interpreted by the toolkit camera -- but the examples, such as the sheep in the field, seem to have transform values for x and y between 0 and 1.

Am I missing something basic?

Thanks,
Scott

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: example demos -- transforms not in pixel units?
« Reply #1 on: November 03, 2012, 12:25:46 am »
There are two options - use a normal ortho camera (units will be whatever arbitrary ortho size you pick), or use the tk2dCamera, where the units are pixel sizes. The tk2dCamera is used in sample 11.

alcove

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: example demos -- transforms not in pixel units?
« Reply #2 on: November 08, 2012, 05:26:39 pm »
Thanks for the quick response. I was confused by the number of references to pixel units and then the use of the normal camera in most of the examples.