VEX language description

   3043   2   0
User Avatar
Member
5 posts
Joined: Oct. 2008
Offline
Haai all!

i was wondering if there exists a full VEX language description,
not the only the http://www.sidefx.com/docs/houdini9.5/vex/lang [sidefx.com]

i'm looking for a list of the MACRO's -
in particular the equivalent of MINFILTWIDTH from renderman
and the equivalent of filterwidth() (also renderman)
':wink:'

if anyone could point me ina direction pls,
it'll b much appreciated!
User Avatar
Member
941 posts
Joined: July 2005
Offline
suz
Haai all!

i was wondering if there exists a full VEX language description,
not the only the http://www.sidefx.com/docs/houdini9.5/vex/lang [sidefx.com]

i'm looking for a list of the MACRO's -
in particular the equivalent of MINFILTWIDTH from renderman
and the equivalent of filterwidth() (also renderman)
':wink:'

if anyone could point me ina direction pls,
it'll b much appreciated!

These macros are not part of either language (VEX or RSL). They are all user-defined. The ones you mention sound like the stuff from Larry Gritz's filterwidth.h header (from waaaaay back during the Blue Moon days, I think) which have become sort-of standard-ish in the PRMan camp.

Similar macros (similarly named) can be found for VEX in the bundled header $HH/vex/include/voplib.h, which defines VOP_MIN_FILTER_SIZE and the wrappers FILTERSIZE and AREA. Another place where you can find vex versions of those Gritz macros is in the odWiki's “Writing Shaders” section [odforce.net].

Alternatively, you can write your own and improve on all of the above

A (probably incomplete) list of symbolic constants that are part of the VEX language:
__vex is set to 1
__vex_major is set to the major number of the Houdini release
__vex_minor is set to the minor number of the Houdini release

And inside the Vex Builder environment:
VOP_OP is defined for Sop, Cop, Chop, and Pop networks
VOP_SHADING is defined for all shading vop nets
VOP_DISPLACE is defined for the displacement context
VOP_FOG is defined for the volume/fog context
VOP_LIGHT is defined for the light context
VOP_PHOTON is defined for the (now deprecated) photon context
VOP_SHADOW is defined for the shadow context
VOP_SURFACE is defined for the surface context

… and I'm probably missing quite a few
Mario Marengo
Senior Developer at Folks VFX [folksvfx.com] in Toronto, Canada.
User Avatar
Member
5 posts
Joined: Oct. 2008
Offline
i am glad someone knows whats going on!
''
the resources are invaluble
thank-you mario!
  • Quick Links