Rotate the world around an axis instead of the camera ?

Started by Mr_Chaos, June 21, 2014, 12:18:10 PM

Previous topic - Next topic

Mr_Chaos

When I do rotation it's the camera that rotates. I would like somehow to rotate the world around and axis instead of the camera

AGP

Add everything as child of a dummy Object3D which you can place anywhere (before adding the children). Then rotate the dummy object. Or did I misunderstand the problem?

Mr_Chaos

Quote from: AGP on June 21, 2014, 12:53:56 PM
Add everything as child of a dummy Object3D which you can place anywhere (before adding the children). Then rotate the dummy object. Or did I misunderstand the problem?

I'll try it right away, but it sound like a plan.

EgonOlsen

That works for objects but not for lights. If that's a problem, you either have to rotate the lights by hand or use some additional dummy objects in the scene that specify the lights' positions.

AGP

To that end, Egon, don't you think that everything, camera and lights included, should be a subclass of a class of some sort (Node or something)? I remember how much easier my life would have been when I first got started with jpct).