Hello,
Been a while sense I used Blitz3D been playing around in BlitzMax, but anyways I was tyring to figure out how I could make a Camera System in Blitz3D that mimiced the one found in RollerCoaster Tycoon 3 (prospective with iso aspect). My attemps have failed, I have used a pivot to contorl the camera location and the rotation of the world, but I can seem to get the Mouse to move the camera, around the world like found in RCT3..
Bases I looking for..
- When Zoomed and looking at a object (Rotated and Facing Object) and holding the Right Mouse Button (MouseDown(2)) and moving the mouse forward. ( Im assuming that I use MouseYSpeed() ) it will move the camera forward into the object im looking at, and if Im Zoomed Out and rotated over the top of the object the camera will move Up, but not into the Object (World Terrain).
- Rotation works fine, but Im looking for a better way to do this if Im not doing it right already..
There isn't much else I can do with my engine until I get the camera right, I planning on making my own terrain system once the camera works and I can move around the screen to see the meshing system better...
Code Below THX!!
Been a while sense I used Blitz3D been playing around in BlitzMax, but anyways I was tyring to figure out how I could make a Camera System in Blitz3D that mimiced the one found in RollerCoaster Tycoon 3 (prospective with iso aspect). My attemps have failed, I have used a pivot to contorl the camera location and the rotation of the world, but I can seem to get the Mouse to move the camera, around the world like found in RCT3..
Bases I looking for..
- When Zoomed and looking at a object (Rotated and Facing Object) and holding the Right Mouse Button (MouseDown(2)) and moving the mouse forward. ( Im assuming that I use MouseYSpeed() ) it will move the camera forward into the object im looking at, and if Im Zoomed Out and rotated over the top of the object the camera will move Up, but not into the Object (World Terrain).
- Rotation works fine, but Im looking for a better way to do this if Im not doing it right already..
There isn't much else I can do with my engine until I get the camera right, I planning on making my own terrain system once the camera works and I can move around the screen to see the meshing system better...
Code Below THX!!
;these are to show the gobals different in code.. global Piv_Main global Cam_Main global xangle#, yangle# global msx#, msy# Function CameraContorls() If xangle > 128 Or xangle < 128 xangle = 128 EndIf If MouseDown(3) MoveMouse GraphicsWidth()/2,GraphicsHeight()/2 yangle = yangle + (msx / 4) xangle = xangle - (msy / 4) RotateEntity Piv_Main,xangle,yangle,0 EndIf If KeyDown(200) Then MoveEntity Piv_Main,0,-.1,0 If KeyDown(208) Then MoveEntity Piv_Main,0,.1,0 If KeyDown(205) Then MoveEntity Piv_Main,-.1,0,0 If KeyDown(203) Then MoveEntity Piv_Main,.1,0,0 MoveEntity Cam_Main,0,0,msz End Function