• Welcome to World Machine Community. Please login or sign up.
 
October 14, 2019, 07:31:07 am

News:

Read the Development Diary for an inside look at World Machine's progress!


Tiled filed input doesn't work......

Started by VicToMeyeZR, May 30, 2014, 06:03:51 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VicToMeyeZR

May 30, 2014, 06:03:51 am Last Edit: May 30, 2014, 12:15:39 pm by Remnant
Quote from: Remnant on March 20, 2013, 02:02:29 pm
YES) If you have multiple input files, and they fit neatly onto a grid, you can use a Tiled File Input device to bring the entire set of heightfields into World Machine in one swoop. They just need a naming structure something like this: mytile_x0_y0, tile_1,4, etc. Where the first and second numbers are X and Y grid coordinates of the heightfield. This works great for sliced terrain datasets, but if you want to have more loosly-defined locations (perhaps with overlap) then you will need to do something else...


SO yeah, this doesn't work. :evil:


Stephen

That error message means that World Machine is having trouble parsing your input files.

Since you are using RAW files, my first question is: are these 16 bit RAW or 8bit RAW? The currently available version of World Machine requires high bit depth RAW files to be noted as either .r16 or .r32 to distinguish them from 8 bit raw. If your input files are 16bit raw, just rename *.raw to *.r16 and WM should accept them.

If you are still having problems after that, I would definitely like to take a look at your input tileset, as there is no reason why this would fail to load.
-- Stephen Schmitt
- Creator of World Machine


Stephen

Are they square or rectangular in dimension? It's impossible to guess the dimensions on a raw file that isn't square, so if that is the case WM will not be able to load them.

If its not the above, I'd be happy take a closer look at your tiled input set if you zip them up and mail them to [email protected]. From inspection everything looks like it should work fine.


-- Stephen Schmitt
- Creator of World Machine

VicToMeyeZR

May 30, 2014, 12:47:06 pm #4 Last Edit: May 30, 2014, 12:49:14 pm by VicToMeyeZR
So since Unity only outputs 8Bit RAW heightmaps, and you have a TON of users that use Unity... unless I misunderstood your post

Stephen

Your raw files actually are 257x257 16bit RAWs. If you rename them to R16 they will load successfully.

You can verify this by using Photoshop or another exploratory tool : a 257x257x8bit raw should be only 66,049 bytes, whereas your file is 129KB; there are clearly two channels of data present, and if treated as a 16bit value, is successful.
-- Stephen Schmitt
- Creator of World Machine

Stephen

Also, it looks like the axis are flipped in the terrain set: What is labelled X axis actually goes north/south, while Y goes east/west. This will import very poorly into WM since it doesn't match the usual coordinate system convention (X,Y ordered where x comes first in the coordinate pair, and runs east/west). Re-label the tiles appropriately and you should be OK!
-- Stephen Schmitt
- Creator of World Machine

VicToMeyeZR

Quote from: Remnant on May 30, 2014, 01:27:12 pm
Also, it looks like the axis are flipped in the terrain set: What is labelled X axis actually goes north/south, while Y goes east/west. This will import very poorly into WM since it doesn't match the usual coordinate system convention (X,Y ordered where x comes first in the coordinate pair, and runs east/west). Re-label the tiles appropriately and you should be OK!


Roger. I will try all those.

Thanks

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview