Function _IrrAddBillBoardGroupToScene

au3Irr2

au3Irr2 Function Reference

_IrrAddBillBoardGroupToScene

Adds a billboard group to the scene.

#Include <au3Irrlicht2.au3>
_IrrAddBillBoardGroupToScene()

 

Parameters

None.

 

Return Value

Success: Handle to an irr node object.
Failure: False and @error 1

 

Remarks

This is a special object that can have billboard like objects added and removed from it and rendered in a very quick an efficient manner.
They are all treated as a single object rather than as many individual nodes. This is particuallarly useful for custom particle effects.

 

Related

_IrrAddBillBoardToGroup, _IrrRemoveBillBoardFromGroup, _IrrAddBillBoardByAxisToGroup, _IrrGetBillBoardGroupCount, IrrBillBoardGroupShadows, _IrrBillBoardForceUpdate

 

Example


#include "au3Irrlicht2.au3"

Global $hBillboardGroup
Global $hBillboardTexture
Global $aBillboard[6]
Global $hCamera

_IrrStart()

$hBillboardGroup = _IrrAddBillBoardGroupToScene()
For $i = 1 To 5
    $aBillboard[$i] = _IrrAddBillBoardToGroup($hBillboardGroup, 150, 100, -450 + ($i * 150), 0, 400, 0, 255, 255, 255, 255)
Next
$hBillboardTexture = _IrrGetTexture("./media/au3irr2_logo.jpg")
_IrrSetNodeMaterialTexture($hBillboardGroup, $hBillboardTexture, 0)
_IrrSetNodeMaterialFlag($hBillboardGroup, $IRR_EMF_LIGHTING, $IRR_OFF)

$hCamera = _IrrAddFPSCamera($IRR_NO_OBJECT, 100.0, 0.1)
_IrrSetCameraClipDistance($hCamera, 128000)

_IrrHideMouse()

While _IrrRunning() And Sleep(10)
    _IrrBeginScene(0, 0, 255)
    _IrrDrawScene()
    _IrrEndScene()
WEnd