06-25-2000, 04:28 AM
hi
i have a problem: i want to make a space game and you can see the world in first person view like in wing commander or freespace. So i've coded that i can shoot but the shoots doesnt fly correct. When i rotate about myself the shoots rotete with me cause i must first rotate how the player has rotated. I've then calculatet the shoots relatively to the "camera" that doesn't really exists. Then the shoots fly correct. But if i move my spaceship theres the next problem i must calculate the shoots another time relatively to the camera. This can't be the way to program games or? Is it so complicated? So my question: is in OpenGL a camera like in DirectX that i can use? Or is there another trick like putting all objects in a matrix then rotate and translate the matrix and THEN render the whole matrix at once? Thanks
Cu
Shadow
i have a problem: i want to make a space game and you can see the world in first person view like in wing commander or freespace. So i've coded that i can shoot but the shoots doesnt fly correct. When i rotate about myself the shoots rotete with me cause i must first rotate how the player has rotated. I've then calculatet the shoots relatively to the "camera" that doesn't really exists. Then the shoots fly correct. But if i move my spaceship theres the next problem i must calculate the shoots another time relatively to the camera. This can't be the way to program games or? Is it so complicated? So my question: is in OpenGL a camera like in DirectX that i can use? Or is there another trick like putting all objects in a matrix then rotate and translate the matrix and THEN render the whole matrix at once? Thanks
Cu
Shadow