Display current camera range in Blitz 3D

Community Forums/General Help/Display current camera range in Blitz 3D

Blitzplotter(Posted 2011) [#1]
Does anyone know of a command that'll display the current camera range of the in use camera inBlitz 3D - for debugging purposes, cheers.


Yasha(Posted 2011) [#2]
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


Kryzon(Posted 2011) [#3]
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) ;Range
Any 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


Blitzplotter(Posted 2011) [#4]
Thank-you for the response folks, will try out shortly.


Blitzplotter(Posted 2011) [#5]
@Kryzon, thanks, I can now extend my camera range.