Render Objects Pt 1.
by Phil Carlisle · 05/27/2003 (9:41 am) · 1 comments
Download Code File
Just some simple objects I did while testing out various idea's. fxRenderSphere is a basic sphere drawing class. I used it to test out some idea's for drawing space as a textured sphere.
Give it a texture and it'll use it.
Note: There is a seperate mode which if you set the check box will try and use the texture as vertex colours for vertex colouring the sphere (dont try and use a big texture for this, I capped the size at 20x20, anything bigger and you wont get anything drawn).
The idea for that was to do something similar to homeworld (only an ultra cheap method which didnt really work).
Ive actually implemented a "proper" homeworld space sphere object as well, but I might end up using that, so its not released here right now.
fxRenderQuad was made to test out an idea for a terrain replacement. Essentially it just draws a NxN grid of quads and textures them. You can set a vector for the texture to be translated by (so it kinda scrolls).
No collisions on either of these objects.
Do whatever :) I wont be using them again (apart from in tests).
Thanks to Melv May for his fxRenderObject code which i blatantly ripped off to start these objects with.
Phil.
Just some simple objects I did while testing out various idea's. fxRenderSphere is a basic sphere drawing class. I used it to test out some idea's for drawing space as a textured sphere.
Give it a texture and it'll use it.
Note: There is a seperate mode which if you set the check box will try and use the texture as vertex colours for vertex colouring the sphere (dont try and use a big texture for this, I capped the size at 20x20, anything bigger and you wont get anything drawn).
The idea for that was to do something similar to homeworld (only an ultra cheap method which didnt really work).
Ive actually implemented a "proper" homeworld space sphere object as well, but I might end up using that, so its not released here right now.
fxRenderQuad was made to test out an idea for a terrain replacement. Essentially it just draws a NxN grid of quads and textures them. You can set a vector for the texture to be translated by (so it kinda scrolls).
No collisions on either of these objects.
Do whatever :) I wont be using them again (apart from in tests).
Thanks to Melv May for his fxRenderObject code which i blatantly ripped off to start these objects with.
Phil.
About the author

Torque Owner Luis Karlos