Light and camera with B3D pipeline

Blitz3D Forums/Blitz3D Programming/Light and camera with B3D pipeline

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

3Do,

No worries mate, pop into the code archives and oh bother that - here:

Function SuperCam(cam,ent,cspeed#,dist#,hite#,xrot#,tilt#)
TFormPoint 0,hite#,-dist#,ent,0
cx#=(TFormedX()-EntityX(cam))*cspeed#
cy#=(TFormedY()-EntityY(cam))*cspeed#
cz#=(TFormedZ()-EntityZ(cam))*cspeed#
TranslateEntity cam,cx,cy ,cz
PointEntity cam,ent
RotateEntity cam,xrot#,EntityYaw(cam),tilt#
End Function


Function takes the following...

Camera handle
Entity you want to follow handle
Speed at which camera will follow the entity
The distance it will try to stay at (based on the entity named)
The height it will try to stay at (based on the entity named)
Xrotation of camera
Tilt of camera

Try these settings

SuperCam(Camera_Handle, Teapot_Handle, 0.01,0,0,0,0)


and alpha out the teapot first.

IPete2.