Hi Moji, The code looks OK, so I'd suspect an OpenGL driver error.
Could you try OSG-2.8.1 or OSG-2.9.x/svn/trunk as this has a fix in Drawable::compileGLObjects() for the compilation of vertex arrays, this fix affected ATI drivers that couldn't cope with putting VBO's inside a display list. There is a chance that this might affect intel drivers as well. Robert. On Tue, May 19, 2009 at 9:27 PM, Mojtaba Fathi <modjta...@yahoo.com> wrote: > > Hi > I was using osg 2.6.1 and had this problem. Recently I've changed to osg > 2.8.0 and it happens again. I used both built versions and source codes. I'm > using VS2005+SP1 and windows XP with a Toshiba laptop which has intel 945GM > chipset. I've checked intel's site and it says my display drivers are up to > date. > I think this a problem with my graphics card, and not a logical error. > This problem usually happens when I use osgTerrain in my application. > In fact, I've disabled all display lists in my application to prevent this > error, but this is a temporary solution. > > Moji the Great > > --- On Wed, 5/20/09, Paul Martz <pma...@skew-matrix.com> wrote: > > From: Paul Martz <pma...@skew-matrix.com> > Subject: Re: [osg-users] problem with Drawable and glCallList (sample > programincluded) > To: "'OpenSceneGraph Users'" <osg-users@lists.openscenegraph.org> > Date: Wednesday, May 20, 2009, 12:37 AM > > You code is fine. It looks OK, so I built it and ran it and it runs fine. > I'm using OSG 2.9.4. Are you on an older version of OSG, or is it possible > that you linked with one version and ran with another? Do you have an old > OpenGL driver? > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > +1 303 859 9466 > > ________________________________ > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba > Fathi > Sent: Tuesday, May 19, 2009 1:40 PM > To: osg-users@lists.openscenegraph.org > Subject: [osg-users] problem with Drawable and glCallList (sample > programincluded) > > > Hi all > > I have a strange problem with Drawable::draw function which can't understand > the reason. In order to show you the problem, I've attached a sample program > which generates an Access Violation in Drawable::draw function when it calls > glCallList function. > > Before the main function, there is the definition of NUM_POINTS as follows: > > #define NUM_POINTS 100 > > If I change this value to 10 and rerun the program, every thing seems to be > fine, but with 100 I get the Access Violation error. > > Regards > Moji the Great > > > > > -----Inline Attachment Follows----- > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org