What attribute(s) used to draw Particle Gnomon on screen?

   2697   7   2
User Avatar
Staff
4164 posts
Joined: Sept. 2007
Offline
I was wondering what attributes are being read, to tell the Particle Gnomon to draw correctly? I'd like to just use that data as a small coordinate system, but I'm confused about where Houdini is reading it from… Obviously, Z is in the direction of velocity, but there isn't any orient or up that I can see.

Thanks!

Attachments:
screencast-2015-02-06-183842.gif (290.7 KB)

I'm o.d.d.
User Avatar
Member
133 posts
Joined: July 2005
Offline
That would be the orient attribute.
Francisco Rodriguez
Effects Animator | Walt Disney Animation Studios
User Avatar
Staff
4164 posts
Joined: Sept. 2007
Offline
Do you know if orient is being calculated behind the scenes or something?

It's not an attribute I can see, or an intrinsic I can find…

Attachments:
screenshot-area-2015-02-06-233718.png (33.3 KB)

I'm o.d.d.
User Avatar
Staff
5158 posts
Joined: July 2005
Offline
It's based on orient, and if that's not present, it uses v, up and q (quaterion) to establish a frame of reference. In your case, it's using just using v.
User Avatar
Member
133 posts
Joined: July 2005
Offline
It's based on orient, and if that's not present, it uses v, up and q (quaterion) to establish a frame of reference. In your case, it's using just using v.

1. If up is not user-defined, does it default to (0, 1, 0)?
2. I haven't seen the q attribute. Where does this get generated?

All good info.
Francisco Rodriguez
Effects Animator | Walt Disney Animation Studios
User Avatar
Staff
4164 posts
Joined: Sept. 2007
Offline
In addition to those two questions (thanks Francisco!):

- If Houdini does use 0,1,0 as a default Up under the hood, does that change when Houdini is set to Z-Up? Or is it simply hard wired?
- Is there some preference or variable which allows for writing out these q/up values as attributes? If not, I'll submit an RFE, as that would be super handy
I'm o.d.d.
User Avatar
Member
47 posts
Joined: Jan. 2014
Offline
Hey Goldleaf :-)

You might find this helpful:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=6679 [sidefx.com]
User Avatar
Staff
4164 posts
Joined: Sept. 2007
Offline
Ah I didn't realize that page (and the one in the docs) had the conditions/recipes!

Thanks Ben!
I'm o.d.d.
  • Quick Links