Re: [osg-users] Clamping models to an osgTerrain

2020-01-11 Thread Robert Osfield
Doing what you describe is possible with existing functionality, it just 
isn't implemented for you.  The complicated part in this type of work is 
the meshing of the terrain to the cultural data, if you don't need this 
level of fidelity then just putting a transform above a model and inserting 
this into tile on disk would work well.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/ffa10d02-3493-4006-80a7-44e87635a503%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Clamping models to an osgTerrain

2020-01-09 Thread Chris Hanson
Most of the time, when it gets to adding stuf on top of the terrain, I head
over to osgEarth.

I think it's possible to serialize pre-built terrain models from osgEarth,
but I don't know if it is really feasible to do it to the extent that VPB
does.

On Thu, Jan 9, 2020 at 12:25 PM Brad Colbert  wrote:

> Robert, thank you for the reply.  The community-crickets were a little
> disconcerting.
>
> I don't think it has to be as complicated as you described.  Simply
> finding the height at the location of the object, placing it there, and
> placing a file reference within that tile's hierarchy so that the model
> file is paged in (or not if it's already in the cache).  Do this for every
> tile in the hierarchy and you are done.  That would be a major jump in
> capability, at this point.
>
> Either way, I'm simply looking to do the above and wondering if it appears
> feasible with current capabilities.
>
> Best,
> Brad
>
>
> On Thursday, January 9, 2020 at 1:41:25 AM UTC-8, Robert Osfield wrote:
>>
>> I don't know of any off the open sourced tools that do this for you.  It
>> was always something I had on my wish list for VirtualPlanetBuilder but
>> never had the time/funding to tackle it.
>>
>> The post processing of paged database is something that has been done
>> over the years for various purposes.
>>
>> Combing the TerrainTile height fields with cultral data - trees, roads,
>> houses would require one to positioning of the cultral data to the
>> appropriate height, then meshing the tile's height field taking into
>> account the outlines/points of the cultural data being added if you want an
>> exact match.  The remeshing will be the hardest part of this work, so I'd
>> suggest tackling the positioning first then add the meshing later.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to osg-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osg-users/4d820096-b297-4e6e-94b9-cc1959d41466%40googlegroups.com
> 
> .
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Clamping models to an osgTerrain

2020-01-09 Thread Brad Colbert
Robert, thank you for the reply.  The community-crickets were a little 
disconcerting.

I don't think it has to be as complicated as you described.  Simply finding 
the height at the location of the object, placing it there, and placing a 
file reference within that tile's hierarchy so that the model file is paged 
in (or not if it's already in the cache).  Do this for every tile in the 
hierarchy and you are done.  That would be a major jump in capability, at 
this point.

Either way, I'm simply looking to do the above and wondering if it appears 
feasible with current capabilities.

Best,
Brad


On Thursday, January 9, 2020 at 1:41:25 AM UTC-8, Robert Osfield wrote:
>
> I don't know of any off the open sourced tools that do this for you.  It 
> was always something I had on my wish list for VirtualPlanetBuilder but 
> never had the time/funding to tackle it.
>
> The post processing of paged database is something that has been done over 
> the years for various purposes.  
>
> Combing the TerrainTile height fields with cultral data - trees, roads, 
> houses would require one to positioning of the cultral data to the 
> appropriate height, then meshing the tile's height field taking into 
> account the outlines/points of the cultural data being added if you want an 
> exact match.  The remeshing will be the hardest part of this work, so I'd 
> suggest tackling the positioning first then add the meshing later.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/4d820096-b297-4e6e-94b9-cc1959d41466%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Clamping models to an osgTerrain

2020-01-09 Thread Robert Osfield
I don't know of any off the open sourced tools that do this for you.  It 
was always something I had on my wish list for VirtualPlanetBuilder but 
never had the time/funding to tackle it.

The post processing of paged database is something that has been done over 
the years for various purposes.  

Combing the TerrainTile height fields with cultral data - trees, roads, 
houses would require one to positioning of the cultral data to the 
appropriate height, then meshing the tile's height field taking into 
account the outlines/points of the cultural data being added if you want an 
exact match.  The remeshing will be the hardest part of this work, so I'd 
suggest tackling the positioning first then add the meshing later.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/25279768-6e42-4e43-9faf-1bd73057c495%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Clamping models to an osgTerrain

2019-12-21 Thread SHAYNE TUELLER
Hi Brad,

I'm assuming you've looked at the osgSim class? It has the ability to query 
where the ground is at the highest LOD of the terrain. It has other methods you 
can use to interact with osgTerrain that may be able to help you.

Shayne

> On December 20, 2019 at 4:53 PM Brad Colbert  wrote:
> 
> Hi folks,
> 
> I googled but not found an answer that goes into this.  
> 
> I have what can be considered a town and want to clamp the buildings to 
> the terrain (obviously).
> 
> What I would prefer is to have some pre-process that runs intersectors on 
> the terrain, pushing up (or down) through the PagedLODs, placing the model at 
> the appropriate height, and then saving that tile back out.  This way the 
> models just get loaded in with the PagedLOD and are already at the right 
> height as the terrain height pops up and down based on the LOD.
> 
> Is this even possible with 3.6?  If so, any ideas, thoughts, pointers?
> 
> Best,
> Brad
> 
>  
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "OpenSceneGraph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to osg-users+unsubscr...@googlegroups.com 
> mailto:osg-users+unsubscr...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/osg-users/dd3b24e4-a1da-46de-9957-c98bf330d2c1%40googlegroups.com
>  
> https://groups.google.com/d/msgid/osg-users/dd3b24e4-a1da-46de-9957-c98bf330d2c1%40googlegroups.com?utm_medium=email_source=footer
>  .
> ___
> 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] Clamping models to an osgTerrain

2019-12-20 Thread Brad Colbert
Hi folks,

I googled but not found an answer that goes into this.  

I have what can be considered a town and want to clamp the buildings to the 
terrain (obviously).

What I would prefer is to have some pre-process that runs intersectors on 
the terrain, pushing up (or down) through the PagedLODs, placing the model 
at the appropriate height, and then saving that tile back out.  This way 
the models just get loaded in with the PagedLOD and are already at the 
right height as the terrain height pops up and down based on the LOD.

Is this even possible with 3.6?  If so, any ideas, thoughts, pointers?

Best,
Brad

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/dd3b24e4-a1da-46de-9957-c98bf330d2c1%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org