How to displace an object (object's shader) through a displacement function?

Started by N-drju, December 17, 2019, 03:35:32 PM

Previous topic - Next topic

N-drju

I realized that I might need to displace a few surfaces in the objects I wish to make. However, my first trials indicate that Terragen fakes displacement and instead of displacing the object per se, it simply applies "fake displacement". The surface does look as if it was rough / indented but in fact it's just a flat surface with some depth effects applied...

My question would be, how to make real displacements on a surface in a way that it actually changes an object's shape. Or should that be done while actually building an object in, say, Blender not in Terragen?
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

WAS

Quote from: N-drju on December 17, 2019, 03:35:32 PMI realized that I might need to displace a few surfaces in the objects I wish to make. However, my first trials indicate that Terragen fakes displacement and instead of displacing the object per se, it simply applies "fake displacement". The surface does look as if it was rough / indented but in fact it's just a flat surface with some depth effects applied...

My question would be, how to make real displacements on a surface in a way that it actually changes an object's shape. Or should that be done while actually building an object in, say, Blender not in Terragen?

Are you using force ray tracing? That would mean the displacement is read as bump. For actual displacement alterations to the objects, you'll probably need to use the Mesh Displacer.

N-drju

Imported objects do not have mesh displacer.

Also, I'm not sure what ray tracing has to do with it.
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

WAS

Quote from: N-drju on December 17, 2019, 04:11:29 PMImported objects do not have mesh displacer.

Also, I'm not sure what ray tracing has to do with it.

It's only in Creative/Pro, I believe (Pro for sure). I'm not sure why. Though as you can see, a wine glass is most certainly an imported object. :P

When an object is Ray Traced (Force Ray Tracing) the displacement of shaders is done in Bump Mapping, which has no real displacement. It's simulated displacement by lighting alone.

N-drju

Well, I can't find either the "mesh displacer" nor the "force ray tracing" options... Guess I'm off to Blender then... ::) ::)
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

WAS

It's under the object settings.

Dune

You have to choose Force Displacement for an (imported) object to be really displaced. Ray tracing (default) can't handle displacement, but only does bump, as WAS wrote. But beware that force displacement can tear an object apart. Make sure it has enough subdivisions.

WAS

Quote from: Dune on December 18, 2019, 02:39:51 AMYou have to choose Force Displacement for an (imported) object to be really displaced. Ray tracing (default) can't handle displacement, but only does bump, as WAS wrote. But beware that force displacement can tear an object apart. Make sure it has enough subdivisions.
Yeah it can. Even subtle warp destroyed lighting against terminators on that wine glass. And the roughness of 0.5 I believe seems more rough than usual.

N-drju

Quote from: Dune on December 18, 2019, 02:39:51 AMYou have to choose Force Displacement for an (imported) object to be really displaced. Ray tracing (default) can't handle displacement, but only does bump, as WAS wrote. But beware that force displacement can tear an object apart. Make sure it has enough subdivisions.

This is probably the answer I look for, because I have no mesh modifiers. Which sucks. >:( Must be the pro version thing, like WAS mentioned.

I'll try it out after I finish the current render. I'll experiment with subdivison amount too!
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

Dune

Is mesh modifying limited to pro? You can simply plug any fractal in and it distorts an object, no real 'mesh modifiers' necessary. If you can get that to work, you just need to set reasonable values in the PF.

KlausK

Yes, "Custom mesh deformation on objects" is only available in the Pro version (look at the TG4 Comparison chart on the planetside homepage).

But you can also disable "Ray Trace Objects" on the "Advanced" tab of the "Render" node. The renderer then uses micropoly rendering on objects as well. That affects all objects in the scene. Increase Micropoly Detail accordingly. You can read about that in the Wiki.

CHeers, Klaus
/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 1070 TI / Win7 Ultimate . . . still (||-:-||)

Hannes

Is the render method ("force displacement") only available in the pro versions as well, or only the mesh deformation?

KlausK

Can`t tell.
But with "Raytrace Objects" turned off you do not need that.
But: in my tests shadows of displaced imported objects do not reflect the displacement.
Can`t remember if that is always the case, regardless of the method to deform the object (Mesh Displacer, Force Displacement etc).

CHeers, Klaus
/ ASUS WS Mainboard / Dual XEON E5-2640v3 / 64GB RAM / NVIDIA GeForce GTX 1070 TI / Win7 Ultimate . . . still (||-:-||)

Hannes

Did a quick and dirty (ugly) test. I used the same imported sphere. The left one uses a PF for mesh deformation and the right one is set to "force displacement" using another PF in the displacement slot of the default shader.
As you can see deformation produces a correct shadow, whereas displacement doesn't.

By the way, the sphere is quite high poly.

N-drju

Quote from: Hannes on December 18, 2019, 05:24:38 AMAs you can see deformation produces a correct shadow, whereas displacement doesn't.

Spot on. But having such a tiny thing as a "premium" feature just sucks.

As for your previous question, "force displacement" render method is available in Creative, but I don't think it will be of use since it's the mesh that is a central point of the problem...
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"