Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: IPAndrews on February 25, 2005, 04:45:11 am

Title: Mapping HUD elements onto named textures?
Post by: IPAndrews on February 25, 2005, 04:45:11 am
This is mainly for people using 3D cockpits. The idea being their cockpit can have a texture called "radar" that gets textured with... (wait for it) the radar guage. Sound like a good idea to anyone?

I'm not particularly pushing for this just thinking out loud. Although I have seen people starting to use 3D cockpits and this seems like like the next obvious development in that direction.
Title: Re: Mapping HUD elements onto named textures?
Post by: aldo_14 on February 25, 2005, 07:17:34 am
Quote
Originally posted by IPAndrews
This is mainly for people using 3D cockpits. The idea being their cockpit can have a texture called "radar" that gets textured with... (wait for it) the radar guage. Sound like a good idea to anyone?

I'm not particularly pushing for this just thinking out loud. Although I have seen people starting to use 3D cockpits and this seems like like the next obvious development in that direction.


IIRC

There's a render-to-texture feature that can be used, but only if the engine is changed to DirectX 9.0something... I'm not sure about the OpenGL equivalent.  

I think anything else would require a lot of work with the existing texture loading code to support 'controlled' cockpit gauge textures.
Title: Mapping HUD elements onto named textures?
Post by: Sesquipedalian on February 25, 2005, 12:08:37 pm
As I understand it, the HUD draw code and the model render code are entirely different and have nothing to do with each other.  To make them interact would require ripping the whole HUD code out and starting again from scratch.  It makes better sense for modders to just leave a space on their cockpit models where the rader could nicely fit when drawn the normal way.
Title: Mapping HUD elements onto named textures?
Post by: WMCoolmon on February 25, 2005, 07:15:52 pm
http://www.hard-light.net/forums/index.php/topic,30813.0.html