Re: [osg-users] iOS: wireframe

2011-09-08 Thread Alessandro Terenzi
I think it could be useful in many other scenarios, regarding the current one, at last, requirements changed so I had not to use wireframe anymore. If you don't mind it would be great to have the chance to try it. By the way, is your implementation intended for GLES? Thanks. Alessandro On Fri,

Re: [osg-users] iOS: wireframe

2011-09-02 Thread Jeremy Moles
On Fri, 2011-09-02 at 18:11 +0200, Alessandro Terenzi wrote: > Ok and thanks for your help. I think I might finish my own personal solid+wireframe GLSL example here in a few minutes. Would this be of use to you? (It is derived from this example: http://www2.imm.dtu.dk/~jab/Wireframe/ > Cheers.

Re: [osg-users] iOS: wireframe

2011-09-02 Thread Alessandro Terenzi
Ok and thanks for your help. Cheers. Alessandro -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42387#42387 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.or

Re: [osg-users] iOS: wireframe

2011-09-02 Thread Jason Daly
On 09/02/2011 08:56 AM, Paul Martz wrote: I suspect glPolygonMode is not supported in any flavor of OpenGL ES. http://www.khronos.org/opengles/ ...but you should check the spec. Paul's right. I checked the spec. glPolygonMode is not supported by OpenGL ES. That was a surprise to me as well.

Re: [osg-users] iOS: wireframe

2011-09-02 Thread Paul Martz
On 9/2/2011 2:11 AM, Alessandro Terenzi wrote: Hi, I'd like to set the visualization mode to wireframe on iOS, I use these instructions: Code: osg::ref_ptr ss = myModelNode->getOrCreateStateSet(); osg::ref_ptr pm; pm = new osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode:

[osg-users] iOS: wireframe

2011-09-02 Thread Alessandro Terenzi
Hi, I'd like to set the visualization mode to wireframe on iOS, I use these instructions: Code: osg::ref_ptr ss = myModelNode->getOrCreateStateSet(); osg::ref_ptr pm; pm = new osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE); ss->setAttributeAndModes(pm.get(), osg::Sta