Author Topic: Preview a mask (heightfield) in 3-D overlay  (Read 647 times)

0 Members and 1 Guest are viewing this topic.

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Preview a mask (heightfield) in 3-D overlay
« on: February 01, 2017, 07:18:18 AM »
hello,

maybe some folks can help me out:

I got a lot of "masks" in my WM file, that I want to preview in 3D, not only 2D.
The thing is, I use selectors for height and slope, sometimes both, to generate a mask (which is a heightfield, of course)

Now, instead of going thru the process of exporting these to .png for example and re-load/bring them in via File Input node (interpret as RGB), is there a
way to have the b&w mask somehow "converted" into bitmap, to connect to an overview, so I can see "live" changes to the mask on the 3D terrain?

best regards

JakBB

  • World Machine Guru
  • ****
  • Posts: 78
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #1 on: February 02, 2017, 08:19:05 AM »
I think you can just feed the mask into the overlay texture input.

In the overlay view settings choose "Blend colors with mask" at full intensity

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #2 on: February 02, 2017, 11:33:06 PM »
hey, thanks for reply!

but the outcome of the mask is a heightfield, not a bitmap - Overlay view got two slots: 1 for Bitmap, 1 for heightfield - and I can only connect to the heightfield-slot...
maybe I was not clear on that?

If you connect a heightfield to a (slope) selector, then you see a b&w mask, if you focus on the selector - I want this"mask" from inside that selector
to be shown as a 3D model (b&w), so I can see better, what the result will look like.

Inside the selector, everything is 2D only...

JakBB

  • World Machine Guru
  • ****
  • Posts: 78
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #3 on: February 03, 2017, 01:33:11 AM »
Weird, I can connect a height map to the overlay bitmap input on my World Machine, if it doesn't work try feeding the mask into a gradient device with a standard black to white gradient and feeding that gradient into the overlay.

Or if you want to display your mask as a 3D model try feeding it into a displacement device with 0 strength

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #4 on: February 03, 2017, 02:02:52 AM »
thanks for the hints, will test it !

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #5 on: February 03, 2017, 04:23:19 AM »
Weird, I can connect a height map to the overlay bitmap input on my World Machine, if it doesn't work try feeding the mask into a gradient device with a standard black to white gradient and feeding that gradient into the overlay.

Or if you want to display your mask as a 3D model try feeding it into a displacement device with 0 strength

WoW ! All 3 Methods are working :)

Thanks a lot!!

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #6 on: February 03, 2017, 04:33:32 AM »
only thing is, it does not work, like I expected it ;)

basically, I want the "mask" I generate via the height-selector to be projected onto the heightfield as a texture.
so I can see exactly, where white and black areas will be on the terrain

when I use the methodes, you described - I just get some distorted geometry in 3D view

So I guess, only way is export the mask as bitmap and reload with File-input and connect to overlay...
« Last Edit: February 03, 2017, 04:35:51 AM by Onkelpoe »

Onkelpoe

  • World Machine Guru
  • ****
  • Posts: 353
    • View Profile
Re: Preview a mask (heightfield) in 3-D overlay
« Reply #7 on: February 03, 2017, 04:58:30 AM »
Sorry - My fault!!!

It works now, I just connected wrong heightfield XD

I can just connect mask to bitmap slot and heightfield to heightfield in overview