From the discussion Is Within Box Get Color, would it be possible to retrieve shaders from objects ?

As I write I see no real utility to retrieve the shader of a single object but perhaps there is though. That discussion was about retrieving multiple shaders from child objects to create a list of shaders.

Component: 

Tags: 

Comments

We're planning to do this as

jstrecker's picture
Submitted by
Feature status:
Waiting for review by Team Vuo
»
Merged

We're planning to do this as part of another feature request, Get Mesh / Object Vertices. You'd be able to retrieve the shader from one 3D object and apply it to another 3D object.

For the discussion Is Within Box Get Color, I think the solution that you suggested, @Bodysoulspirit, would actually be more efficient. Rather than building a list of 3D objects and then extracting their colors to send as DMX, @Xavierdev can build a list of colors and use that list both for creating the 3D objects and for sending as DMX.

We're planning to do this as

Bodysoulspirit's picture
Submitted by

We're planning to do this as part of another feature request, Get Mesh / Object Vertices.

How could merging the 2 affect the performance versus 2 different nodes ?

I mean I usually use Karl's node to retrieve even moving meshes, like noise distorted. Having a shader retrieval port could lower the performance for detailed objects with many vertices would it not ?

Same for large amount of sub-child shaders ...

We're planning to provide

jstrecker's picture
Submitted by

We're planning to provide both a Get 3D Mesh Object Info that outputs the shader (among other things) and a Get Mesh Info node that outputs the full mesh data (vertices, etc.). Get Mesh Info would take more time to execute, since it would have to download the vertices and stuff from the GPU and process them. But you wouldn't need to do that if you were just grabbing the shader. You would use Get 3D Mesh Object Info.

For the discussion Is Within

Xavier dev's picture
Submitted by

For the discussion Is Within Box Get Color, I think the solution that you suggested, @Bodysoulspirit, would actually be more efficient. Rather than building a list of 3D objects and then extracting their colors to send as DMX, @Xavier dev can build a list of colors and use that list both for creating the 3D objects and for sending as DMX.>

Yes, actually, I followed your recommendations and work on this color list as the attached file. It's better that way.

Feature status

When we (Team Vuo) plan each release, we try to implement as many of the community's top-voted feature requests as we have time for. Vote your favorite features to the top! (How do Vuo feature requests work?)

  • Submitted to vuo.org
  • Merged