au3Irr2 Function Reference
_IrrAddSphereSceneNodeAdds a simple sphere object to the scene
#Include <au3Irrlicht2.au3>
_IrrAddSphereSceneNode($f_Size, $i_PolyCount = 16)
Parameters
$f_Size | Radius of the sphere |
$i_PolyCount | [optional] Level of detail for the sphere. Too high values could produce a very high density mesh and affect your frame rate adversely. |
Return Value
success: Handle of the sphere scene nodefailure: False
Remarks
None
Related
_IrrAddTestSceneNode, _IrrAddCubeSceneNode
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddSphereSceneNode(8,32)
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )
WHILE _IrrRunning()
_IrrBeginScene(0, 0, 0)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()