Page 1 of 2
Layer and instances issue
Posted:
Sun Apr 11, 2021 2:39 pm
by davidyannick_1
I'm trying to render instances of car in a layer, so I've create an id attribute for instance colors, I've checked packed geo ... and on the IPR only 1 layer is visible All-1 and the render file (layer 2) is black ???
If I unpack the cars and uncheck of course packed geo I have in IPR my 2 layers ... ???
Are layers not compatible with nodes containing packed geo ?
Re: Layer and instances issue
Posted:
Mon Apr 12, 2021 6:06 pm
by davidyannick_1
nobody has an idea ?
Re: Layer and instances issue
Posted:
Mon Apr 12, 2021 6:26 pm
by juanjgon
I'm not sure if the layerID feature is compatible with the packed geo instancing. I'll take a look at it, but meanwhile probably the only workaround is to use a conventional instancer using the "instance" point attribute pointing to the master objects. If you want to share the scene I could take a look at it here.
Thanks,
-Juanjo
Re: Layer and instances issue
Posted:
Mon Apr 12, 2021 6:28 pm
by davidyannick_1
juanjgon wrote:I'm not sure if the layerID feature is compatible with the packed geo instancing. I'll take a look at it, but meanwhile probably the only workaround is to use a conventional instancer using the "instance" point attribute pointing to the master objects. If you want to share the scene I could take a look at it here.
Thanks,
-Juanjo
My project is quite heavy but here it is thanks for your help, because at this time I can not render properly
https://www.dropbox.com/t/PaPlPZiKqg3lPJDY
Re: Layer and instances issue
Posted:
Mon Apr 12, 2021 6:42 pm
by davidyannick_1
I've tried with a simple scene but shaders is not read, no colors, just the instances
https://www.dropbox.com/t/YlNPoA6WTyZiUBUh
Re: Layer and instances issue
Posted:
Mon Apr 12, 2021 9:35 pm
by juanjgon
At least in this case the problem is that the layer must be set in the master objects, not in the instancer. I mean, you need to set the layer in the sphere and in the toy.
Thanks,
-Juanjo
Re: Layer and instances issue
Posted:
Tue Apr 13, 2021 6:08 am
by davidyannick_1
juanjgon wrote:At least in this case the problem is that the layer must be set in the master objects, not in the instancer. I mean, you need to set the layer in the sphere and in the toy.
Thanks,
-Juanjo
Thanks but my id attribute is not read ...
Re: Layer and instances issue
Posted:
Tue Apr 13, 2021 8:27 am
by juanjgon
Hmm, but this ID can't be set from any attribute. It comes from the "Object Layer ID" parameter only.
Thanks,
-Juanjo
Re: Layer and instances issue
Posted:
Tue Apr 13, 2021 8:46 am
by davidyannick_1
juanjgon wrote:Hmm, but this ID can't be set from any attribute. It comes from the "Object Layer ID" parameter only.
Thanks,
-Juanjo
I create an id attribute to affect colors in shaders, it works fine without the instance method, maybe it will be more clear with this video because my english is not so good :/ :
https://streamable.com/yeaqmi Thanks for your help
Re: Layer and instances issue
Posted:
Wed Apr 14, 2021 5:32 pm
by juanjgon
Sorry, I'm still trying to figure out what could be the problem. Probably something related to the packed geo instancing. As a workaround, have you tried to create a setup using a conventional instancer adding the "instance" point attribute pointing to the master object?
Thanks,
-Juanjo