Jump to content

Problem with hcustom


Recommended Posts

I start HDK with hucstom.

I read HDK: Getting Started. ( http://www.sidefx.com/docs/hdk14.0/_h_d_k__intro__getting_started.html )

 

 

I compile geoisosurface.C in Window 8.1

 

#include <GU/GU_Detail.h>
#include <stddef.h>
 
namespace HDK_Sample {
 
static float
densityFunction(const UT_Vector3 &P, void *data)
{
    // Return the signed distance to the unit sphere
    return 1 - P.length();
}
 
}
 
int
main(int argc, char *argv[])
{
    GU_Detail gdp;
    UT_BoundingBox bounds;
 
    // Evaluate the iso-surface inside this bounding box
    bounds.setBounds(-1, -1, -1, 1, 1, 1);
 
    // Create an iso-surface
    gdp.polyIsoSurface(HDK_Sample::densityFunction, NULL, bounds, 20, 20, 20);
 
    // Save to sphere.bgeo
    gdp.save("sphere.bgeo", NULL);
 
    return 0;
}
 
 
But,,, sphere.bgeo didn't appear..
post-14129-0-81167300-1437370402_thumb.j
post-14129-0-85545600-1437370403_thumb.j
 
 
On the other hand, I compile geoisosurface.C in Ubutu 15.04 . sphere. bgeo appears.
 
I check Windows Environment Variables, System Variables.. I don't know why ... Please help me..
 

    

Link to comment
Share on other sites

Thank you for your answer, Tom

I change the path.

 

gdp.save("C:\\Users\\Hyunjun\\Desktop\\sphere.bgeo", NULL);

 

But, the sphere.bgeo didn't appear... I really don't know.. Can I re-install Houdini, Visual Studio 2012?? 

Edited by faxingberlin
Link to comment
Share on other sites

Actually that's my bad, you don't have write permission to write in the bin folder, but if you kept the absolute path it would work, it worked for me.  

 

To keep the relative path, you would have to move all the dll's out.  You shouldn't have to though, according to the Docs it should find the DLLs, but it didn't work for me either.  Its sounds like an issue with environment variables on windows 8.1, as I'm using it as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...