why quaternion's attribute symbol is p??

   738   3   0
User Avatar
Member
24 posts
Joined: Feb. 2022
Offline
just curious...

in VEX, why attribute symbol of quaternion is p??

p for what??(which word)
Edited by hign - Nov. 18, 2023 22:09:39
User Avatar
Member
7837 posts
Joined: Sept. 2011
Offline
p for point because the type 'point' has four components
User Avatar
Member
8622 posts
Joined: July 2007
Offline
Also p@ (point) is just float4 not quaternion
Same way as v@ is a float3 and not directly color, normal or vector
And u@ float2 and not directly texturecoord, etc


To mark an attribute as quaternion, ... you need to use setattribtypeinfo()

Commonly used attributes like p@orient for example is an exception that Houdini automatically marks as quaternion similarly to v@Cd as color or v@N as normal, v@v as vector ...
Edited by tamte - Nov. 19, 2023 00:00:04
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
24 posts
Joined: Feb. 2022
Offline
haha,now i know,thanks a lot
  • Quick Links