bandini Posted September 1, 2009 Share Posted September 1, 2009 Thought this would be easy, but it seems like a challenge. I am trying to align sprites so that their z axis is always aligned to the camera while the y axis is aligned to the direction of travel (with respect to the camera). Anybody have a nice way of doing this? Quote Link to comment Share on other sites More sharing options...
stevenong Posted September 1, 2009 Share Posted September 1, 2009 I did a quick search with "sprite" as the keyword and found this topic. Maybe it will give you some pointers. Cheers! steven Quote Link to comment Share on other sites More sharing options...
bandini Posted September 3, 2009 Author Share Posted September 3, 2009 I did a quick search with "sprite" as the keyword and found this topic. Maybe it will give you some pointers. Cheers! steven Thanks, Steven. I saw that thread while researching the problem. I came up with a similar but different solution that seems to work. I'll try to post a hip file. Maybe someone can check it out and see if they have any ideas for improvements. -Adam Quote Link to comment Share on other sites More sharing options...
bandini Posted September 3, 2009 Author Share Posted September 3, 2009 And here is the file... There's a problem at particle birth, as the birth velocity does not match the velocity of the next frame, so you get a jump in rotation. Not sure if there is a way to get the velocity from the next frame without writing out the file to disk, since that information does not exist in the simulation yet. AlignSprites_01.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.