Re: [Plib-users] re:Billboarding
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-01-26 02:08:15
|
Luca Masera wrote: > I've used it for a while, but it works differently from what I need so I created a class similar to > the ssgaParticleSystem that meets my requirements. > Because the billboarding doesn't works, I've studied it and I've understood the steps that bring the > objects to be perpendicular to the plane of view (not to the point this is a less but more efficient > way to create billboards). When I've printed to the screen the data into the matrix > GL_MODELVIEW, used to rotate the objects, I found that they don't rotate because the matrix > is, always, the identity matrix. To be sure that the problem is there, I've made the same with > the water example: into it the GL_MODELVIEW matrix changes when the point of view moves. Remember that in OpenGL, the 'camera' is always at the origin, staring down the Z axis. If you want something to be aligned to the plane of the screen, you *WANT* your modelview matrix to be the identity matrix! ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |