Hands On DarkBASIC Pro - Digital Skills
Hands On DarkBASIC Pro - Digital Skills
Hands On DarkBASIC Pro - Digital Skills
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
FIG-31.53<br />
The SET GLOBAL<br />
OBJECT CREATION<br />
Statement<br />
Summary<br />
In the diagram:<br />
SET<br />
GLOBAL<br />
mode 0 or 1. 0 - no vertex buffer sharing (this is the<br />
default setting); 1 - vertex buffer sharing allowed.<br />
Even if your own video card does allow vertex buffer sharing, your customer's may<br />
not, so it's probably best to ignore this option.<br />
� A point in 3D space is specified using x, y, and z coordinates.<br />
� There are three main planes in 3D space - XY, YZ, and XZ.<br />
� The computer screen uses a positive-up, negative-down y-axis when operating<br />
in 3D mode. This is the opposite from the 2D settings.<br />
� The positive z-axis travels away from the viewer "into" the screen.<br />
� A point in space is known as a vertex.<br />
� A set of vertices, when joined, form a polygon.<br />
� The join between two vertices is known as an edge.<br />
� Basic 3D shapes are known as primitives.<br />
� When first created a 3D object has it centre position at the origin.<br />
� The x and y axes intersect at the centre of the screen at start-up.<br />
� Use the MAKE OBJECT CUBE to create a cube.<br />
� Use MAKE OBJECT BOX to create a cuboid.<br />
� Use MAKE OBJECT SPHERE to create a sphere.<br />
� The number of polygons used can be specified when creating a sphere.<br />
� Use MAKE OBJECT CYLINDER to create a cylinder.<br />
� Use MAKE OBJECT CONE to create a cone.<br />
� Use MAKE OBJECT PLAIN to create a plane.<br />
� A plane is initially oriented as an XY plane.<br />
OBJECT CREATION mode<br />
� Use MAKE OBJECT TRIANGLE to create a triangle.<br />
� The initial position of a triangle is determined by the vertices given.<br />
� Use POSITION OBJECT to place the centre of an object at a new location.<br />
786 <strong>DarkBASIC</strong> <strong>Pro</strong>: 3D Primitives