Skip to main content
gamedev.net
🔒 Locked

Particle Engine problems

Started by retron Dec 4, 2001 at 9:23 AM 4 replies 250+ views
Original Post
retron
retron
Hello everyone, this is my first time here on this forum... Hope youe are kind enough to help me, and not laugh at me if the problem is to easy to solve I have made a little particle engine wich works just fine, besides the point that I always want the particles to face the camera if you understand what I mean, if i rotate around Y axis for example you can hardly see the particle and it''s all really ugly. (each particle is a quad) Thank you // Retron
// Retron
TheSalmon
TheSalmon
Try a search on Billboarding and see if it gets you anywhere.

---
No game will ever rule more than CBT!
---Mikael Lax
retron
retron
Thanx, that helped, but there is still one problem... I still want to be able to rotate around my particles....

the way my code looks now:
(cmain is the main camera)

// ... some gl stuff ... //

glTranslated ( cmain.pos.x, cmain.pos.y, cmain.pos.z );
glRotated ( cmain.rot.x, 1.0, 0.0, 0.0 );
glRotated ( cmain.rot.y, 0.0, 1.0, 0.0 );
glRotated ( cmain.rot.z, 0.0, 0.0, 1.0 );

// ... draw stuff ... //

then before i draw the particles I inverse the rotation
glRotated ( cmain.rot.z, 0.0, 0.0, 1.0 );
glRotated ( cmain.rot.y, 0.0, 1.0, 0.0 );
glRotated ( cmain.rot.x, 1.0, 0.0, 0.0 );


// ... draw particles ... //

// ... some gl stuff ... //

the thing that happends is that the particles are always facing me, but I can''t rotate around them... :/...

// Retron
// Retron
Ranger_One
Ranger_One
Nice code...

But code you provide the base geNormalize(), geNegate() etc. as well?

maybe I ask to much, but I have almost no basic math system yet for my software =/

Thanks,
Ranger

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.