CameraProject with split screen ?

Blitz3D Forums/Blitz3D Programming/CameraProject with split screen ?

angel martinez(Posted 2006) [#1]
I am trying to use the CameraProject command in a split screen project setup with two cameras but the case is the second camera returns the same screen-camera position (with ProjectedX,ProjectedY) for an object-entity as the first camera.I don't know if that command can be used in this way, and if is there any solution...
(Of course I am using CameraProject camera1,x#,y#,z# and CameraProject camera2,x#,y#,z#)


GitTech(Posted 2006) [#2]
Something like this?

CameraViewport camera2,100,150,250,325


CameraProject camera2,x#,y#,z#

screenX=ProjectedX() + 100  ; add X coordinate of topleft corner of the camera
screenY=ProjectedY() + 150  ; add Y coordinate of topleft corner of the camera



Stevie G(Posted 2006) [#3]
The cameraproject results are only in relation to viewport space, not the full screen so GitTech solution will work for you.

Stevie