Re: [Opengc-devel] Issues loading texture
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Damion S. <be...@cs...> - 2003-10-28 20:01:50
|
Ok, I have a couple other ideas I can try. Is there some example code you can send me so that I can replicate the problem? It might make debugging easier. -Damion- On Tuesday, October 28, 2003, at 10:32 AM, Stein,Jeffrey L. wrote: > As far as I can tell this fix did not solve the problem. I updated > the ogcAppObject code with the change you suggested. We still have > the same problem where when instantiated in the constructor the > texture will not draw, where as when instantiated in the render loop > it will draw. I tested on both windows and linux to no avail. > Do you have any other ideas? > -Jeff > > Damion Shelton wrote: > >> Hi, >> >> It's possible that because of the way in which FLTK does things that >> the OpenGL device context was not correctly initialized while the >> gauges were being loaded. I modified the AppObject class to force a >> display redraw prior to loading the gauges; assuming your code was >> working fine in the render loop, this is the only event that was NOT >> occurring prior to the gauges being loaded. Grab a CVS update and let >> me know if this fixed your problem. >> >> -Damion- >> >> On Wednesday, October 22, 2003, at 10:53 PM, Stein,Jeffrey L. wrote: >> >>> The following has been tested on both a linux build and a windows >>> visual c++ build of open glass cockpit. >>> In trying to load a texture in a gauge constructor the texture is >>> never displayed. However if the texture is loaded in the gauges >>> render loop it displays fine. We suspect that openGL is not >>> correctly initialized to the point that it is able to hold textures >>> during the time that gauges are constructed. Does anybody have any >>> information on this? >>> >>> -Jeff >> >> >> --------- >> Damion Shelton >> The Open Source Glass Cockpit Project (OpenGC) >> Carnegie Mellon University, Robotics Institute >> http://www.opengc.org >> da...@op... >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by OSDN developer relations >> Here's your chance to show off your extensive product knowledge >> We want to know what you know. Tell us and you have a chance to win >> $100 >> http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 >> _______________________________________________ >> Opengc-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opengc-devel > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opengc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opengc-devel > > --------- Damion Shelton Carnegie Mellon University, Robotics Institute A408-o Newell Simon Hall 412.268.3866 (office) 412.818.8829 (cell) 412.268.6436 (fax) http://www.cs.cmu.edu/~beowulf --------- I wish I would have a real tragic love affair and get so bummed out that I'd just quit my job and become a bum for a few years, because I was thinking about doing that anyway. |