a simple question about vector space for mantra

   3127   3   0
User Avatar
Member
5 posts
Joined: 8月 2009
Offline
Hi all,

I am learning the vex now. I'm gonna to write a cone light on my own. As in RSL, if I want to define a vector in “shader” space instead of “current”. In RSL, I would simply put:

vector A = vector “shader” (0,0,1);

just don't know how to do that in VEX,can't find it in manual, another question is what the current space for mantra?

Thanks,

Ozzy
User Avatar
Member
192 posts
Joined: 11月 2008
Offline
http://www.sidefx.com/docs/houdini9.5/vex/functions/ptransform [sidefx.com]

This one and its relatives might help
User Avatar
Member
5 posts
Joined: 8月 2009
Offline
I circumvented it by transforming the other vectors, ex:

vector myVel = (0,0,1);
vector LinW = vtransform(“space:world”,L);
float angle = dot(normalize(myVel),normalize(LinW));

still be curious to know what the current space is in houdini.
User Avatar
スタッフ
2540 posts
Joined: 7月 2005
Offline
Defalt current space in Mantra is Camera space.
There's at least one school like the old school!
  • Quick Links