entity alpha command
Blitz3D Forums/Blitz3D Beginners Area/entity alpha command
| ||
Is this the correct EntityAlpha cube,0 |
| ||
or did I messed up |
| ||
nevermind I figured it out sorry for wasting your time |
| ||
Actually I do need help with this command I was looking at the castle example from the samples in b3d and I was wondering how can you make mario transparent because I want to see mario transparent when I load up the program itself |
| ||
If you look at the documentation you will notice that alpha works from 0.0 - all the way up to 1.0 Try cut and past this code it should explain it more clearly! Code ******* Graphics3D 800,600 Global cube =CreateCube() ; make a cube Global camera = CreateCamera() ; make a camera to look at the scene with Global visible#=1.0 ; create a variable called visible to control amount of alpha applied to cube and start so we can see it! PositionEntity camera,0,0,-10 ; move the camera backwards (towards the user) so we can see the cube While Not KeyDown(1) ; wait for escape key to be pressed If KeyDown(203) Then visible=visible-0.01 If KeyDown(205) Then visible=visible+0.01 EntityAlpha cube,visible UpdateWorld RenderWorld Text 0,0,"Cube visibility :" +visible Flip Wend code ends ************ IPete2 |