Page 2 of 2

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Wed May 25, 2022 7:52 am
by juanjgon
chocbot wrote:Hi Juanjo,

is there also a workaround available for using point attributes from the packed geo itself? For example I have a color attribute on a tree's leaves and that tree is instanced then. With that texture workaround it's only possible to get the color attribute per instance but not per point attribute of that instance, right?

Cheers

Are you talking about nested instancing? Can you please share an example scene (as simple as possible) with this workflow?

Thanks,
-Juanjo

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Wed May 25, 2022 9:04 am
by chocbot
Hey,

thanks for your response! No, I'm not talking about nested instancing (though.. is this a planned feature? :)

Here's my demo scene:
https://1drv.ms/u/s!AiO-yRNxbYloggPeZ28J4ano0D-M?e=cxfrSt

The most basic thing would be: I have a tree with a Cd-attribute
treeInstance.PNG

and then I instance it.
treesInstanced.PNG

Can I get that color attribute to render?


My case would be then to have a random color per instance, which is working right now through that instanceTexture-workaround but also to use the instance's point colors. If I do the same without packing, I can for example call the point color Cd2 and the one per copy Cd and use both in my shader. This is what I would want but with packing.

Cheers

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Wed May 25, 2022 9:24 pm
by juanjgon
Hmm, nope, I think that something like that is not possible right now. We only support one "Cd" attribute in the instances. The plugin supports nested instancing, you can instance an instancer, but I'm not sure if this is going to help with the double Cd attribute.

Thanks,
-Juanjo

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Mon May 30, 2022 7:25 am
by chocbot
Alright, thanks for the info!

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Fri Apr 19, 2024 10:03 am
by yazi10412727
Hello where to download this ppm file
The ppm file is missing in your package, but only the project. I would appreciate it if you could send me a copy. :D :D :D :D :D

Re: The rgb4k_map.ppm and alpha4k_map.ppm

PostPosted: Tue Apr 23, 2024 7:42 am
by ricky_otoy
yazi10412727 wrote:Hello where to download this ppm file
The ppm file is missing in your package, but only the project. I would appreciate it if you could send me a copy. :D :D :D :D :D


The ppm file is in the "tex" folder of the plugin. In the newer builds you don't need to use it, you can setup the Texture Instance Color nodes and link it to the Object Properties of Custom Attribute.

Assign_Custom_Attributes.jpg

Material_TextureInstanceColor.jpg