How to change background colour?
Blitz3D Forums/Blitz3D Beginners Area/How to change background colour?
| ||
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 :) |
| ||
clscolor command should do it e.g.: clscolor 255,0,0 cls this will clear the screen to red every time you call cls |
| ||
i would use a small "world" |
| ||
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 |
| ||
The background of the 3D camera view colour can be altered by using: CameraClsColor and CameraFogColor (Also CameraFogMode, CameraCLSMode, CameraRange and CameraFogRange) |
| ||
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. |
| ||
Thanks Everyone! The CameraClsColor was what I was looking for :D ~Solved~ |