How to add OpenGL preview to custom shaders?

   4668   1   0
User Avatar
Member
41 posts
Joined: Feb. 2006
Offline
Hi all,

I am just making some simple lighting model shaders.

I have found a way to add OGL preview by adding OGL parameters to the Material Shader Builder through the edit parameter interface, and making references to the relevant properties inside VEX Builder.

This doesn't seem very intuitive, and I wanted to know if there is a better workflow.
User Avatar
Member
183 posts
Joined: Nov. 2008
Offline
There is a file - $HFS/houdini/scripts/shop/shop_oglsurface.py
He's responsible for adding OGL parms automatically. You should copy it to your home scripts dir, and modify it, so the scripts knows, what parms to add and link on your surface shader.
Aleksei Rusev
Sr. Graphics Tools Engineer @ Nvidia
  • Quick Links