Re: [osg-users] DrawImplementation issue with Intel video card.

2009-03-13 Thread Robert Osfield
Hi Hui,

This sounds very much like an Intel driver bug.  Go have a look for
updated drivers for your hardware.

Robert.

On Thu, Mar 12, 2009 at 8:33 PM, hui opencvy...@yahoo.com wrote:

 Hi,

 I meet a problem in function drawImplementation(osg::RenderInfo renderInfo) 
 const

 Actually the code works find with nvidia and ati video card, just when I run 
 it in intel 965GM, it get problem.

 Here is the code:
  void SubmeshDrawable::drawImplementation(osg::RenderInfo renderInfo) const
   {
      osg::State state = *renderInfo.getState();
      //bind the VBO's
      state.disableAllVertexArrays();

      bool initializedThisDraw = false;
      if (!mInitalized)
      {
         InitVertexBuffers(state);
         mInitalized = true;
         initializedThisDraw = true;
      }
 -

 // notice when first time run, then mInitalized is assigned as true, and it 
 keeps as true in nvidia or ati video card.
 // But in Intel card, the value of mInitalized will change back to false 
 again when enter the function at second time, and keep in this way until the 
 VBO crashed.

 Any reason for that?

 Thanks a lot.

 Hui




 ___
 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] DrawImplementation issue with Intel video card.

2009-03-13 Thread Tomlinson, Gordon
This will in most likely be an issue with your integrated graphics chip
and driver set and not directly OSG issue

I would recommend that you upgrade your drivers if they are available ,
this may help it may not as integrated chips while improving still fall
way behind in Opengl capabliltyy than dedicated graphics cards


Gordon
Product Manager 3d
__
Gordon Tomlinson
Email  : gtomlinson @ overwatch.textron.com
__


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of hui
Sent: Thursday, March 12, 2009 4:33 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] DrawImplementation issue with Intel video card.


Hi,

I meet a problem in function drawImplementation(osg::RenderInfo
renderInfo) const

Actually the code works find with nvidia and ati video card, just when I
run it in intel 965GM, it get problem.

Here is the code:
 void SubmeshDrawable::drawImplementation(osg::RenderInfo renderInfo)
const
   {
  osg::State state = *renderInfo.getState();
  //bind the VBO's
  state.disableAllVertexArrays();

  bool initializedThisDraw = false;
  if (!mInitalized)
  {
 InitVertexBuffers(state);
 mInitalized = true;
 initializedThisDraw = true;
  }
-

// notice when first time run, then mInitalized is assigned as true, and
it keeps as true in nvidia or ati video card.
// But in Intel card, the value of mInitalized will change back to false
again when enter the function at second time, and keep in this way until
the VBO crashed. 

Any reason for that?

Thanks a lot.

Hui



  
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] DrawImplementation issue with Intel video card.

2009-03-12 Thread hui

Hi,

I meet a problem in function drawImplementation(osg::RenderInfo renderInfo) 
const

Actually the code works find with nvidia and ati video card, just when I run it 
in intel 965GM, it get problem.

Here is the code:
 void SubmeshDrawable::drawImplementation(osg::RenderInfo renderInfo) const
   {
  osg::State state = *renderInfo.getState();
  //bind the VBO's
  state.disableAllVertexArrays();

  bool initializedThisDraw = false;
  if (!mInitalized)
  {
 InitVertexBuffers(state);
 mInitalized = true;
 initializedThisDraw = true;
  }
-

// notice when first time run, then mInitalized is assigned as true, and it 
keeps as true in nvidia or ati video card.
// But in Intel card, the value of mInitalized will change back to false again 
when enter the function at second time, and keep in this way until the VBO 
crashed. 

Any reason for that?

Thanks a lot.

Hui



  
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org