Function _IrrAddBillBoardToScene

au3Irr2

au3Irr2 Function Reference

_IrrAddBillBoardToScene

Adds a billboard to the scene of the specified size and at the specified position.

#Include <au3Irrlicht2.au3>
_IrrAddBillBoardToScene($f_XSize, $f_YSize, $f_XPos = 0.0, $f_YPos = 0.0, $f_ZPos = 0.0)

 

Parameters

$f_XSize X size of the node
$f_YSize Y size of the node
$f_XPos [optional] X position
$f_YPos [optional] Y position
$f_ZPos [optional] Z position

 

Return Value

Success: Handle of the new billboard scene node
Failure: False

 

Remarks

A billboard is a flat 3D textured sprite that always faces towards the camera. You need to texture this element with a separate command.

 

Related

_IrrSetNodeMaterialTexture, _IrrSetNodeMaterialFlag

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $BillboardTexture = _IrrGetTexture( "./media/au3irr2_logo.jpg" )
local $Billboard = _IrrAddBillBoardToScene( 200.0,102, 0.0,0.0,100.0 )

_IrrSetNodeMaterialTexture( $Billboard, $BillboardTexture, 0 )
_IrrSetNodeMaterialFlag( $Billboard, $IRR_EMF_LIGHTING, $IRR_OFF )

local $Camera = _IrrAddFPSCamera()

WHILE _IrrRunning()
    _IrrBeginScene(0, 0, 0)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()