Note that there are some explanatory texts on larger screens.

plurals
  1. USuser1214513
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI still can't get this to work. I have tried: 'scene.matrix.makeScale(1, -1, 1);' and 'scene.matrixWorld.makeScale(1, -1, 1); scene.matrixWorld.matrixWorldNeedsUpdate = true;' and they all just seem to flip only some objects, but not all. All I want is to flip the whole scene like I could do in GL: 'glPushMatrix (); glScalef (1., -1., 1.); //Render glPopAttrib();' And this seems very complicated in Three.js. Maybe I could get the gl api use it there directly. Or just find which of the 100 matrices in scene object I need to scale.
      singulars
    2. COAnd scene is THREE.Object3D.prototype, so it actually has scale method as well. But it doesn't seem to work. I think that is because camera is part of the scene as well, and when I do scene.scale.y the camera is also flipped, so in the end I don't see any difference (though light positions stay the same). I tried camera.scale.y = -1 and it did flip everything, though again, light stayed at top and the angle was not right. I think I have to go trough all scene.__objects and set scale.y=-1 manually. Then do that again after rendering to FBO. Could you post an example on how you managed to do it?
      singulars
    3. COThe fiddle only shows the displacement part (refraction), while all my quests were about scaling, clipping and rendering to plane. The presentation looks promising though, so I will look into it. Thank you.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload