Particle help
i''m kind of a newbie on openGL programming so i thought i could get som help from this forum...
Based on the code for a particle engine from tutorial 19 I''ve made some changes... but one thing that I have noticed is that when you rotate the scene the particles also turn, not only their positions(..kinda fuzzy). So, how DO you draw (or rotate) the particles so that they will look the same no matter where you look at it from..
I am not familiar with OGL so I can''t give you specific help, but it sounds like the particles are billboards. You can look in the turorials for where billboards are discussed.
Also, if you have a grasp on what is going on, look at where the transformations matrix is created for the particles, and there should be some code that refers to the camera, so that the particles will be rotated to face them. In the update of the particles, you should be able to just move them, as opposed to move and orient to the camera.
Note: Most particles systems are oriented to the camera, so that the particles need only by 2 poly objects with a fancy texture, instead of a more complicated 3-d shape.
Note on Note: Unless you are working with artist who like wasting resources. *sigh*
Also, if you have a grasp on what is going on, look at where the transformations matrix is created for the particles, and there should be some code that refers to the camera, so that the particles will be rotated to face them. In the update of the particles, you should be able to just move them, as opposed to move and orient to the camera.
Note: Most particles systems are oriented to the camera, so that the particles need only by 2 poly objects with a fancy texture, instead of a more complicated 3-d shape.
Note on Note: Unless you are working with artist who like wasting resources. *sigh*
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement