how can i load VFL file to houdini??

   9115   3   2
User Avatar
Member
303 posts
Joined: May 2007
Offline
l have some vex file such as:

r^2 = x^2 + y^2

into 3d, we get a sphere function:

r^2 = x^2 + y^2 + y^2

so a simple and silly image3d shader for this would be:



image3d simple_sphere( ){ if( sqrt( P.x*P.x + P.y*P.y + P.z*P.z ) < 1 ) density=1; else density=0;
}


i can open it with notepad but how can i load it into houdini/?

and how can i export the houdini vop as vex or vfl file ?

thank you
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Staff
2540 posts
Joined: July 2005
Online
In a shell, use
vcc -l simple_sphere.otl simple_sphere.vfl
or a more complete verson
vcc -l simple_sphere.otl -n “simple_sphere” -N “Simple Sphere” simple_sphere.vfl

then load the otl in to houdini using the man File menu > Load otl file…


I suspect the real issue is how to run vcc from a shell. Here's some options to getting your stuff compiled and in Houdini with shells.

On windows, to access a shell that ships with Houdini, you can go to the Start Menu and in the Houdini menu, choose command line tools.

Another way is to launch Houdini and in the main menu's, find the Shell… option.

A third way is to install cygwin and get a shell environment there. Search this and the OdForce forum for help here. Here's an excellent page on setting cygwin up on a windows box:
http://odforce.net/wiki/index.php/UnixOnWindows [odforce.net]

A fourth way without shells would be to open Houdini, take an existing i3d shader definition and modify it by first copying it with the Operator Type Manager (MMB copy on the entry and choose copy using new operator name and label), place the new operator type in to a SHOP network using the tab-label from above then RMB on the tile and choose Edit Type Properties and in the Code section, inject your new code.


There's something in me that says if you want to get in to writing shaders with code, there's nothing that beats using shells. On windows it pretty much means running cygwin.
As for a text editor, I think I have found a gvim beater in Cream which is an even better wrapper on top of vim IMHO.
http://cream.sourceforge.net/ [cream.sourceforge.net]
There's at least one school like the old school!
User Avatar
Member
303 posts
Joined: May 2007
Offline
thank you jeff!!!!!!!!
https://vimeo.com/user3971456/videos [vimeo.com]
User Avatar
Member
303 posts
Joined: May 2007
Offline
jeff
In a shell, use
vcc -l simple_sphere.otl simple_sphere.vfl
or a more complete verson
vcc -l simple_sphere.otl -n “simple_sphere” -N “Simple Sphere” simple_sphere.vfl

then load the otl in to houdini using the man File menu > Load otl file…


thankyou jeff


am i right like this :
vcc -l st_fire.otl dhoudini_proj/st_fire.vfl

i have tried many vfl files

what wrong in this picture

Attachments:
err.jpg (150.8 KB)

https://vimeo.com/user3971456/videos [vimeo.com]
  • Quick Links