Texture Size for Sprites

   1553   0   1
User Avatar
Member
310 posts
Joined: 7月 2012
Offline
Hi there! I'm a new Houdini user, so please excuse me if this is a newbie question, but I am going through the Digital Tutors Dynamics Training, and I need to assign a PNG sequence to my sprites. I am successfully able to assign the texture to my sprites, but then the texture size contains the entire png, as opposed to only 1 frame of the 8 frame sequence. The instructions within the tutorial tell us to use the following parameters in the sprite node:

Texture offset: ceil(fit01($LIFE, 0, 7))/8 $STEXV
Texture size: 1/8 $STEXW

By changing the first value of our texture size to 1/8, we are supposed to be assigning 1/8 of our png sequence to the sprite texture. Unfortunately, no matter how I change the texture size and texture offset parameters, no changes appear on my sprites. I'm really stuck, so if anyone has any ideas, i'd definitely appreciate the help.

Thanks!
  • Quick Links