render scene twice
in
Programming Questions
•
2 years ago
hi,
i need to render the same 3D scene two times in the same frame changing the camera position. is it possible to do this without having to recall all the methods that create the scene twice?
i'd like to do something like this:
setCameraPosition(x,y,z);
box(45);
sphere(55);
...etc
model a=get3dScene(); //return all the shapes i've just created
changeCameraPosition(x1,y1,z1);
renderModel(model);
maybe using some OpenGL functions... i really don't know!
1