Hi,

if the sample code is using osgProducer I think it is very out of date -
osgProducer is depricated for years and was replaced by osgViewer.

There is an example of picking, osgpick I think is the example in the
current trunk, where you will find current use of intersection classes and
methods - have a look

Nick


On Tue, May 6, 2014 at 12:21 PM, Srikanth K P <[email protected]> wrote:

> Hi,
>
> Hi,
> I found a sample code in osg site which explains how to use / calculate
> terrain height. When I used the code and complied, I get too many errors.
> The code is from the site mentioned below :
>
>
> http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/Intersections
>
> A few errors are
>
> For the code line
> shrubQuad->addPrimitiveSet(new osg::DrawArrays osg::PrimitiveSet::
> QUADS,0,4);
>
> The error is : syntax error : missing ')' before 'QUADS'
>
> For the code line
> osgProducer::Viewer viewer;
>
> Error : osgProducer' : is not a class or namespace name
>
> From the forum I found that osgProducer has been replaced with osgViewer.
> Is it just enough if I replace viewer in the code ?
> I request some help. I am using OSG 2.8 version
>
> Cheers,
> Srikanth
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=59275#59275
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to