The reflection efect looks great but sometime object 3d is too big to use UV.
Can i set one texture as ENVMAP_WORLDSPACE and secound as ENVMAP_CAMERASPACE?
Can i set one texture as ENVMAP_WORLDSPACE and secound as ENVMAP_CAMERASPACE?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteSimpleVector dir=new SimpleVector(x,y,z);
camera.setBack(dir.getRotationMatrix().invert3x3());
Quote from: EgonOlsen on May 24, 2007, 05:45:12 PM
To set an Object3D's axis, you may feed the axis into a SimpleVector, get the rotation matrix from it and put that back into the Object3D's rotation matrix.
Quotefloat Coordinates[] = {
XPos,YPos,ZPos,XAxis,YAxis,ZAxis,
...
...}; // * TotalFrameLenght
Quotefloat XPos = Coordinaties[CurrentFrame*6];
float YPos = Coordinaties[CurrentFrame*6+1];
float ZPos = Coordinaties[CurrentFrame*6+2];
float XAxis = Coordinaties[CurrentFrame*6+3];
float YAxis = Coordinaties[CurrentFrame*6+4];
float ZAxis = Coordinaties[CurrentFrame*6+5];
Quotecamera.setPosition = (XPos,YPos,ZPos);But i don't know how i can set the Axis.
Page created in 0.016 seconds with 9 queries.