houdini HDK development 1-the use of hcustom

Using Houdini HDK is written in C++, so the running speed is significantly higher than that of python and vex, which is suitable for larger development. When I
first started learning, I only learned from official documents , and then I got stuck when I created the first project. , The reason is that hcustom always reports errors when compiling, and then I learned to download vs2017, and finally realized my first effect

1. Open Houdini's own command line tools (Start> All Programs> Side Effects Software> Houdini XYZZZ> Command Line Tools (substitute XYZZZ with your particular version).)
and input the commands in turn, and an HDK will be created in the user file directory And copy the file geoisosurface.C in the houdini directory to the HDK folder

mkdir HDK
cd HDK
copy "C:\Program Files\Side Effects Software\Houdini X.Y.ZZZ\toolkit\samples\standalone\geoisosurface.C" .

Insert picture description here.Insert picture description here

2. Run hcustom to compile the code and generate an exe file

hcustom -s geoisosurface.C

Insert picture description here

3. Run the exe program to generate the sphere.bgeo file

C:\Users\huangPeiXin\HDK\geoisosurface.exe

Show this file afterwards

gplay sphere.bgeo

Insert picture description here

Insert picture description here
Finally, the file is compiled and displayed

Guess you like

Origin blog.csdn.net/peixin_huang/article/details/104043075