ok i’ll try to describe this as best as possible (this is my first opengl project, and im learning new stuff all the time)
I have a routine AddObject which takes in an ObjectID, xpos,ypos,zpos,xrot,yrot,and zrot… i have this working fine by just pushing the models on the matrix doing whatever.
Then I use gluLookAt to view the Objects from wherever (im too lazy to implement my own translate/rotate routines) and for all intents and purposes, this works fine.
The trouble comes in when i try to add my particles, they need to be able to be placed explicitly like the Objects, but always rotate to face the origin from gluLookAt… I can get them to face the camera at all times, but then translating the particles doesn’t really work out, (im guessing because its using the gluLookAt’s matrix) if i treat it like a regular Object it will not rotate to face the camera… (i imagine there is a nasty algorithm to rotate to the xyz origin locations of my camera… but thats entirely too slow… and i’d prefer that it be done right on the matrix if possible.
I could be going about this completely the wrong way (again its my first opengl project)… any advice would be life saving…
thanks,
Kent