color tied to displacement depth?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
rodney71
Licensed Customer
Posts: 43
Joined: Tue Mar 02, 2010 7:08 pm
Location: Canby, OR

is it possible to use a gradient to drive color based on things like:
1. displacement depth
2. distance from a locator

this is something I'm used to doing in Modo but have no idea if that's possible in Octane or C4D.
Context: I'm modelling a virus model and want to shift the color as it moves down the tendrils away from the center/core.
Rod
Asus P6T Deluxe V2
Intel core i7 920 (2.66 GHz quadcore)
12 gig RAM Kingston HyperX
BFG GTX 285 OCX
CPU cooling - Noctua NH-U12P SE2
OCZ Vertex Turbo 120 GB Sata II SSD
Windows 7 Ultimate 64bit
rodney71
Licensed Customer
Posts: 43
Joined: Tue Mar 02, 2010 7:08 pm
Location: Canby, OR

i haven't used the dirt node yet but unless I'm not understanding it's capabilities correctly I'm guessing it affects color based on changes in surface angles, much like an ambient occlusion shader. this wouldn't have the same flexibility to drive the color along the height of a very long displacement I'm thinking. I'll have to play with that node a bit though.

any other suggestions or features in Octane built for this?
Rod
Asus P6T Deluxe V2
Intel core i7 920 (2.66 GHz quadcore)
12 gig RAM Kingston HyperX
BFG GTX 285 OCX
CPU cooling - Noctua NH-U12P SE2
OCZ Vertex Turbo 120 GB Sata II SSD
Windows 7 Ultimate 64bit
rodney71
Licensed Customer
Posts: 43
Joined: Tue Mar 02, 2010 7:08 pm
Location: Canby, OR

For instance Modo can achieve something like this quite easily and I can think of a lot of instances where displacement depth would be a useful driver for a color gradient. in this instance emissive intensity is also driven by the same gradient
Attachments
themantissa_net_01.jpg
Rod
Asus P6T Deluxe V2
Intel core i7 920 (2.66 GHz quadcore)
12 gig RAM Kingston HyperX
BFG GTX 285 OCX
CPU cooling - Noctua NH-U12P SE2
OCZ Vertex Turbo 120 GB Sata II SSD
Windows 7 Ultimate 64bit
User avatar
bepeg4d
Octane Guru
Posts: 10371
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
have a look at this solution that uses the Displacement texture to drive a Mix texture node in Diffuse, the Gradient helps to fine tune the position and the contrast:
357B6C9E-EAC3-41D6-BDAF-523EF00EA6C3.jpeg
and here is the solution with Dirt texture node to drive the same Mix texture node:
3529F765-1EF5-4310-A614-5F2BF5E4E09E.jpeg
ciao Beppe
rodney71
Licensed Customer
Posts: 43
Joined: Tue Mar 02, 2010 7:08 pm
Location: Canby, OR

that gives me some helpful insight. thanks so much for sharing these setups Beppe. I'll definitely play with this
Rod
Asus P6T Deluxe V2
Intel core i7 920 (2.66 GHz quadcore)
12 gig RAM Kingston HyperX
BFG GTX 285 OCX
CPU cooling - Noctua NH-U12P SE2
OCZ Vertex Turbo 120 GB Sata II SSD
Windows 7 Ultimate 64bit
Post Reply

Return to “Maxon Cinema 4D”