Sorry, if this question is simple or over asked. ops: This is new to me.
I have a piece of geometry being instanced to a large field of points/particles. I wish to pass the color information of each individual point to the shader for the geometry.
Like many others, I have been working through the gnomon 101 DVD. After playing with and expanding to the ‘image to points to geometry’ lesson, the memory limitations of the copy SOP became an issue. If anyone can help - thanks! Have been wrestling with this for days.
pass point color to the instanced geometry's shader
8555 6 0- moem
- Member
- 2 posts
- Joined:
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
I've attached a contrived example.
Good info on this can be found here:
http://www.odforce.net/wiki/index.php/MantraInstancing#Point_Instancing [odforce.net]
Another good, more complicated, and more commented example on something similar except with lights can be found in this thread (make sure you read to the end before downloading):
http://odforce.net/forum/index.php?showtopic=3969&st=0 [odforce.net]
Good info on this can be found here:
http://www.odforce.net/wiki/index.php/MantraInstancing#Point_Instancing [odforce.net]
Another good, more complicated, and more commented example on something similar except with lights can be found in this thread (make sure you read to the end before downloading):
http://odforce.net/forum/index.php?showtopic=3969&st=0 [odforce.net]
- moem
- Member
- 2 posts
- Joined:
- Offline
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
hey Edward… many thanks for this.. i was also looking how to manipulate instanciated geometry's shaders.. but now I've got a question….
I guess the attribute called “vm_surface” is a sort of keyword.. since when i changed it .. no color was changed.. now… my question is.. where can I find help about this concept and the relative variables/attributes which can be overrided by instance and attributes?… for example.. i was trying to modify the teapot radius using the same way (opdef, which i also cant find any help page on it) and it isnt working… now… since “vm_surface” is neded to work for shader (i guess) .. where can I find the help on how I can also set others attribues to instances? (like in my case.. i wish to change come SOP parameters)..
cheers and thanks in advance.
I guess the attribute called “vm_surface” is a sort of keyword.. since when i changed it .. no color was changed.. now… my question is.. where can I find help about this concept and the relative variables/attributes which can be overrided by instance and attributes?… for example.. i was trying to modify the teapot radius using the same way (opdef, which i also cant find any help page on it) and it isnt working… now… since “vm_surface” is neded to work for shader (i guess) .. where can I find the help on how I can also set others attribues to instances? (like in my case.. i wish to change come SOP parameters)..
cheers and thanks in advance.
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
The vm_surface attribute is used by mantra to determine which shaders to use for each primitive. It is generated by the Shader SOP. That's what the other Shader SOP in that file is used for. An easy way to determine (say via the geometry details view aka spreadsheet) what the shader string should be.
- Bernard
- Member
- 523 posts
- Joined: July 2005
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
-
- Quick Links