LoginSignup
1
0

Imposterを360°回転させてみる

Posted at

とりあえず
HoudiniでDebug!
image.png

"VEX"
//Pos
v@UEPos = set(@P.x,@P.z,@P.y);

//U
@Arctangent = atan(@UEPos.x,@UEPos.y)/($PI*2)*-1+0.25;
//V
@Dot = (dot(set(0,0,1),@UEPos)+1)*0.5;

//UVRot
v@UECamUP = normalize(point(1,"P",1));
@UECamUP = set(@UECamUP.x,@UECamUP.z,@UECamUP.y);
v@UECamSide = normalize(point(2,"P",0));
@UECamSide = set(@UECamSide.x,@UECamSide.z,@UECamSide.y);

v@UEZPos.y = dot(v@UECamUP,set(0,0,1));
@UEZPos.z = dot(v@UECamSide,set(0,0,1));
@UVRot = atan(@UEZPos.z,@UEZPos.y)/($PI*2);
"VEX"
v@UEPos=point(0,"UEPos",0);
@Dot=point(0,"Dot",0);
@ArcTangent=point(0,"Arctangent",0);

v@UECamUP=point(0,"UECamUP",0);
v@UECamSide=point(0,"UECamSide",0);

@UVRot=point(0,"UVRot",0);

で、Unrealで構成
image.png

Sprite のフリップ以外ではうまくいってるように見えるが、回転させると、うまくいかないところがある。

RotateAboutAxisがうまくいってないのかもしれない
image.png

もう少し考えることが必要

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0