Cockpit graphics

Suggestions for the game engine
Post Reply
Mikey
DJ Mikey
Posts: 10
Joined: Fri Nov 24, 2006 8:09 pm

Post by Mikey »

I can't remember, what was the conclusion of the different ships with different cockpit graphics?
Paul
Da Man
Posts: 54
Joined: Fri Nov 24, 2006 3:17 am
Location: Loma Linda, CA
Contact:

Post by Paul »

I added very basic vector graphics, allowing the creation of colored polygons like the default frame. Currently, the default panels and buttons cannot be moved.

The default frame is created as follows:

<FRONT>
<QUADS>
Color .5, .5, .5
Vertex -.83, 1
Vertex -.83, .555
Color 0, 0, 0
Vertex -.67, .555
Vertex -.67, 1

Vertex -1, -1
Vertex -.67, .555
Color .5, .5, .5
Vertex -.83, .555
Vertex -1.15, -1

Vertex 1.15, -1
Vertex .83, .567
Color 0, 0, 0
Vertex .67, .567
Vertex 1, -1

Vertex .67, 1
Vertex .67, .567
Color .5, .5, .5
Vertex .83, .567
Vertex .83, 1
</QUADS>
</FRONT>
<REARSAME>


If you want the front and rear frames to be different, instead of the <REARFRAME> tag, uses <REAR></REAR> tags.

In addition to the <QUAD> tag, supported tags are:
  • <POINTS>
  • <LINES>
  • <LINESTRIP>
  • <LINELOOP>
  • <TRIANGLES>
  • <TRIANGLESTRIP>
  • <TRIANGLEFAN>
  • <QUADSTRIP>
  • <POLYGON>
For an explanation of what all these options are, I refer you to: http://developer.apple.com/documentatio ... gin.3.html
Differentiation is an integral part of calculus.
Post Reply