ok heres the deal.
im trying to render a 1280x480 screen which is split into 2 640x480 halves. i have set up two cameras in order to render (pretty much) the same thing to each half. heres my code:
Const scrw = 1280
Const scrh = 480
; constants for screen resolution
Graphics3D scrw,scrh,16,2
Global maincamLEFT = CreateCamera(mainpivot)
; makes the camera for the user's point of view and attaches it to the pivot
CameraRange maincamLEFT,0.1,1000
; set vision range for camera
Global maincamRIGHT = CreateCamera(mainpivot)
; makes the camera for the user's point of view and attaches it to the pivot
CameraRange maincamRIGHT,0.1,1000
; set vision range for camera
CameraViewport maincamLEFT,0,0,600,480
CameraViewport maincamRIGHT,640,0,640,480
when i run it i get a memory access violation. whats going on?
cheers,
neil
im trying to render a 1280x480 screen which is split into 2 640x480 halves. i have set up two cameras in order to render (pretty much) the same thing to each half. heres my code:
Const scrw = 1280
Const scrh = 480
; constants for screen resolution
Graphics3D scrw,scrh,16,2
Global maincamLEFT = CreateCamera(mainpivot)
; makes the camera for the user's point of view and attaches it to the pivot
CameraRange maincamLEFT,0.1,1000
; set vision range for camera
Global maincamRIGHT = CreateCamera(mainpivot)
; makes the camera for the user's point of view and attaches it to the pivot
CameraRange maincamRIGHT,0.1,1000
; set vision range for camera
CameraViewport maincamLEFT,0,0,600,480
CameraViewport maincamRIGHT,640,0,640,480
when i run it i get a memory access violation. whats going on?
cheers,
neil