How to change background colour?

Blitz3D Forums/Blitz3D Beginners Area/How to change background colour?

Kippykip(Posted 2012) [#1]
I made a model for blitz3d and I can't seem to figure out how to change the background colour so I can see him and my character is mainly black so I can't seem to preview him because of it :( I am just testing the animations for it

if someone could help me that would help a lot :)


andy_mc(Posted 2012) [#2]
clscolor command should do it

e.g.:

clscolor 255,0,0
cls

this will clear the screen to red every time you call cls


Midimaster(Posted 2012) [#3]
i would use a small "world"




Zethrax(Posted 2012) [#4]
For 3D you'll need to use CameraClsColor to set the background color. Any 2D drawing commands will get overwritten when RenderWorld is run.

eg.
; -- Create user's camera.
G_user_camera = CreateCamera()
CameraClsColor G_user_camera, 0.0, 106.0, 213.0

If you want a framework to test your model in then you can use my code archive code linked below. Note that models imported into Blitz3D from modeling programs are often ridiculously large or so far off center they are outside the draw distance, in which case you may need to scale and reposition the model to suit.

http://www.blitzbasic.com/codearcs/codearcs.php?code=1137


_PJ_(Posted 2012) [#5]
The background of the 3D camera view colour can be altered by using:

CameraClsColor
and
CameraFogColor
(Also CameraFogMode, CameraCLSMode, CameraRange and CameraFogRange)


airborne(Posted 2012) [#6]
If your model doesn't have a set texture or color, you can always change its color as well by using the EntityColor command, and altering the RBG color values. Of course this isn't a permanent solution, but maybe useful while attempting to integrate new things and testing phases.


Kippykip(Posted 2013) [#7]
Thanks Everyone!
The CameraClsColor was what I was looking for :D
~Solved~