Access to vector attributes

Forums: Access to vector attributes
Hydra Solaris

Access to vector attributes

Postby michaelskripin » Wed May 01, 2024 11:25 pm

michaelskripin Wed May 01, 2024 11:25 pm
Hello again.

I want to get attributes from SOP to use them for material customization.

I can attach float attributes through the "Float_Vertex_Attribute" node with no problem.
But I have no way to see any vector attributes (except the built-in color attribute) with "Vector_Vertex_Attribute".

What is the correct way to output/get vector attributes?
michaelskripin
Licensed Customer
Licensed Customer
 
Posts: 11
Joined: Mon Jul 20, 2020 4:58 pm

Re: Access to vector attributes

Postby BK » Fri May 03, 2024 4:51 am

BK Fri May 03, 2024 4:51 am
michaelskripin wrote:Hello again.

I want to get attributes from SOP to use them for material customization.

I can attach float attributes through the "Float_Vertex_Attribute" node with no problem.
But I have no way to see any vector attributes (except the built-in color attribute) with "Vector_Vertex_Attribute".

What is the correct way to output/get vector attributes?


Hi Michael,

Thanks for the post again. We have made all two named vertex color arrays and four named float arrays dynamic so Houdini can read the vertex arrays.
Btw, have you also checked the name change in LOP workflow?

https://www.sidefx.com/docs/houdini/sol ... mport.html


cheers
Kind Regards

bk3d
BK
OctaneRender Team
OctaneRender Team
 
Posts: 1334
Joined: Mon Oct 31, 2016 7:54 pm

Re: Access to vector attributes

Postby michaelskripin » Fri May 03, 2024 10:33 am

michaelskripin Fri May 03, 2024 10:33 am
Hi. I checked the attribute mapping in Arnold and Karma - everything works fine.

Let me show you a simple example of how I work with Octane.

In "sop create" I create a simple "grid". I create float and vector attributes for it.
Screenshot 2024-05-03 at 14.13.37.png

Screenshot 2024-05-03 at 14.13.47.png


When I connect "float_vertex_attribute" to "baseColor", I can see in the viewer that the attributes are displayed in the material.
Screenshot 2024-05-03 at 14.15.34.png


When I connect "color_vertex_attribute" to "baseColor", nothing happens.
Screenshot 2024-05-03 at 14.15.50.png


Where am I making a mistake?
I attach a hip file just in case.
Attachments
vector_attr_mix.hiplc.zip
(118.29 KiB) Downloaded 9 times
michaelskripin
Licensed Customer
Licensed Customer
 
Posts: 11
Joined: Mon Jul 20, 2020 4:58 pm

Re: Access to vector attributes

Postby michaelskripin » Fri May 03, 2024 6:43 pm

michaelskripin Fri May 03, 2024 6:43 pm
This is interesting. Same scene, but I added a "scatter" node after the grid.
Float attribute, which was displayed on the surface of the grid when rendering,
is no longer displayed on the points. What is the trick?


Screenshot 2024-05-03 at 22.36.29.png

Screenshot 2024-05-03 at 22.36.46.png
michaelskripin
Licensed Customer
Licensed Customer
 
Posts: 11
Joined: Mon Jul 20, 2020 4:58 pm

Re: Access to vector attributes

Postby BK » Tue May 07, 2024 4:56 am

BK Tue May 07, 2024 4:56 am
michaelskripin wrote:Hi. I checked the attribute mapping in Arnold and Karma - everything works fine.

Let me show you a simple example of how I work with Octane.

In "sop create" I create a simple "grid". I create float and vector attributes for it.
Screenshot 2024-05-03 at 14.13.37.png

Screenshot 2024-05-03 at 14.13.47.png


When I connect "float_vertex_attribute" to "baseColor", I can see in the viewer that the attributes are displayed in the material.
Screenshot 2024-05-03 at 14.15.34.png


When I connect "color_vertex_attribute" to "baseColor", nothing happens.
Screenshot 2024-05-03 at 14.15.50.png


Where am I making a mistake?
I attach a hip file just in case.


Hi Michael,

Thank you for reporting this issue.
We have fixed this for the next release.

Regarding the scatter issue, could you try using Texture instance color node and assign the *alpha4k_map.ppm* from the plugin's *tex* folder?

cheers
Kind Regards

bk3d
BK
OctaneRender Team
OctaneRender Team
 
Posts: 1334
Joined: Mon Oct 31, 2016 7:54 pm

Re: Access to vector attributes

Postby michaelskripin » Tue May 07, 2024 9:39 am

michaelskripin Tue May 07, 2024 9:39 am
BK wrote:
Regarding the scatter issue, could you try using Texture instance color node and assign the *alpha4k_map.ppm* from the plugin's *tex* folder?

cheers


Hi BK,

I attached the "Texture instance color" with "alpha4k_map.ppm" to the "Base color" of the "Standard surface" node.
I'm not sure what the result should be, but nothing seems to be happening.


Update.
Texture instance color works as expected.


I must have made a mistake somewhere. My bad.

Random color works as expected too.

Attributes didn't work. I rechecked several times.
Attachments
Screenshot 2024-05-07 at 15.01.20.png
michaelskripin
Licensed Customer
Licensed Customer
 
Posts: 11
Joined: Mon Jul 20, 2020 4:58 pm

Return to Hydra Solaris


Who is online

Users browsing this forum: No registered users and 2 guests

Fri May 17, 2024 11:49 pm [ UTC ]