Jump to content

Simple move-to-center python scripts change packed geometry shape...


biller

Recommended Posts

Hi guys, I'm following this tutorial

https://www.pluralsight.com/courses/houdini-python-procedural-cities

There is a step that uses python to log city-block's original position and put them to the center of the world.

However, after the pack and python node, some of the city blocks turn into concave from convex shapes.

One of its points will go to (0,0,0), it doesn't happen in the tutorial...

p1.thumb.JPG.dedb2a28109b285ee9a4e6952d706eba.JPG

When I pack those blocks, the primitive 17 is a big nice-looking surface.

 

p2.thumb.JPG.d553d6323009d09520091175235974fb.JPG

But after the "move to center" script and blast, it becomes this ugly stuff..

 

Are there any clues about the geometry change?

HP_CityV3_problem.hipnc

 

Also the city block's geo file

city_plan.bgeo.sc

 

Edited by biller
Link to comment
Share on other sites

7 minutes ago, bunker said:

seems like a display issue, try creating a new sceneView or use unpack SOP after the blast node.

Thanks for the quick reply.

Creating a new SceneView solves the problem.

The symptom re-occurs, but switching back and forth between new and original SceneView can handle it.

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...