Planetside Software Forums

General => Image Sharing => Topic started by: luvsmuzik on January 13, 2018, 10:44:42 AM

Title: Exr terrain as water
Post by: luvsmuzik on January 13, 2018, 10:44:42 AM
I had a bunch of generated exr displacement images so I loaded one as a terrain file. With all this vector displacement research going on.....

This loaded as a heightfield for me and I used it as water taking the original SSS mask to a surface layer instead of on the fractal terrain. I probably could have just saved the plane it was generated to as an object, but I wanted to see if this worked.

No vector displacement like Artice3D and paq are doing...but I am awaiting a way to do that in other programs whenever everybody shares the technique fully. :)
Title: Re: Exr terrain as water
Post by: N-drju on January 13, 2018, 01:23:35 PM
That's something you don't see everyday. Interesting idea. ;)
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 13, 2018, 02:06:50 PM
Thanks
Quote from: N-drju on January 13, 2018, 01:23:35 PM
That's something you don't see everyday. Interesting idea. ;)

I have 200 such images cached in the file. What I was thinking of was if it would ever be possible to assign the exr cache and animate like a sequence that is possible for an object. Problem is it is saved as cache, exr, not as a sequence. Assigning the exr, to the plane for example. I know you can animate water other ways, I was just thinking.
Title: Re: Exr terrain as water
Post by: bobbystahr on January 14, 2018, 09:08:52 PM
I like this...continue developing this idea please.
Title: Re: Exr terrain as water
Post by: cyphyr on January 15, 2018, 03:43:03 AM
How do you mean it is saved as a cache?
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 15, 2018, 06:35:18 AM
Quote from: cyphyr on January 15, 2018, 03:43:03 AM
How do you mean it is saved as a cache?

Oh, the EXR images are generated when making an animation in Blender. It is the result of the "ocean modifer" applied to a plane. Blender has settings to displace over time, similar to Terragens water shader. When you do such animation, you "bake" the displacement that is stored in a cache output.

When I look at this image in file preview in TG, I see a RGB image that probably could be used in some node setup elsewhere. I just tried it as terrain load heightfield and put a vertical adjust on it. Unlike using a TIFF for a heightfield, this gave me displacement instead of just even vertical rise.

attached a zip example exr.
Title: Re: Exr terrain as water
Post by: j meyer on January 15, 2018, 01:09:54 PM
This is what you get when your exr is applied as VDisp.
[attach=1]
To get it exactly like in Blender the image size should be the same - in meters - as the size
of the plane (?) you used it for there.
I could of course only make a guess here sizewise.

Attached is a tgd to dissect.
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 15, 2018, 01:13:35 PM
Oh wow jmeyer! Thankyou!!

That is what I was thinking like TG noise is too, but no clue how to hook up!
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 15, 2018, 03:34:39 PM
I must say that vector displacement shader did the trick on that EXR image! When I used it on terrain heightfield I was only able to scale the whole height, even though I had some displacement, this works great now!

I transferred that to a plane with hookup to a water shader. I did an extreme y displace at 4 with final multiplier at 5. Off to the races!

Thanks again j meyer!
Title: Re: Exr terrain as water
Post by: cyphyr on January 15, 2018, 04:09:02 PM
Most excellent choppy water!
So is Blender's ability to export displacements like this limited to it's water plane of can it work on other objects, like, err, I don't know, maybe cliffs ... .. . ?
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 15, 2018, 04:24:08 PM
Quote from: cyphyr on January 15, 2018, 04:09:02 PM
Most excellent choppy water!
So is Blender's ability to export displacements like this limited to it's water plane of can it work on other objects, like, err, I don't know, maybe cliffs ... .. . ?

Haha...you and me both....

Blender has a lot of the noise elements that I have seen in Ray Trace programs.....voronoi, perlin, magic, granite, etc.  You can apply that to an object with a displacement modifier. I think now you can even use vertex paint and groups and those kind of techniques
I am learning this and that along the way. I did see some tutorials on exporting Open EXR and EXR . I was trying to squash a frog model and then make a UV map for it, like Artice3D and paq are talking about. I got as far as I could, but I did not have a clue about relaxing the mesh and displacing to another plane. I am sure eventually there will be a way....
Title: Re: Exr terrain as water
Post by: gao_jian11 on January 15, 2018, 09:04:23 PM
interesting. I used grayscale images, originally created using special industrial embossing software in the "numerical control" area.Processing into a vector map should have more details of the quality.
Title: Re: Exr terrain as water
Post by: bobbystahr on January 15, 2018, 10:01:39 PM
Quote from: gao_jian11 on January 15, 2018, 09:04:23 PM
interesting. I used grayscale images, originally created using special industrial embossing software in the "numerical control" area.Processing into a vector map should have more details of the quality.


this looks more like a depth pass but it's a stunning use you've made of it as a height map...KUDOs
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 12:26:34 AM
Quote from: gao_jian11 on January 15, 2018, 09:04:23 PM
interesting. I used grayscale images, originally created using special industrial embossing software in the "numerical control" area.Processing into a vector map should have more details of the quality.


Okay...I had to try that....
I used a grayish image...then did a negative filter....used your node setup with a new camera...I also rendered from that second camera

I did a negative displace on mine as it is a building facade, but I like it. I am playing with vector displace, but do not see much difference yet...I go slow...
Title: Re: Exr terrain as water
Post by: cyphyr on January 16, 2018, 03:45:41 AM
These both look very impressive.
Try feeding the Vector displacement shader into the child input of a surface layer which has a "Tex coords from XYZ" before it and turn down the y function multiplier to 0 (also tweak the x and z so it works perpendicular to the camera or arrange your scene with the projection camera pointing directly along the x or z axis)


Quote from: bobbystahr on January 15, 2018, 10:01:39 PM
this looks more like a depth pass but it's a stunning use you've made of it as a height map...KUDOs

Well spotted Bobby. There is a very useful clue here :)
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 07:43:47 AM
Quote from: gao_jian11 on January 15, 2018, 09:04:23 PM
interesting. I used grayscale images, originally created using special industrial embossing software in the "numerical control" area.Processing into a vector map should have more details of the quality.

We love love love this gao_jian11 :)

His great image here!
http://www.planetside.co.uk/forums/index.php/topic,23970.msg242011.html#msg242011
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 08:45:56 AM
This has a little bit of everything:

EXR image assigned to a plane with vector displacement for water...power fractal for foam....too much reflection, but I was checking comparison to lake versus plane. I don't know because I didn't try yet, if the image would tile the same on a circular lake...to do list.

TG cube object with image shader and displacement for earth dam.
masonspappy grass from file sharing

Render micro 0.6/AA4 1920x1080, 1hr 33 min on my 4gig.

Yes, I know I can get the same displacement with TG internal elements. See my Icy lake images done only with TG. :) I was just experimenting. :)
http://www.planetside.co.uk/forums/index.php/topic,22274.msg224557.html#msg224557
Title: Re: Exr terrain as water
Post by: cyphyr on January 16, 2018, 08:57:40 AM
Interesting experiments.
A couple of suggestions.
Try dropping the displacement a lot, by 70% to 90%. It's an inland reservoir, not the open ocean.
I'd also try plugging the original image map shader through several transform shaders,  scalled and rotated  (each going to their own displacement shader)
(works just the same on a water disk by the way)
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 09:14:35 AM
You are absolutely right cyphyr.  I was trying to isolate at too small a scale here. There is an Atlantic ocean tgc  available in the library I think....I was just doodling. :)
Title: Re: Exr terrain as water
Post by: bobbystahr on January 16, 2018, 10:57:51 AM
Quote from: luvsmuzik on January 16, 2018, 09:14:35 AM
You are absolutely right cyphyr.  I was trying to isolate at too small a scale here. There is an Atlantic ocean tgc  available in the library I think....I was just doodling. :)

yeah, made by Mr Lamppost way back IIRC but great hints from cyphyr...following the progress of this with excitement!
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 12:06:16 PM
I know you all probably think I am so slow...but I really try a lot in between posts...not all of me is scatterbrained.

I reread Hanne's  water animation posts yesterday for some more insight:
http://www.planetside.co.uk/forums/index.php/topic,21618.0.html

So here now we have a distance shader to cut some of the whitecaps. Low res crop...I am trying to adjust the amount of foam and slope on the foam layer, etc, etc,.....

I put links in so perhaps you can see something you never saw, who knows?

ATM, I am flipping between erosion project, camera projected image with displacement, and this, and some snow stuff...and and and.... :)
Title: Re: Exr terrain as water
Post by: luvsmuzik on January 16, 2018, 12:11:35 PM
Quote from: bobbystahr on January 16, 2018, 10:57:51 AM
Quote from: luvsmuzik on January 16, 2018, 09:14:35 AM
You are absolutely right cyphyr.  I was trying to isolate at too small a scale here. There is an Atlantic ocean tgc  available in the library I think....I was just doodling. :)

yeah, made by Mr Lamppost way back IIRC but great hints from cyphyr...following the progress of this with excitement!

Thank you!