Sprite in front of the camera

Blitz3D Forums/Blitz3D Programming/Sprite in front of the camera

demuvi(Posted 2008) [#1]
Hello I am new to blizt and I do not know how to achieve as a sprite always appear in front of the camera regardless of location or spin of the camera within the three-dimensional space


Ross C(Posted 2008) [#2]
You need to create a sprite. Parent it to the camera:

EntityParent sprite,camera

position it in front of the camera:

PositionEntity sprite,0,0,10

10 units in front of the camera will probably be too much. Just tinker with that value. A value of 1 unit may cause flickering with the default camerarange, so put it at 1.1 at least to see it properly.

Remember, the sprites positioning and rotation and scaling is relative to the camera. Anything done to the parent, will be done to the sprite too.