Display current camera range in Blitz 3D
Community Forums/General Help/Display current camera range in Blitz 3D
| ||
Does anyone know of a command that'll display the current camera range of the in use camera inBlitz 3D - for debugging purposes, cheers. |
| ||
The Blitz3D+ library will do this (original thread: http://www.blitzbasic.com/Community/posts.php?topic=75711) Should be downloadable from here: https://sites.google.com/site/nangdongseng/downloads/Blitz3dplus.zip?attredirects=0&d=1 |
| ||
There's another way without using the B3D+ lib to get the range values. By using variables to hold them:Global CAMERA1_near# = 1.0 Global CAMERA1_far# = 100.0 CameraRange camera,CAMERA1_near,CAMERA1_far print (CAMERA1_far - CAMERA1_near) ;RangeAny time you want to retrieve the current range you just read the variables' current value. Any changes made to them will require a call to CameraRange to update the range that is actually applied to the camera, of course. Last edited 2011 |
| ||
Thank-you for the response folks, will try out shortly. |
| ||
@Kryzon, thanks, I can now extend my camera range. |