RenderWorld Issue

BlitzMax Forums/MiniB3D Module/RenderWorld Issue

BLaBZ(Posted 2013) [#1]
Tricky issue, whenever I call render world, or TGlobal.RenderCamera the only camera rendered is the last one called.

I'm rendering to a canvas from MaxGUI -

Any help greatly appreciated!

Thanks


GfK(Posted 2013) [#2]
If it works like blitz3d, thats normal. You need to change the camera properties with CameraClsMode. If its the same as blitz3d. Which it might well not be.


BLaBZ(Posted 2013) [#3]
Yeah, it works property if I'm not rendering to a canvas from MaxGUI, I got it to work by calling setviewport first (CameraViewPort is being set prior as well) -

SetViewport(0, 0, GraphicsWidth() / 2.0, GraphicsHeight() / 2.0)
		TGlobal.RenderCamera(Cam1)
		SetViewport(GraphicsWidth() / 2.0, 0, GraphicsWidth() / 2.0, GraphicsHeight() / 2.0)
		TGlobal.RenderCamera(Cam2)
		SetViewport(0, GraphicsHeight() / 2.0, GraphicsWidth() / 2.0, GraphicsHeight() / 2.0)
		TGlobal.RenderCamera(Cam3)
		SetViewport(GraphicsWidth() / 2.0, GraphicsHeight() / 2.0, GraphicsWidth() / 2.0, GraphicsHeight() / 2.0)
		TGlobal.RenderCamera(Cam4)