Jump to content

Getting rotations from a copy stamp


Recommended Posts

Hello.

 

I have me a little isue. I have a copy stamp that is dumping a bunch of trees all over the place. They have their random rotations and scales stamped in as one would expect. But the ground is moving. This means that the tree will follow the normals of the moving ground. I how ever need to get that rotation of each copy, in degrees and push that out into an attribute.

Cheers

 

Link to comment
Share on other sites

Don't use copy stamping for transformations, it's only going to slow down your network. Template point attributes are enough for any transformation.

What exactly do you need to push out this attribute for? If you use Attribute Interpolate to interpolate your N and up vectors on the ground geometry as they move over time, you should be able to stick the trees to the moving ground without an issue.

See attached.

instancing_on_moving_object_toadstorm.hip

Link to comment
Share on other sites

Hello.

I will have a look at the scene in a bit. Just walked it.

Well we need the final orientation of the trees as an attribute for export to Maya. Since the trees are very high rez, also there are thousands of them, we want to render useing a proxy. So we build the animation in Houdini. Export simple geo. Plant proxies on that geo in Maya (pun intended.). Render. Just the orientation seems to be a tough nut to crack.

Cheers

Edited by revelationsr
Link to comment
Share on other sites

http://www.sidefx.com/docs/houdini/copy/instanceattrs.html

Look at these help documents. You can use this same point cloud to visualize with copy to points, or instances at object to visualize the effects.

If you system needs euler values to define rotation, you can set them as euler with a random seed and then use a euler to quat vop or equivalent to set the houdini quaternion option of rot or orient. If you are using rot as the attribute make sure you set your up and N attributes.

http://www.sidefx.com/docs/houdini/nodes/vop/eulertoquat.html

 

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