[Plib-users] Particles & billboarding
Brought to you by:
sjbaker
From: <s4...@sp...> - 2004-09-16 15:30:05
|
Hi, at last I managed to add the particles to FlightGear and to make them follow the aircraft (it's not a trail made by a single Particle System but, instead, a trail of Particle Systems... It's a performance "eater", but it works). The results are in: http://myweb.tiscali.co.uk/vmeazza/FlightGear/particle1.jpg http://myweb.tiscali.co.uk/vmeazza/FlightGear/particle2.jpg http://myweb.tiscali.co.uk/vmeazza/FlightGear/particle3.jpg Anyway I've a problem about the "visibility" of the objects. They are visible only if the view is directily afore them. I've set to TRUE the _turn_to_face, but seems that it doesn't works right. In the code I've found that it's used the matrix GL_MODELVIEW_MATRIX, but nowhere in FlightGear it's istantiated. Maybe is this the problem? or the matrix is created by OpenGL itself? In the latter, how the matrix that defines the viewer position is defined (I'll try to get the useful data from FlightGear and use it into the class ssgaParticleSystem, but I'm a newby in 3D graphics and I don't know which data needs to be used). Thanks, Luca |