Textured Sphere.
by Chris "Dark" Evans · in Torque Game Engine · 07/14/2002 (11:54 pm) · 3 replies
The next project my team is going to work on will be an rpg set in space. There will be no terrain, but I would like to have primative planets and suns that the players' ships can orbit.
I know nothing about OpenGl programming. How would I apply a texture to the sphere included in torque? Are there any resources that could help me achieve this specific task?
Another question that doesn't really fit in anywhere else: If I have two playGuis it will obviously decrease performance, if one of those guis is hidden will there still be a performance hit? Does the game still try to calculate what that gui sees even though it's hidden?
I know nothing about OpenGl programming. How would I apply a texture to the sphere included in torque? Are there any resources that could help me achieve this specific task?
Another question that doesn't really fit in anywhere else: If I have two playGuis it will obviously decrease performance, if one of those guis is hidden will there still be a performance hit? Does the game still try to calculate what that gui sees even though it's hidden?
#2
You should find that only the gui elements that are showing actually get rendered. There is a small amount of processing involved still but nothing compared the actual rendering cycle which should not happen if the control is hidden.
I came across a similar question a long time ago and to be more specific, there is little preparation in drawing the playgui, it simply calls a scenegraph draw from it's render function.
- Melv.
07/15/2002 (2:38 am)
To answer your second question ... You should find that only the gui elements that are showing actually get rendered. There is a small amount of processing involved still but nothing compared the actual rendering cycle which should not happen if the control is hidden.
I came across a similar question a long time ago and to be more specific, there is little preparation in drawing the playgui, it simply calls a scenegraph draw from it's render function.
- Melv.
#3
07/15/2002 (12:26 pm)
Thank you Melv :) I knew I could count on you.
Employee Melv May
Try this ...
Texturing a Sphere
- Melv.