osg geometry清空vertex _vertices->clear(); _vertices->dirty(); _drawArrays->set(sog::PrimitiveSet::POINTS,0,0); _geometry->dirtyDisplayList();
ERROR: 0:18: ';' : syntax error: Uniform blocks may not have identifiers in GLSL 140 glLinkProgram 0x10e930750"osgEarth.engine_mp.TerrainNode" FAILED Program "osgEarth.engine_mp.TerrainNode" infolog: ERROR: One or more attached shaders not successfully compiled Run 'application_osgearth_v...
I have just checked in the addition of numTextureUnits parameter tothe State::resetVertexAttributeAlias() and set the default to 8. /** Reset the vertex attribute aliasing to osg's default. Thismethod needs to be called before render anything unless you reallyknow what you're doing !*/voi...
> When vertex attribute aliasing is enabled, it seems that the constructor > calls the resetVertexAttributeAlias with true (i.e. compact aliases) in any > case. > I need more than 5 texture coordinates however. Is there any reason for ...
triangles: the triangles will be reindexed but not the line. I've therefore added osg/include/TriangleLinePointIndexFunctor to index triangles, lines and points and derived VertexReorder from this class. * to avoid issues, shared arrays are duplicated. However, in some cases (e.g. an UV cha...
osg::Vec3Array *test = dynamic_cast(myGeom->getVertexArray()); for(int i = 0; i < numVertex; i++) { NxMat34 pose = listShapes.at(i)->shape->getGlobalPose(); osg::Vec3f trans = osg::Vec3(pose.t.x,pose.t.y,pose.t.z); ...
> I deactivate OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION. > Could you confirm that you are compiling with > -DOSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION=OFF? > > Cheers, > Marc > > --- > Read this topic online here: >http://forum.openscenegraph...
osg::State, but this would require all Drawables to be careful about what they assume is current state. It's possible but it's quite a bit of work. Robert. On Sat, Sep 20, 2008 at 12:42 AM, Pecoraro, Alexander N <[EMAIL PROTECTED]> wrote: ...
__gnu_cxx::__normal_iterator<osg::ref_ptr<osg::PrimitiveSet>*, std::vector<osg::ref_ptr<osg::PrimitiveSet> > >; _Iterator2 = __gnu_cxx::__normal_iterator<osg::ref_ptr<osg::PrimitiveSet>*, std::vector<osg::ref_ptr<osg::PrimitiveSet> > >; _Compare = osgUtil::VertexAccessOrderVi...
VertexAttribComparitor& operator = (const VertexAttribComparitor&) { return *this; } }; // Compact the vertex attribute arrays. Also stolen from TriStripVisitor class RemapArray : public osg::ArrayVisitor { public: RemapArray(const IndexList& remapping):_remapping(remapping) {} ...