Hello
In y new game, I must use a backdrop camera. My new game is a point & click whit a static background. The backdrop camerea means a 2D picture which is drawn in the back of 3D world. After I do that, I will put a plane mesh for collision. It will be invisible. The camera don't have to move.
What are the solutions with Irrlicht to have this static view?
Backdrop camera
create the static camera then render its view once to a texture and use it for the mesh. after that you can drop the camera and start the main game loop.
Last edited by Frodenius on Sun Mar 25, 2007 3:54 pm, edited 1 time in total.
worst programming style ever seen...
-
- Posts: 277
- Joined: Thu Dec 15, 2005 6:11 pm
When I toyed around with this the method I used was to put the pre-rendered image on a 640 x 480 billboard (the image itself was 1024 x 1024 rendered in a 1:1 aspect ratio in Blender). Then I set up an ortho camera in addition to the main camera, set everything but the background invisible, rendered with the ortho, set everything else to visible and the background invisible, then rendered with the perspective camera.
You'll have to play around with the camera settings to get the billboard to fill the view without gaps. It's been a few months since I've tried this and I can't remember the settings.
Also, I didn't have luck with invisible collision meshes, as it seemed that when you set the mesh to invisible it quit registering collisions and I thought it would be enough of a triviality not to get Newton involved, but if you use a physics library you should be able to load a mesh to use for the collision geometry without having to draw it.
You'll have to play around with the camera settings to get the billboard to fill the view without gaps. It's been a few months since I've tried this and I can't remember the settings.
Also, I didn't have luck with invisible collision meshes, as it seemed that when you set the mesh to invisible it quit registering collisions and I thought it would be enough of a triviality not to get Newton involved, but if you use a physics library you should be able to load a mesh to use for the collision geometry without having to draw it.