Jump to content

Archived

This topic is now archived and is closed to further replies.

gorilla

Polygon Height To Intensity ?

Recommended Posts

  • Topic Author
  • I would like to change the shader color depending on the polygon height,

    I would like the polygons to be lighter as they go up, and darker as they go down - is this possibe ?

    I attached an example file.

    Thank you

    poly_intensity.c4d

    Share this post


    Link to post
  • Topic Author
  • No solutions :( ?

    Share this post


    Link to post

    There is in the Surface-Spread plugin but there are probably other "height shasers out there. How about a gradient in the color channel?

    Share this post


    Link to post

    Solution is to drop your object in fracture (disconnect polygons first) and simply drop a shader effector with falloff in fracture. Only thing left is to position the falloff so

    once polygons "reach" certain height they enter the effectors influence. For successful gradient use mograph color shader under colorizer :)

    Cheers

    Share this post


    Link to post
  • Topic Author
  • First of all, thank you for these replies.

    Please check my example, the things you both suggested wors with global height, but my example is a "curved" structure. What I want is: as my polygons get "higher" from their "starting point" (not a global height) they become sort of colored (or gets white). I have to be using the extrude to give the desired movement (as you can see in the example) - and I'm looking for a possible solution for this case..

    Share this post


    Link to post

    Re height shader. R13 has a new "Terrain Mask" shader. Here's a quick example.

    3DKiwi

    Share this post


    Link to post
  • Topic Author
  • Thank you for the reply 3dkiwi,

    I guess this is -again- not what I'm asking for. This works like a usual attitude mapping, what I'm asking is height based on the normal at the coordinate (so it will still work when the geometry is bent)

    Share this post


    Link to post

    The shader has an option for slope if that's what you mean.

    3DKiwi

    Share this post


    Link to post
  • Topic Author
  • Hm no, not slope.

    Let say we've used a bend deformer with your example..

    Since the bending changes the point based attitude, it gives a different output (and shading)

    What I'm looking for is some sort of height mapping which is not based on attitude but based on normals of the geometry, so that it works in every condition.

    Again, talking through my example: the base geometry should be black but when pieces go "up" they should become white, no matter how bending is used --

    I'm not sure if that's clear :)

    Share this post


    Link to post
  • Topic Author
  • Here is a more clear example and explanation.

    Please check the current state of the object shading, as parts go up, it they become white, with the help of a simple gradient.

    When "bend" is turned on, the effect is lost, since it is not based on "normals".

    I would like to achieve a similar effect, do not have to use gradients of any sort, only trying to get a similar effect to work on different surfaces instead of only plain surfaces or primitives.

    poly_intensity_2.c4d

    Share this post


    Link to post
    Guest
    This topic is now closed to further replies.

    • Recently Browsing   0 members

      No registered users viewing this page.

    Latest Topics

    Latest Comments

    ×
    ×
    • Create New...