Re: [osg-users] Flat Earth Files

2016-12-06 Thread Rambabu Repaka
Hi,Sorry spelling mistake I Tried with that files but still globe earth is 
coming if we perform zooming in then some part flat.I want flat terrain files.


... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Flat Earth Files

2016-12-06 Thread Rambabu Repaka
Hi,I Tried with that files but still global earth is coming if we perform 
zooming in then some part flat.I want flat terrain files.

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] Building KdTrees

2016-12-06 Thread Robert Osfield
Hi Ale,

You will need to set the hint prior to loading any data, as the
DatabasePager sets up an internal KdTreeBuilder to the the building
during the post processing of the loaded subgraph.

KdTree's are assigned to Drawable's as a Shape, so you can check to
see if it's been built by doing drawable->getShape() and casting to a
KdTree.

Robert.

On 6 December 2016 at 16:54, Ale Maro  wrote:
> Hi,
>
> may be this is a trivial question but I am not sure how to enable KdTrees and 
> DatabasePager on a scene.
> I have my own file reader (not derived from OSG ReaderWriter class) and I 
> create directly the geometries.
> May be I misunderstood but it seems the KdTree it is not built automatically 
> even if I call
>
> osgDB::Registry::instance()>setBuildKdTreesHint(osgDB::Options::BUILD_KDTREES 
> )
>
> Do I need to use KdTreeBuilder explicitly or there is a way to build KdTree 
> automatically? Is it built automatically using OSG I/O plugins?
> What about DatabasePager?
>
> Thank you in advance.
>
> Best regards
> Ale
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69619#69619
>
>
>
>
>
> ___
> 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


Re: [osg-users] osgTerrain::TerrainTile not in parental list (??)

2016-12-06 Thread Trajce Nikolov NICK
Thanks Robert ! Very well explained !

Cheers!
Nick

On Tue, Dec 6, 2016 at 10:17 AM, Robert Osfield 
wrote:

> Hi Nick,
>
> On 6 December 2016 at 05:38, Trajce Nikolov NICK
>  wrote:
> > Hi Robert, Community,
> >
> > This might sounds stupid so I am apologize upfront. I spent some time
> > reading the code of TerrainTile and I am seeing it as a Group (right?).
> When
> > using NodeVisitors I am seeing the TerrainTiles as part of the scene.
> When I
> > want to use it as ordinary Group it is not.
> >
> > For example, I have this scene:
> > PagedLOD->Group->TerrainTile->MatrixTransform->Geode
> >
> > MatrixTransform is reporting 0 numParents and
> Geode->getParentalNodePaths is
> > up to the MatrixTransform
> >
> > I am confused. I am after replacing the TerrainTile with my own
> Group/Node
>
> The TerrainTile "has a" TerrainTechnique, and it's the concrete
> TerrainTechnique (such as GeometryTechnique) to take the elevant and
> image layers assigned to the TerrailTile and create a local subgraph
> capable of rendering that data.
>
> It's entirely up to the TerrainTechnique how it creates and manages
> it's own local subgraph graph, and typically won't directly assign it
> to the main scene graph, rather it it's self contained within the
> TerrainTechnique, this means the parent can be null for the topmost
> node in the local subgraph.  This subgraph is still traversed because
> TerrainTile calls TerrainTechnique on each traversal, and the
> TerrainTechnique implementation can decide how best to do the
> traversal of it's local subgraph.
>
> The fact that the local subraphs are traversed means that the
> NodeVisitor's that are doing the traversal will collect the full
> NodePath from the root of the scene graph down through the TerrainTile
> to the local subgraph, so if you want  the parental chain then a
> visitor will provide this for you.
>
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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


[osg-users] Building KdTrees

2016-12-06 Thread Ale Maro
Hi,

may be this is a trivial question but I am not sure how to enable KdTrees and 
DatabasePager on a scene.
I have my own file reader (not derived from OSG ReaderWriter class) and I 
create directly the geometries.
May be I misunderstood but it seems the KdTree it is not built automatically 
even if I call 

osgDB::Registry::instance()>setBuildKdTreesHint(osgDB::Options::BUILD_KDTREES )

Do I need to use KdTreeBuilder explicitly or there is a way to build KdTree 
automatically? Is it built automatically using OSG I/O plugins?
What about DatabasePager?

Thank you in advance.

Best regards
Ale

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





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


Re: [osg-users] Flat Earth Files

2016-12-06 Thread Glenn Waldron
Rambabu,

There are a few examples in the "tests" folder that use flat (projected)
maps, including openstreetmap_flat.earth and state_plane.earth.




Glenn Waldron

On Tue, Dec 6, 2016 at 7:03 AM, Rambabu Repaka 
wrote:

> Hi,In osgearth upon builiding globe output for all examples using .earth
> files .Can anyone have the data files for flat earth.
>
> ...
>
> Thank you!
>
> Cheers,
> Rambabu
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69616#69616
>
>
>
>
>
> ___
> 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] Flat Earth Files

2016-12-06 Thread Rambabu Repaka
Hi,In osgearth upon builiding globe output for all examples using .earth files 
.Can anyone have the data files for flat earth.

... 

Thank you!

Cheers,
Rambabu

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





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


Re: [osg-users] osgTerrain::TerrainTile not in parental list (??)

2016-12-06 Thread Robert Osfield
Hi Nick,

On 6 December 2016 at 05:38, Trajce Nikolov NICK
 wrote:
> Hi Robert, Community,
>
> This might sounds stupid so I am apologize upfront. I spent some time
> reading the code of TerrainTile and I am seeing it as a Group (right?). When
> using NodeVisitors I am seeing the TerrainTiles as part of the scene. When I
> want to use it as ordinary Group it is not.
>
> For example, I have this scene:
> PagedLOD->Group->TerrainTile->MatrixTransform->Geode
>
> MatrixTransform is reporting 0 numParents and Geode->getParentalNodePaths is
> up to the MatrixTransform
>
> I am confused. I am after replacing the TerrainTile with my own Group/Node

The TerrainTile "has a" TerrainTechnique, and it's the concrete
TerrainTechnique (such as GeometryTechnique) to take the elevant and
image layers assigned to the TerrailTile and create a local subgraph
capable of rendering that data.

It's entirely up to the TerrainTechnique how it creates and manages
it's own local subgraph graph, and typically won't directly assign it
to the main scene graph, rather it it's self contained within the
TerrainTechnique, this means the parent can be null for the topmost
node in the local subgraph.  This subgraph is still traversed because
TerrainTile calls TerrainTechnique on each traversal, and the
TerrainTechnique implementation can decide how best to do the
traversal of it's local subgraph.

The fact that the local subraphs are traversed means that the
NodeVisitor's that are doing the traversal will collect the full
NodePath from the root of the scene graph down through the TerrainTile
to the local subgraph, so if you want  the parental chain then a
visitor will provide this for you.

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


Re: [osg-users] osgEarth

2016-12-06 Thread Robert Osfield
Hi Bhanu,

The way you are trying to ask *exactly* question multiple times to
different threads is very poor community etiquite. It's absolutely the
worst way to get problems resolved.  You must stop this behaviour and
engage with the community in a proper way, if you can't I will
recommend that you are removed from the community as you are wasting
our time and setting a terrible example to others in the community.

In each of the previous threads that you have asked your question in
an ambiguous way and each time experienced members of the community
have given you a perfectly reasonable answer.  Rather reply to these
threads asking for calcification, explaining what you are trying to do
and what you are having specific problems you should add your response
to these threads.

You absolutely should not start a new thread and give exactly the same
question again.  The only thing you'll achieve is to frustrate and
anger the rest of the community, the very people you need help from.

Robert.



On 6 December 2016 at 04:40, Bhanu Chandra  wrote:
> Hi,
> how to place models with specified lat and lon positions to the flat earth ?
> ...
>
> Thank you!
>
> Cheers,
> Bhanu
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69609#69609
>
>
>
>
>
> ___
> 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