James Turner wrote:

On 1 Feb 2005, at 10:34, Erik Hofman wrote:

I've done some work to make this code at least compile on MacOS. It's obvious I can't really test it myself so any patches needed to get it compiling are accepted.

Those who want to implement a real render-to-texture implementation for MacOS might find the following example helpful:

http://developer.apple.com/samplecode/Carbon_Pbuffer_Shared/ Carbon_Pbuffer_Shared.html


I'm in the middle of trying to resurrect my FG build (right now it's dying during startup, oh well), but getting this integrated should be ok, assuming I can clone the existing WGL / GLX code.

Question, though : what is FG using render-to-texture *for*?



To draw the instruments in the 3D cockpit. If I've followed the mailing list well enough, it's too costly (or too difficult) to draw the instruments through OpenGL, and easier to draw the instruments to a texture, which is used in the 3D cockpit.


Steven


_______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to