au3Irr2 Function Reference
_IrrAddCameraAdds a camera into the scene.
#Include <au3Irrlicht2.au3>
_IrrAddCamera($f_CamX, $f_CamY, $f_CamZ, $f_TargetX, $f_TargetY, $f_TargetZ)
Parameters
$f_CamX | X value for view point of the camera. |
$f_CamY | Y value for view point of the camera. |
$f_CamZ | Z value for view point of the camera. |
$f_TargetX | X value for target of camera. |
$f_TargetY | Y value for target of camera. |
$f_TargetZ | Z value for target of camera. |
Return Value
Success: Handle of the camera objectFailure: False
Remarks
The camera will be used to define the view point and target point and other attributes of the view into the 3D scene.Animators and other node functions can be applied to this node.
Related
_IrrAddFPSCamera, _IrrAddMayaCamera
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $camera = _IrrAddCamera(2,2,2, 0,0,0 )
local $mesh = _IrrGetMesh( ".\media\capsuleX.obj" )
local $sceneNode = _IrrAddMeshToScene( $mesh )
local $texture = _IrrGetTexture(".\media\default_texture.png")
_IrrSetNodeMaterialTexture( $sceneNode, $texture, 0)
_IrrSetNodeMaterialFlag( $sceneNode, $IRR_EMF_LIGHTING, $IRR_OFF )
WHILE _IrrRunning()
_IrrBeginScene(50, 50, 50)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()