Variation texture @ component level

Forums: Variation texture @ component level
Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Variation texture @ component level

Postby Dingbat » Mon Oct 12, 2020 5:38 pm

Dingbat Mon Oct 12, 2020 5:38 pm
in MODO the variation texture can be set up so that individual meshes in the same item can be varied - so e.g. if i have a tree with leaves, i can vary the colour of each leaf.

is there an equivalent Octane node or does the existing Octane variation node support multiple meshes in the same way?

AFAICT the Octane node only supports variation if the meshes are in separate items - is that the case?
Last edited by Dingbat on Fri Oct 23, 2020 4:10 pm, edited 1 time in total.
Dingbat
Licensed Customer
Licensed Customer
 
Posts: 161
Joined: Tue Jul 21, 2020 7:49 am

Re: Varition texture @ component level

Postby face_off » Wed Oct 14, 2020 2:57 am

face_off Wed Oct 14, 2020 2:57 am
Hi

For Replicators (and potentially Instances), the plugin will assign an "Id" to each transform, so you should be able to use the Octane textures "Instance Color" and "Instance Range" to vary the texture of each instance/replication. You need to set the . I don't think these nodes will work with single Modo Mesh items.

3.07.0.125
- Added Instance Color and Instance Range textures
- Added an instance id to each Scatter transform (ie. each Replicator particle source will have a unqiue instance id). The Instance ID is sourced from the Modo Replicator source IDs. The new Texture node types Instance Range and Instance Color can be used with these id's. Refer to viewtopic.php?f=33&t=62395 for for details.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
User avatar
face_off
Octane Plugin Developer
Octane Plugin Developer
 
Posts: 15475
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Varition texture @ component level

Postby funk » Wed Oct 14, 2020 10:48 am

funk Wed Oct 14, 2020 10:48 am
The Octane core doesnt support anything like this (yet), so you have to use workarounds.

One way could be to use weight maps, and manually/procedurally/script the assignment of different weights per mesh "island". Then use the "greyscale vertex attribute" node as an input to a gradient for your colors.
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Varition texture @ component level

Postby funk » Wed Oct 14, 2020 11:39 am

funk Wed Oct 14, 2020 11:39 am
I have attached an example scene of 1 possible way to assign the random weight map values with meshops. It uses a "falloff operator" which has a confusingly named "Polygon Parts" output, which is actually MESH ISLANDS!

I then used Octanes greyscale vertex attribute node to get the weight map values and input to a gradient for the colors.

funk_random_colors_per_mesh_island.png


EDIT: If this is slow on heavy meshes like trees, you could just FREEZE the meshop, which will apply the weights to the mesh permanently.
Attachments
funk_random_colors_per_mesh_island.zip
(17.67 KiB) Downloaded 144 times
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Varition texture @ component level

Postby funk » Sat Oct 17, 2020 9:10 pm

funk Sat Oct 17, 2020 9:10 pm
Someone posted some questions about this setup on the modo forums:
https://community.foundry.com/discuss/t ... nent-level

Regarding the falloff operator:
Its just a single falloff split into 2 to make the schematic more readable.
In modo, you can add the "Polygon Part" channel by right clicking the falloff operator > add channel > Polygon Part.
You can then right click the Polygon part channel on the node > separate channel
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Varition texture @ component level

Postby funk » Tue Oct 20, 2020 11:15 am

funk Tue Oct 20, 2020 11:15 am
Greg made a video about this on Pixelfondue

Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Varition texture @ component level

Postby Dingbat » Fri Oct 23, 2020 3:38 pm

Dingbat Fri Oct 23, 2020 3:38 pm
fantastic! thanks so much to both of you.

just need to figure out how to save efficiently for repeat use.
Dingbat
Licensed Customer
Licensed Customer
 
Posts: 161
Joined: Tue Jul 21, 2020 7:49 am

Re: Varition texture @ component level

Postby Dingbat » Fri Oct 23, 2020 4:01 pm

Dingbat Fri Oct 23, 2020 4:01 pm
icing on the cake would be a way to output the weight map as a render pass. is this possible?
Dingbat
Licensed Customer
Licensed Customer
 
Posts: 161
Joined: Tue Jul 21, 2020 7:49 am

Re: Variation texture @ component level

Postby funk » Sat Oct 24, 2020 2:16 am

funk Sat Oct 24, 2020 2:16 am
You could do a separate render, plugging the greyscale vertex attribute node into the diffuse channel of a material, then enable render passes > info passes > material diffuse filter.
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Variation texture @ component level

Postby Dingbat » Mon Oct 26, 2020 10:36 am

Dingbat Mon Oct 26, 2020 10:36 am
thanks - did something similar and it seems to work really well.

it also works on multiple items using the same name for the weight map so only needs one additional render with all the items plugged into the variation set up. easy enough to just unplug them when done.
Dingbat
Licensed Customer
Licensed Customer
 
Posts: 161
Joined: Tue Jul 21, 2020 7:49 am
Next

Return to Foundry Modo


Who is online

Users browsing this forum: No registered users and 17 guests

Fri Apr 19, 2024 7:51 pm [ UTC ]