mixing camera projections

BlitzMax Forums/MiniB3D Module/mixing camera projections

jkrankie(Posted 2009) [#1]
Hi,

My game uses cameraprojmode(2) to display the game on a flat plane without perspective (it's a 2d shooter using 3d models instead of sprites), however i'd like to be able to have proper 3d backgrounds (i.e. cameraprojmode(1) ) so i can have some fancy effects going on.

Is it possible to mix the two in some way? I've considered rendering the background off screen and using backbuffertotex to capture it as a texture, then using that texture on a large surface behind the game area, but i think it would probably be a performance killer.

Any suggestions much appreciated :)

Cheers
Charlie


simonh(Posted 2009) [#2]
Yes, you just need two cameras, with a different projection mode for each. Set the CameraClsMode of the foreground camera to 0,1.


jkrankie(Posted 2009) [#3]
Excellent, that's just what i wanted :) Thanks Si

Cheers
Charlie


jkrankie(Posted 2009) [#4]
who said that? not me...

Cheers
Charlie