L3DT users' community
Large 3D terrain generator

Freeworld3D Problem

Got a problem or need advice?

Freeworld3D Problem

Postby dennis » Wed Apr 25, 2007 9:46 pm

I'm having a problem importing L3DT heightfields into Freeworld3D. After importing a heightfield from L3DT there are holes in the terrain. You can see the terrain here: http://i40.photobucket.com/albums/e216/ ... 3DMesh.jpg.

Even with the holes if you export the terrain and then reimport it into L3DT it looks fine with the correct contours, heights etc. Here is what I did to import the terrain:

1. export from L3DT at 513 x 513 heightfield using the raw format. This is a single tile from a tiled HM. To get the height range to calculate scale I imported this single tile into L3DT.
2. Create a new 512 x 512 terrain in FreeWorld3D.
3. Import the heightfield as raw16. Scale is heightrange/65536. Units per step is the Horizontal Scale in L3DT.

Worked before but not now.
dennis
Luminary
 
Posts: 65
Joined: Fri Aug 04, 2006 9:54 pm

Postby Aaron » Wed Apr 25, 2007 11:44 pm

Hi Dennis,

Most curious. Does the file load/display OK in Photoshop/Terragen/etc? The regular patchwork holes makes me suspect this is a problem in FreeWorld3D's terrain LOD algorithm or renderer (which are often tile-based), but I can't say I know how you might go about un-breaking it. Perhaps if you try a smoother map with less erosion? Complex surfaces can overload some LOD algorithms (this happens with Atlas at the moment), so making a less complex map may work.

Best regards,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Postby dennis » Thu Apr 26, 2007 12:52 am

I haven't tried either of those. However since it displays ok after being reimported to L3DT I think you are right that the problem is with Freeworld3D.

Very interesting point about overloading the LOD algorithm. I'll try some fairly uniform terrain without the highly eroded areas.

Thanks Aaron.
dennis
Luminary
 
Posts: 65
Joined: Fri Aug 04, 2006 9:54 pm

Postby dennis » Thu Apr 26, 2007 1:06 am

Well, it wasn't a problem with overloading the LOD algorithm. The problem is that Freeworld3D appears to require integer "Units per Step". This is the horizontal scale in L3DT. To get around the problem use "1" as the UPS and calculate vertical scale as height_range/(65536 * horizontal scale).
dennis
Luminary
 
Posts: 65
Joined: Fri Aug 04, 2006 9:54 pm


Return to Help and support

Who is online

Users browsing this forum: No registered users and 2 guests

cron