how I can use cartoon material with textured object ?
when i using cartoon mat. and try to gettextureimage it says “The preset could not be applied to this selection” …
I tryin to mix it in ‘render tree’, but it not work correctly…
how I can use cartoon material with textured object ?
when i using cartoon mat. and try to gettextureimage it says “The preset could not be applied to this selection” …
I tryin to mix it in ‘render tree’, but it not work correctly…
H-E-E-E-E-E-E-E-LP us!!!
Use Mix_2colors in Render Tree!!! ;-))))
I need real cartoon! with ink on texture!
/vic/
Texture map must be paint with ink lines.
already, I used this method many time ago ! ![]()
but I still search a right way.
/vic/
OK, here’s the magic formula to apply within the rendertree:
Select object and get a flat light shader (Rendertree > nodes > illumination > flat light). This is the same as the toon shader, but without the ink parameters.
connect a texture (bitmap or procedural) to the diffuse and ambient components of the “flat light” shader.
Nodes > mixers > mix2colors. Connect the output to the surface, shadow, and photon inputs of the material shader. Connect the output of ‘flat light’ to the ‘color1’ input of the mixer.
Nodes > illumination > more… Navigate to the “soft3d” folder and select the “toon_material” shader. This is required for ink lines to appear on your object.
Connect output of toon_material to ‘base_color’ of the mixer node.
Open a PPG for the mixer node. Adjust the ‘weight’ towards the color1 value (blast RGB to 1.0). This forces the object’s surface to display only the color and texture coming from the ‘flat light’ branch of the tree while accepting only the toon_material’s ink parameters for the inking (via the lens shader)
MCP > Explore > Current Pass > [Camera_name]. From the 2nd ‘camera’ tab (assuming you didn’t rename the camera) click the “lens shaders” tab. Press the “add” button then navigate to the “lens shaders” folder and select the “cartoon” shader. This is the shader that actually applies the ink to your scene. Default settings will be fine for now but you can adjust them if you need.
draw a render region and tweak the effect.
quick schematic of what your rendertree should look like:
toon\_material--
-->mix2color--->material
pic–>image–>flatlight–/
Hope this helps,
speye