Re: [osg-users] setPolygonMode for Geometry?

2009-04-03 Thread Paul Martz
Thanks for taking a look at the Quick Start Guide, I hope you find it to be
a helpful resource.

> There is also a slight problem with the table of contents, it lists all
topics 
> after page 38 as being on page38.

There is a free corrected TOC PDF available, you should find it in a lulu
search. This is already noted in the errata and will be fixed in the
revision I'm currently working on.

Errata is here: http://www.skew-matrix.com/OSGQSG/

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

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


Re: [osg-users] setPolygonMode for Geometry?

2009-04-03 Thread Martin Beckett

Paul Martz wrote:
> For the record, basic concepts like setting state are covered pretty well in 
> the Quick Start Guide:

Found it, it was over the page from the description of setting culling and fog. 
I hadn't appreciated that draw modes were the same thing.

Thanks very much for creating it - I will have to read it again more carefully.

Martin 

ps. the lulu link is: 
http://www.lulu.com/content/paperback-book/openscenegraph-quick-start-guide/767629
 or http://www.lulu.com/content/767629 if you prefer.

There is also a slight problem with the table of contents, it lists all topics 
after page 38 as being on page38.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9724#9724





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


Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Paul Martz
For the record, basic concepts like setting state are covered pretty well in
the Quick Start Guide:
http://www.lulu.com/content/paperback-book/openscenegraph-quick-start-guide/
767629

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

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


Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Martin Beckett
Thanks Paul 
- for the archives here's the code sample:

Code:

osg::StateSet* stateSet = new osg::StateSet();
model->setStateSet(stateSet);
osg::PolygonMode* state = new osg::PolygonMode;
state->setMode(osg::PolygonMode::FRONT_AND_BACK,osg::PolygonMode::POINT);
stateSet->setAttributeAndModes(state,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);



Change the second arg to setMode() to change to line.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9690#9690





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


Re: [osg-users] setPolygonMode for Geometry?

2009-04-02 Thread Paul Martz
Yes, attach a PolygonMode StateAttribute to the StateSet. See the
osggeometry example, which does this.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Martin
Beckett
Sent: Thursday, April 02, 2009 4:22 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] setPolygonMode for Geometry?

I would like to render objects in a scene in different polygon modes -some
as points, others as mesh etc.
Is there anyway to set a polygon mode for a Geometry rather than a global
view or camera?

Thanks
Martin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9687#9687





___
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] setPolygonMode for Geometry?

2009-04-02 Thread Martin Beckett
I would like to render objects in a scene in different polygon modes -some as 
points, others as mesh etc.
Is there anyway to set a polygon mode for a Geometry rather than a global view 
or camera?

Thanks
Martin

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9687#9687





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