Hi Robert,

I had a look at the code in osg::Geometry. The lines in question are:

if(handleVertexAttributes)
{

for(unsignedintindex=0;index<_vertexAttribList.size();++index)

{

constArray*array=_vertexAttribList[index].get();

if(array&&array->getBinding()==osg::Array::BIND_PER_VERTEX)

{

vas->setVertexAttribArray(state,index,array);

}

}

}

Do you remember, why the condition
            getBinding() == BIND_PER_VERTEX
is there?
_But(!) _the same condition is at _normalArray, _colorArray etc. and they are 
handled correct with BIND_OVERALL.

I don't understand what is really done there. Sorry.

- Werner -

Am 09.03.2021 um 21:27 schrieb Robert Osfield:
> HI Werner,
>
> I can't think of think of reason that would cause a problem.  It's quite a 
> while since I look at the associated code so it might be simply that I've 
> forgotten constraints.  Have
> a look at the osg::Geometry::drawImplementation() to see if there is a 
> constraint on vertex attributes needing to be BIND_PER_VERTEX.
>
> If you were using the VSG that I'd suggest running with Vulkan debug and API 
> layer as it's great for picking up errors.  Are there any OpenGL errors being 
> produced?
>
> Robert. 
>
> _______________________________________________
> 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

Reply via email to