Jump to content

Translation per primitive object?


Recommended Posts

Hey gang,

So I recently started diving into the HDK and been reading through the examples and searching around this forum and try to piece together what i'm trying to achieved.

The main question is, how can I apply a transform to a primitive object, say a box, being translated in XYZ, should be simple enough.

Right now I've tried something like.

FOR_ALL_PRIMITIVES(gdp, prim)
			{
		xform.translate(0.7, 2.1, 5.1);
		prim->transform(xform);
			}

And various other variations, but none seem to be working right, I found a few examples here that would did work on moving the box, but they where moving each point, which isn't what I want to do, unless I didn't understand things right.

The thread in question I was reading is this

Any sort of help would be great, and I have read the doxygen site and not sure if GEO_Primitive is the right thing I'm looking for. Or I might just be looking at things completely wrong :lol:

Thanks!

Rick

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