OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

rendering problem


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
lucielemon
User


Joined: 15 Mar 2010
Posts: 96

PostPosted: Mon Jul 05, 2010 3:01 pm    Post subject:
rendering problem
Reply with quote

Hi,
Is it normal to have a rendering like this (enclose file) typing "osgdem.exe -d 104n04_0100_deme.dem -l 5 -o 104n04_0100_deme.osg"?
When I add --geocentric, I don't have problem in rendering.


Thank you!

Cheers,
Lucie[/img]
Back to top
View user's profile Send private message
zonk
Appreciator


Joined: 23 May 2009
Posts: 621

PostPosted: Mon Jul 05, 2010 3:07 pm    Post subject:
Reply with quote

Hi lucielemon,

it looks like a unfinished database where the full LOD is not reached. have you tried to rum osgdem without the lLOd limitation to Level 5 ?

"osgdem.exe -d 104n04_0100_deme.dem -o 104n04_0100_deme.osg"


Cheers,
Torben
Back to top
View user's profile Send private message
lucielemon
User


Joined: 15 Mar 2010
Posts: 96

PostPosted: Mon Jul 05, 2010 3:12 pm    Post subject:
Reply with quote

Hi,
Thank you for your reply!
No I have not tried without limitation because I think it will take considerable time, isn't it?

Cheers,
lucie
Back to top
View user's profile Send private message
lucielemon
User


Joined: 15 Mar 2010
Posts: 96

PostPosted: Mon Jul 05, 2010 3:17 pm    Post subject:
Reply with quote

Hi,

On the other hand, I don't understand why I don't have the same problem when I add "--geocentric". Could you explain it?


Thank you!

Cheers,
lucie
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12264

PostPosted: Mon Jul 05, 2010 3:24 pm    Post subject:
rendering problem
Reply with quote

Hi Lucie,

It looks like a numerical precision issue on the terrain due to a very
small XY range. Is the coord system of your dem in degrees? Using
--geocentric introduces Earth Center Earth Fixed coordinates which are
in meters which avoids the issue numerical issues. Also changing the
target coordinate system into meters will avoid the issue you are
seeing.

Robert.

On Mon, Jul 5, 2010 at 4:01 PM, lucie lemonnier
<> wrote:
Quote:
Hi,
Is it normal to have a rendering like this (enclose file) typing "osgdem.exe -d 104n04_0100_deme.dem -l 5 -o 104n04_0100_deme.osg"?
When I add --geocentric, I don't have problem in rendering.


Thank you!

Cheers,
Lucie[/img]

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




Attachments:
http://forum.openscenegraph.org//files/rendu_167.jpg






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
zonk
Appreciator


Joined: 23 May 2009
Posts: 621

PostPosted: Mon Jul 05, 2010 3:29 pm    Post subject:
Reply with quote

Hi,

it looks like a problem with normals. I don't know if the corresponding code is the same for geocentric and flat databases.

Of course, if you finish your database build without LOD limitation, it takes more time than a inclomplete DB Smile

My first VPB attempts with incomplete VPB runs looked like your image so I assume you should give VPB a chance and finish the run without limitations Smile

If you compile only the DEM without textures, it should be complete in less than an hour for an area of europe on the srtm 3arcs resolution on an up to date PC.


Cheers,
Torben
Back to top
View user's profile Send private message
lucielemon
User


Joined: 15 Mar 2010
Posts: 96

PostPosted: Mon Jul 05, 2010 3:41 pm    Post subject:
Reply with quote

Hi,
Thanks for your reply Robert.
I don't know if my dem is in degrees, I found it in this site :
http://www.geobase.ca/geobase/en/index.html.
I will try to put the coordinate system into meters.

Cheers,
lucie
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12264

PostPosted: Mon Jul 05, 2010 3:58 pm    Post subject:
rendering problem
Reply with quote

Hi Lucie,

I would recommend getting familiar with the GDAL tools such as
gdalinfo, this command line app will report all the geospatial coords
on your data.

Robert.

On Mon, Jul 5, 2010 at 4:41 PM, lucie lemonnier
<> wrote:
Quote:
Hi,
Thanks for your reply Robert.
I don't know if my dem is in degrees, I found it in this site :
http://www.geobase.ca/geobase/en/index.html.
I will try to put the coordinate system into meters.

Cheers,
lucie

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









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
lucielemon
User


Joined: 15 Mar 2010
Posts: 96

PostPosted: Tue Jul 06, 2010 8:19 am    Post subject:
Reply with quote

Hi,

Thank you for the information!
Indeed, the coord system of my dem is in degrees.
gdal_info give this :

Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)
Files: 104n04_0100_deme.dem
Size is 1201, 1201
Coordinate System is:
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.257222101,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4269"]]
Origin = (-133.750104166666660,59.250104166666667)
Pixel Size = (0.000208333333333,-0.000208333333333)
Metadata:
AREA_OR_POINT=Point
Corner Coordinates:
Upper Left (-133.7501042, 59.2501042) (133d45'0.37"W, 59d15'0.38"N)
Lower Left (-133.7501042, 58.9998958) (133d45'0.37"W, 58d59'59.63"N)
Upper Right (-133.4998958, 59.2501042) (133d29'59.62"W, 59d15'0.38"N)
Lower Right (-133.4998958, 58.9998958) (133d29'59.62"W, 58d59'59.63"N)
Center (-133.6250000, 59.1250000) (133d37'30.00"W, 59d 7'30.00"N)
Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined
NoData Value=-32767
Unit Type: m

I don't know what to write in my command line except --geocentric so that this works, I tried several things but it doesn't work.

Thank you!

Cheers,
lucie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Layered rendering with a geometry shader AnyOldName3 General 8 Tue May 14, 2019 11:25 pm View latest post
No new posts off screen rendering with OSG Sorin General 0 Mon May 13, 2019 8:14 am View latest post
No new posts Volume Rendering and Depth Buffer AnnieOwl General 5 Fri Apr 12, 2019 5:20 pm View latest post
No new posts Clip planes and instanced rendering Alberto Luaces General 2 Tue Apr 09, 2019 10:43 am View latest post
No new posts Large scale point clouds rendering wi... saedrna1 General 1 Fri Mar 08, 2019 8:01 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP