Random instances transformation

Forums: Random instances transformation
Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Re: Random instances transformation

Postby roy_orengo » Tue Apr 14, 2020 8:33 am

roy_orengo Tue Apr 14, 2020 8:33 am
Hi Paul,

the material I'm using has as Projection an OSL. If I use it on block instances, it works great. But if I explode the blocks, I lose the differents ID (this I didn't understand very good). Now I would like to replicate the result of the instances on different objects (not instances). Beppe Gullotta suggests me to using the Geometry TAB to set these different ID, but he is not a Rhino expert so he suggests me to try. I've tried giving different render layer numbers and differents baking group numbers to each object but nothing happens.
Do you have some idea of how give these differents ID? What are Instances ID and in what they are different from the single Object ID in Rhino?

Thanks again,

Roy
Attachments
Material Octane.PNG
Correct projection using blocks.png
Wrong projection exploding blocks.png
roy_orengo
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Tue Nov 06, 2018 9:06 am

Re: Random instances transformation

Postby face_off » Tue Apr 14, 2020 8:39 am

face_off Tue Apr 14, 2020 8:39 am
There is no way to send an ID for individual mesh objects (in any Octane plugin). For individual mesh objects you need to use the approach I suggested midway through this thread - a world space texture with cube (or some other) projection mapping.

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

Re: Random instances transformation

Postby roy_orengo » Tue Apr 14, 2020 10:45 am

roy_orengo Tue Apr 14, 2020 10:45 am
Hi Paul,

I'm using procedural textures so there is no difference between Local or World space. But why in Cinema 4D is possible to use this OSL?

Roy
Attachments
CInema 4D Random objects.PNG
roy_orengo
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Tue Nov 06, 2018 9:06 am

Re: Random instances transformation

Postby face_off » Tue Apr 14, 2020 12:24 pm

face_off Tue Apr 14, 2020 12:24 pm
roy_orengo wrote:Hi Paul,

I'm using procedural textures so there is no difference between Local or World space. But why in Cinema 4D is possible to use this OSL?

Roy
I'm not sure Roy - sorry. I don't use C4D or the Octane plugin for it.

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

Re: Random instances transformation

Postby face_off » Fri Apr 17, 2020 6:50 am

face_off Fri Apr 17, 2020 6:50 am
Roy - I have just posted a new release which may assist you with your goal.

2020.1.0.120
- Mesh items which have Live Geometry ON, but are NOT Block Instances or Block Definitions will now have A_USER_INSTANCE_IDS set to a non -1 value, so the Instance Range texture can now be used on these items

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

Re: Random instances transformation

Postby roy_orengo » Thu Apr 23, 2020 9:17 am

roy_orengo Thu Apr 23, 2020 9:17 am
You're the best! It works perfectly, Paul, thanks a lot.

Roy

P.s. Do you think it could be possible, maybe with a little script, to set the "Live Update" option from Grasshopper?
roy_orengo
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Tue Nov 06, 2018 9:06 am

Re: Random instances transformation

Postby roy_orengo » Thu Apr 23, 2020 9:42 am

roy_orengo Thu Apr 23, 2020 9:42 am
Hi Paul,
It seems that the repetitions are visible. And I can't apply random textures colour node. Why if now they have their ID?
Thanks again,
Roy
Attachments
visible repetitions.png
roy_orengo
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Tue Nov 06, 2018 9:06 am

Re: Random instances transformation

Postby face_off » Fri Apr 24, 2020 1:22 am

face_off Fri Apr 24, 2020 1:22 am
roy_orengo wrote:Hi Paul,
It seems that the repetitions are visible. And I can't apply random textures colour node. Why if now they have their ID?
Thanks again,
Roy
Hi Roy. Yes there are repetitions - try changing the Maximum ID of the Instance Range node to compensate. I think the Random Color Texture only works with Scatter nodes, so won't work in this case. The Instance Range node should work though.

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

Re: Random instances transformation

Postby roy_orengo » Sat Apr 25, 2020 10:11 am

roy_orengo Sat Apr 25, 2020 10:11 am
Hi Paul,
I've increased the max id but the result is worse. And why if I use one block and instances all work well? It's so hard to have the same situation without blocks?
Thanks,
Roy
Attachments
max id.png
roy_orengo
Licensed Customer
Licensed Customer
 
Posts: 65
Joined: Tue Nov 06, 2018 9:06 am

Re: Random instances transformation

Postby face_off » Sun Apr 26, 2020 10:40 am

face_off Sun Apr 26, 2020 10:40 am
Sorry Roy - but this is getting outside my field of expertise. You will need to experiment for yourself, or ask in the general Octane forum.

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

Return to Rhinoceros 3D


Who is online

Users browsing this forum: No registered users and 6 guests

Wed Apr 24, 2024 12:19 pm [ UTC ]