Looking at osgconv's source code I understood that the way it creates a graphics context is by means of 'pbuffer'...and looking at other mails too, I understood also that this will avoid to actually open a rendering window, right?
Unfortunately such a creation always fails for me. What could be the reason for not being able to create a context with a pbuffer? Thanks. Alessandro On Mon, Jan 12, 2009 at 12:25 PM, Robert Osfield <[email protected]>wrote: > HI Alessandro, > > osgconv does create a graphics context when required :-) > > Robert. > > On Mon, Jan 12, 2009 at 11:16 AM, alessandro terenzi > <[email protected]> wrote: > > No problem Robert :) > > > > but I have another question :) earlier you suggested that the best thing > to > > do would be to pre-process the model and store it for using for runtime > > execution, otherwise the rescaling could slow down the application. You > also > > suggested to use osgconv to do this task, but I wonder: if osgconv never > > creates a graphic context, how will I force the rescaling of textures? > > > > Regards. > > Alessandro > > > > On Mon, Jan 12, 2009 at 11:27 AM, Robert Osfield < > [email protected]> > > wrote: > >> > >> Hi Alessandro, > >> > >> On Mon, Jan 12, 2009 at 10:17 AM, alessandro terenzi > >> <[email protected]> wrote: > >> > I wanted to try your last suggestion, but maybe I'm missing something, > >> > because I could not find setMaxTextureSize(.) in osg::DisplaySettings > >> > class, > >> > I looked in OSG's source v2.6.0 or v2.2.0. > >> > >> Ooo, just checked, you are right and I've got a faulty memory.... goes > >> to show that even I need to check the code before I speak on a > >> topic... > >> > >> Reviewing the code OSG_MAX_TEXTURE size env var is checked directly by > >> osg::Texture, and isn't cached at all by DisplaySettinsg as I thought > >> it was. OSG_MAX_TEXTURE is a old feature that pre-dates the modern > >> wider role of osg::DisplaySettings, if I were to rewrite it today I'd > >> put it in DisplaySettings :-) > >> > >> The way to set this env programmatically is to use the C function putenv > >> i.e. > >> > >> putenv("OSG_MAX_TEXTURE=256"); > >> > >> Robert. > >> _______________________________________________ > >> osg-users mailing list > >> [email protected] > >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

