Re: [osg-users] problem with Drawable and glCallList (sample programincluded)
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
Re: [osg-users] problem with Drawable and glCallList (sample programincluded)
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 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] problem with Drawable and glCallList (sample programincluded)
Not true, because the third parameter of DrawArray constructor is the count of array members, not the last one. In fact, I think the problem arises from osgTerrain, but I don't know how and why. Moji the Great --- On Wed, 5/20/09, Tomlinson, Gordon gtomlin...@overwatch.textron.com wrote: From: Tomlinson, Gordon gtomlin...@overwatch.textron.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:22 AM I Believe your Draw Array number should be NUM_POINTS - 1 as you have defined it You providing 0-99 in you for loop but telling the array you have 0-100 Gordon Product Manager 3d __ Gordon Tomlinson Email : gtomlinso...@ overwatch.textron.com __ From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba Fathi Sent: Tuesday, May 19, 2009 3: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
Re: [osg-users] problem with Drawable and glCallList (sample programincluded)
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