PDA

View Full Version : Displacement in "the other way"?


Ultimatebadass
04-10-2006, 08:13 PM
Hi.
Is there any way to make displacement go in the direction opposite to the surface normals?

And while you're at it: is there some smart way to make displacement go BOTH directions? What I mean: let's say i've got a grid, I want some of the elements on that surface to be displaced 'to the inside' (black on the disp.map) and some of them 'to the outside' (white)... the trick is though, I want to have the medim level (grey) without any displacement at all. Is that possible in some mysterious way, am I missing something here or am I demanding too much?

Thanks!

Chris-TC
04-10-2006, 09:13 PM
Use a change range node.
If you remap 0 to 1 --> -1 to 1, black will get negative displacement, white will get positive displacement and medium gray will stay neutral.

Ultimatebadass
04-11-2006, 07:55 AM
Hi! Thanks for your reply!
I've tried that method but either I'm doing something wrong or it doesn't work as it's supposed to:

http://img90.imageshack.us/img90/4218/changerange1tx.th.jpg (http://img90.imageshack.us/my.php?image=changerange1tx.jpg)

As you can see on the render, the grey area still gets displaced :(

comanche
04-11-2006, 09:09 AM
It's a problem with the edge. The flat area isn't displaced (use a smaller render region to check). If you scale down the uv's or textur projection a tiny bit, the edge problem should disapear.

Ultimatebadass
04-11-2006, 09:41 AM
That did it :) Thanks comanche!

CGTalk Moderation
04-11-2006, 09:41 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.