tuning opengl to preview shader

   2665   0   0
User Avatar
Member
122 posts
Joined: 5月 2006
Offline
i created vop network, so it's just a simple shader and the color surface is controled by the distance between 2 spheres , so i'm using IF, COMPARE and DISTANCE nodes to track them, but i'm having problem to set the openGl part of a shader (in sop network), coz i can't bind the diffulse color (in the openGL tab) to any parameter so i can see in 3d viewer the color is updating while i'm changing the distance of the spheres.
as in the attached hip file, when moving closer to eachother within a certain distance, the shader change to blue, if move away it will be red.
i only can preview the changes in shop viewer or have to render first.
anyone can help?

anyway is it possible to set opengl preview to represent the shader automatically?

just a request : in vop, when connecting 2 nodes with different type of data , it will be nice if houdini can automatically insert a convert node.


thanx

Attachments:
ogl.rar (15.6 KB)

  • Quick Links