13.01.2013 Views

Hands On DarkBASIC Pro - Digital Skills

Hands On DarkBASIC Pro - Digital Skills

Hands On DarkBASIC Pro - Digital Skills

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

� Use MOVE OBJECT to move an object along the x or y axis.<br />

� Every 3D object has its own local axes with the origin at the centre of the object.<br />

� Use the XROTATE, YROTATE or ZROTATE OBJECT statements to rotate an<br />

object to a specific angle about one of its local axes.<br />

� Use ROTATE OBJECT to rotate an object to specific angles about all three local<br />

axes at the same time.<br />

� Use PITCH, TURN or ROLL OBJECT statements to rotate an object by a<br />

number of degrees around a given axis.<br />

� Use POINT OBJECT to make an object face towards a specified point.<br />

� Use MOVE OBJECT distance to move the object a specified number of units<br />

in the direction in which an object is pointing.<br />

� Use FIX OBJECT PIVOT to reset an object's local axes to be in line with the<br />

global axes.<br />

� Use SCALE OBJECT to change the dimensions of an object.<br />

� Use HIDE OBJECT to make an object invisible.<br />

� Use SHOW OBJECT to make an invisible object reappear.<br />

� Use DELETE OBJECT to erase an object from RAM.<br />

� Use DELETE OBJECTS to erase a group og objects from RAM.<br />

� Use CLONE OBJECT to make an independent copy of an existing object.<br />

� Use INSTANCE OBJECT to create a dependent copy of an existing object.<br />

� Use OBJECT EXIST to check if a specified object exists.<br />

� Use OBJECT VISIBLE to check if a specified object is visible.<br />

� Use OBJECT POSITION to determine the position in space of an object's centre.<br />

� Use OBJECT SIZE to determine the dimensions of a specified object.<br />

� Use OBJECT ANGLE to determine the current angle of rotation a specified<br />

object has about its local axes.<br />

� Use SET OBJECT WIREFRAME to display a 3D object in wireframe or normal<br />

mode.<br />

� Use SET OBJECT CULL to toggle culling for a specified 3D object.<br />

� Use SET GLOBAL OBJECT CREATION to enable/disable vertex buffer<br />

sharing.<br />

<strong>DarkBASIC</strong> <strong>Pro</strong>: 3D Primitives 787

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!