Vector displacement


https://forum.reallusion.com/Topic313911.aspx
Print Topic | Close Window

By yoyomaster - 8 Years Ago
Hello everyone!

I am trying to use a vector displacement map in iClone, but I cannot make it work, anyone knows if they can be used?

Vector displacement maps allow displacement in all axis, instead of only the Z axis, these are very useful for things like ocean waves, here is a sample image.

https://forum.reallusion.com/uploads/images/953289eb-8c68-4b86-a25e-2f76.jpg
By animagic - 8 Years Ago
It should work. When you load the displacement map, you should get a dialog that lets you choose between height map and vector displacement map.

https://forum.reallusion.com/uploads/images/29f5f41f-09d4-4258-bc26-0429.png

At the introduction of IC6, vector displacement was mentioned as a feature. There is actually a vector displacement sample project (under Project Template => Displacement).
By animagic - 8 Years Ago
sw00000p, since the OP already has the vector map, he can simply load that into the Displacement channel as I indicated, and apply it a plane or other surface. The OP can then make adjustments inside iClone 6 as desired, such as Strength, Tessellation Level, and Multiplier, as shown in this screen capture:

https://forum.reallusion.com/uploads/images/fea918cc-c04c-40a4-aa37-de87.png

The only other setting to be aware of is Tessellation Shadow in Preference, which should be checked.
By Rampa - 8 Years Ago
You also should use the plane in the "tessalation template" folder, and not the basic plane. Otherwise you won't get enough tessalation for the displacement.
By justaviking - 8 Years Ago
rampa (1/24/2017)
You also should use the plane in the "tessalation template" folder, and not the basic plane. Otherwise you won't get enough tessalation for the displacement.


I'm not at my iClone computer right now, so I'll ask the obvious question:
What's the difference between the two planes?
By animagic - 8 Years Ago
justaviking (1/24/2017)
rampa (1/24/2017)
You also should use the plane in the "tessalation template" folder, and not the basic plane. Otherwise you won't get enough tessalation for the displacement.


I'm not at my iClone computer right now, so I'll ask the obvious question:
What's the difference between the two planes?

It used to be the number of polygons, but as far as I can see the basic plane (under 3D Spaces) now has 200, same as the displacement plane.
By Rampa - 8 Years Ago
That makes it even easier! :)

I guess it's just other shapes, like the cube, that are super low-resolution.
By yoyomaster - 8 Years Ago
Hello everyone and thanks for all the great replies.

I tried the vector displacement option, but it did not work, but I should have mentioned that I am using 32 bits exr files, I must admit that I did not try to convert them to other format, which might have done the trick.

Here is a low resolution 32 bits exr of an ocean wave: vector_displacement_wave.exr 1.43 mb
By justaviking - 8 Years Ago
@Yoyo...
I'm not sure about the exr format for this.  I used the sample image from your first post (Save Picture As... JPEG format) and it worked.
Be sure you have your preview quality set to HIGH.
https://forum.reallusion.com/uploads/images/4eba81cb-3466-44ac-84df-502c.jpg

@Job...
Thanks for the tip about the number of polygons.
I used the Displace_001 plane from the Tessellation Template when I did my test.


ADDED ==>

@Yoyo...

I tried the low-res exr file you provided for download.  It worked too.  :)
The main difference is the jpeg gave me the option to auto-apply it to the Bump channel in addition to the Displacement channel.  The exr did not, it applied it to the Displacement channel only, with no option to add it to the Bump channel at the same time (though I could do it as a separate step, which then asks me if it's a Bump map or a Normal map).
By yoyomaster - 8 Years Ago
justaviking (1/25/2017)
@Yoyo...
I'm not sure about the exr format for this.  I used the sample image from your first post (Save Picture As... JPEG format) and it worked.
Be sure you have your preview quality set to HIGH.
https://forum.reallusion.com/uploads/images/4eba81cb-3466-44ac-84df-502c.jpg

@Job...
Thanks for the tip about the number of polygons.
I used the Displace_001 plane from the Tessellation Template when I did my test.


ADDED ==>

@Yoyo...

I tried the low-res exr file you provided for download.  It worked too.  :)
The main difference is the jpeg gave me the option to auto-apply it to the Bump channel in addition to the Displacement channel.  The exr did not, it applied it to the Displacement channel only, with no option to add it to the Bump channel at the same time (though I could do it as a separate step, which then asks me if it's a Bump map or a Normal map).

Cool, and thanks for the testing, I will check, maybe I need an update or something, thanks again Mate! :D
By Rampa - 8 Years Ago
It was actually designed around 32 (or was it just 16?) bit EXR images, but you can get away with jpegs. When using the EXR, you'll notice that the "base value" slider in the tessalation section is grayed out.

https://forum.reallusion.com/uploads/images/33bb8ff6-a4c6-4317-999e-0d09.jpg
By animagic - 8 Years Ago
sw00000p (1/25/2017)

Notice the response pertaining your (exr) workflow?... "I'm not sure."
...that's because Reallusion has not told them how it works.

That's just another assumption out of nowhere...:doze:

Extensive documentation was provided by RL regarding this functionality in the form of a Tessellation Learning Kit. It includes a guide entitled: 32-bit Height Displacement Mapping.

I don't see why you again start interfering in a thread of someone who has a question and who we are trying to help. There is no shame in not being sure of something, and it is smart to ask.
By GOETZIWOOD STUDIOS - 8 Years Ago
sw00000p (1/25/2017)
animagic (1/25/2017)
sw00000p (1/25/2017)

Notice the response pertaining your (exr) workflow?... "I'm not sure."
...that's because Reallusion has not told them how it works.

That's just another assumption out of nowhere...:doze:

Extensive documentation was provided by RL regarding this functionality in the form of a Tessellation Learning Kit. It includes a guide entitled: 32-bit Height Displacement Mapping.

I don't see why you again start interfering in a thread of someone who has a question and who we are trying to help. There is no shame in not being sure of something, and it is smart to ask.

../.. Does iClone support (exr)? ../..

rampa will teach you ^^
By CtrlZ - 8 Years Ago

[/quote]rampa will teach you ^^[/quote]

Lol!

By Peter (RL) - 8 Years Ago
sw00000p (1/25/2017)
yoyomaster (1/25/2017)[...but I should have mentioned that I am using 32 bits exr files,

Notice the response to you (exr)?... "I'm not sure."
...that's be Reallusion has not told them how it works.

Note;
Careful using Tessellation Shadows.... a serious resource hog.


sw00000p why are trying to start an argument with these unnecessary comments. Despite constant warnings you continue to do this. If you have nothing constructive to say then stay out of the thread. If you want to continue to be a part of this community you really are going the wrong way about it. :angry:
By yoyomaster - 8 Years Ago
rampa (1/25/2017)
It was actually designed around 32 (or was it just 16?) bit EXR images, but you can get away with jpegs. When using the EXR, you'll notice that the "base value" slider in the tessalation section is grayed out.

https://forum.reallusion.com/uploads/images/33bb8ff6-a4c6-4317-999e-0d09.jpg

Hello Rampa, thanks for the reply, it was exported as 32 bits EXR which I think gives more depth to the file to some extend, but I can easily convert them to whatever is needed with Photoshop.
By GOETZIWOOD STUDIOS - 8 Years Ago
yoyomaster (1/25/2017)
rampa (1/25/2017)
It was actually designed around 32 (or was it just 16?) bit EXR images, but you can get away with jpegs. When using the EXR, you'll notice that the "base value" slider in the tessalation section is grayed out.

https://forum.reallusion.com/uploads/images/33bb8ff6-a4c6-4317-999e-0d09.jpg

Hello Rampa, thanks for the reply, it was exported as 32 bits EXR which I think gives more depth to the file to some extend, but I can easily convert them to whatever is needed with Photoshop.


There is a free OpenEXR plugin for Photoshop downloadable here:
http://www.exr-io.com/

Perhaps it will give you more options, I actually did not had time to test it myself, I will when I'll get the chance but perhaps it will be already useful to you.
It is supposed to be quite powerful. Let me know.

UPDATE: oops, a bit tired here, I red "../..but I CANT easily convert../.." instead of "I CAN". Sorry about that. Nonetheless, this plugin might be still useful though.
By GOETZIWOOD STUDIOS - 8 Years Ago
yoyomaster (1/25/2017)
../..it was exported as 32 bits EXR which I think gives more depth to the file to some extend../..

iClone support 32-bits *.exr files for displacement maps but they are supposed to be used for a very specific task, low to high polygonal mesh displacement:
1) The displacement information is in the Red channel only.
2) It is supposed to come from a displacement map baked between a high poly object and its low poly counterpart, so that map should be applied to the low poly version of a high poly version from which the displacement map comes from.
3) There is no "Base Value" slider because the values inside the displacement map red channel are supposed to be the absolute distances between the high and low poly surface.
By Rampa - 8 Years Ago
Sorry. I didn't give a step-by-step with the image I posted. I used your EXR.

Try this:

Double-click the displacement texture tile to load your own file.
Load your 32 bit EXR.
In the box, check "vector displacement" and also "assign to bump".
Now scroll down in the material panel to the "tessalation" section.
Set the tessalation to 10 and the multplier to your preference.

The third slider is the one that is grayed out when using an EXR, as the EXR contains that data already.
By yoyomaster - 8 Years Ago
Again, thank you all for your kind replies, very useful, and thanks for the run-down rampa, Grabiller, I own ProEXR, but thanks, and thanks for the pointers on 32 bits files, will look it up in the manual.