Author Topic: World Machine to Unity issue with slope having jagged stair-steps  (Read 145 times)

0 Members and 1 Guest are viewing this topic.

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
I created some simple shapes in World Machine to represent a beach descending down into a body of water and the slope down towards the water isnt smooth its jagged and stair-step-like.  I even tried blurring the image in photoshop and the issue still persists. I dont understand what is causing the issue.  The raw file is 4096x4096 and my height map resolution is set at 4097.  I have attached an image to show the issue when zoomed in close.




ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #1 on: December 07, 2017, 04:41:54 PM »
Just curious - your file output from world machine is using raw r16 file?

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #2 on: December 07, 2017, 04:51:22 PM »
It definitely is 16bit, that was the first thing I checked since it seems to be a resolution issue. Its exporting as Raw16
« Last Edit: December 07, 2017, 04:54:34 PM by mostlyhuman »

ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #3 on: December 07, 2017, 05:15:50 PM »
The reason I asked is I tried to use a 16 bit tif file with MapMagic in Unity  using the texture input node and I got that same stepped effect.

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #4 on: December 07, 2017, 05:17:18 PM »
Hmm, I wonder what the solution is :/

ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #5 on: December 07, 2017, 05:19:31 PM »
When i used a r16 file I didn't have that problem. I was told if you try to use tif it will convert it to 8 bit internally and only true raw input files work @ 16 bit. So I expect my issue was not your issue.

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #6 on: December 07, 2017, 05:20:15 PM »
Ahhh okay, hmmm.

ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #7 on: December 07, 2017, 05:22:38 PM »
How are you importing the height map in unity?

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #8 on: December 07, 2017, 05:27:41 PM »
Here is the import settings if this is what you mean


ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #9 on: December 07, 2017, 05:43:05 PM »
I am just learning World Machine. How large is your terrain size in WM?

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #10 on: December 07, 2017, 06:25:34 PM »
4097x4097 with a 0.732 m/pixel scale

ibyte

  • World Machine Veteran
  • ***
  • Posts: 22
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #11 on: December 07, 2017, 07:50:23 PM »
Oh I meant in (kilo)meters vs resolution - your import in Unity showed 75 x 75 meters with a height of 1000 meters?
I think it might be 3Km?
« Last Edit: December 07, 2017, 07:52:11 PM by ibyte »

mostlyhuman

  • Community Member
  • **
  • Posts: 7
    • View Profile
Re: World Machine to Unity issue with slope having jagged stair-steps
« Reply #12 on: December 07, 2017, 08:06:21 PM »
the game world is 3km x 3km and tiled into 75m x 75m tiles that each have a 4k reaolution heightmap