Item masks and Instances

Forums: Item masks and Instances
Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Item masks and Instances

Postby Longbongosolo » Thu Feb 03, 2022 4:29 am

Longbongosolo Thu Feb 03, 2022 4:29 am
I'm trying to use a texturing method that I've used previously with Modo and V-Ray but it's crashing Octane.

I have a parent mesh item with a material and then instances of that mesh item. In the material group I use item masked sub-groups to give different textures to the parent mesh item and the instances. Can this work in Octane? Or is there a different approach I might try?

In the attached image you can see that the "1", "2" and "3" are texture maps targeting specific items. If I launch Octane with this setup, Modo just crashes.
Attachments
item_masks.jpg
Longbongosolo
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Tue Mar 09, 2021 10:14 pm
Location: Australia

Re: Item masks and Instances

Postby Hesekiel2517 » Thu Feb 03, 2022 10:11 am

Hesekiel2517 Thu Feb 03, 2022 10:11 am
I think there is a different approach in octane: All the instances have a particle id. In the material you can access these particle id with a particle id texture (i hope thats the right name) and use this to mask your textures.
Hesekiel2517
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Mon Nov 23, 2015 10:57 pm

Re: Item masks and Instances

Postby funk » Thu Feb 03, 2022 12:33 pm

funk Thu Feb 03, 2022 12:33 pm
While this shader tree setup won't work in Octane, it shouldn't be crashing. Can you share a scene where you're seeing a crash? It's not crashing here.

Octane requires a different approach, which is a bit more complicated. I have attached a sample scene.

You need to give each instance a unique value in Modo Item > Channels > Particle ID. My example has the parent mesh set to 0.0, cube (2) = 1.0, cube (3) = 2.0

You can then use an "Octane Instance Range" node as a mask, plugged into a gradient, which you feed your textures into.

instance_maks_example.PNG
Attachments
funk_instance_masking_example.zip
(16.83 KiB) Downloaded 86 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: Item masks and Instances

Postby Longbongosolo » Thu Feb 03, 2022 8:54 pm

Longbongosolo Thu Feb 03, 2022 8:54 pm
Thanks Hesekiel2517 and funk, I suspected I should be using the ID approach but didn't really know how to do it so thanks for the explanation and scene.

I wasn't confident that the item mask approach was possible but thought I'd give it a go just in case. I guess there's gonna be a lot of ex-vray people getting used to working in Octane ;)

I've attached my test scene if you wanna see if it crashes.

Thanks,
Will
Attachments
Item Masks Testing.zip
(69.6 KiB) Downloaded 82 times
Longbongosolo
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Tue Mar 09, 2021 10:14 pm
Location: Australia

Re: Item masks and Instances

Postby face_off » Fri Feb 04, 2022 1:23 am

face_off Fri Feb 04, 2022 1:23 am
Longbongosolo wrote:Thanks Hesekiel2517 and funk, I suspected I should be using the ID approach but didn't really know how to do it so thanks for the explanation and scene.

I wasn't confident that the item mask approach was possible but thought I'd give it a go just in case. I guess there's gonna be a lot of ex-vray people getting used to working in Octane ;)

I've attached my test scene if you wanna see if it crashes.

Thanks,
Will
Hi. That scene is not crashing for me. What version of Modo and the plugin do you have installed please? Have you tried deleting your MODO*.CFG file?

Thanks

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: 15483
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Item masks and Instances

Postby Longbongosolo » Fri Feb 04, 2022 3:53 am

Longbongosolo Fri Feb 04, 2022 3:53 am
Hi Paul, I am using Modo 15.2.2, Win 10. Octane version was 2021.1.1.180. Tried deleting the config and it still crashed. I updated to 21021.1.1.181 and it also still crashed. I also asked a colleague to try it and it crashed for him too.
Longbongosolo
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Tue Mar 09, 2021 10:14 pm
Location: Australia

Re: Item masks and Instances

Postby face_off » Fri Feb 04, 2022 4:26 am

face_off Fri Feb 04, 2022 4:26 am
Longbongosolo wrote:Hi Paul, I am using Modo 15.2.2, Win 10. Octane version was 2021.1.1.180. Tried deleting the config and it still crashed. I updated to 21021.1.1.181 and it also still crashed. I also asked a colleague to try it and it crashed for him too.
There was no 2021.1.1.180 release. Are you able to check for the correct release number please?

Thanks

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: 15483
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Item masks and Instances

Postby Longbongosolo » Fri Feb 04, 2022 4:40 am

Longbongosolo Fri Feb 04, 2022 4:40 am
Sorry Paul, it was 2021.1.0.180
Longbongosolo
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Tue Mar 09, 2021 10:14 pm
Location: Australia

Re: Item masks and Instances

Postby face_off » Fri Feb 04, 2022 5:21 am

face_off Fri Feb 04, 2022 5:21 am
Thanks - it would be worth trying the latest release, as it is not crashing for me.

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: 15483
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

Re: Item masks and Instances

Postby funk » Fri Feb 04, 2022 10:27 am

funk Fri Feb 04, 2022 10:27 am
Im using 2021.1.1.181 + modo 15.2v2 and Longbongosolo's scene crashes here too

EDIT: also crashes in 14.2v2 + 2021.1.0.180

EDIT 2: The scene is crashing due to the "Label" items. These are text polygons and the plugin crashes trying to render them.
The workaround is to freeze text polygons, or add a freeze meshop.
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
Next

Return to Foundry Modo


Who is online

Users browsing this forum: No registered users and 48 guests

Sat Apr 27, 2024 8:59 pm [ UTC ]