Hi Zak,
pretty scary render of invasion
The reason you had galaxy dark was that you did not disabled lighting.
If you change the Square procedure to following, you will see the galaxy will be as bright as it should:
[code=thinbasic]
Function square()
' -- Enable texturing, but just for the part of code
TBGL_PushState %TBGL_TEXTURING
' -- Disable lighting, but just for part of code
TBGL_PushStateProtect %TBGL_LIGHTING
' -- Bind texture #2
TBGL_BindTexture 2
TBGL_Color 255,255,255
TBGL_Translate 2.5, 1, -1
TBGL_BeginPoly %GL_QUADS ' Starts polygon definition based on 4 vertexes
TBGL_TexCoord2D 0.0, 0.0 : TBGL_Vertex -2, -2, 0.0
TBGL_TexCoord2D 1.0, 0.0 : TBGL_Vertex 2, -2, 0.0
TBGL_TexCoord2D 1.0, 1.0 : TBGL_Vertex 2, 2, 0.0
TBGL_TexCoord2D 0.0, 1.0 : TBGL_Vertex -2, 2, 0.0
TBGL_EndPoly ' Ends polygon definition
TBGL_PopStateProtect
TBGL_PopState
End Function
[/code]
Petr
Bookmarks