It would be nice if each renderer entry showed whether or not it's free.
Posts made by lachlan
-
RE: Render application Home pages
-
RE: Get the global rotation of a DC
Thanks for the help, it makes sense, but it doesn't solve my problem entirely.
I think I'll have to explain the scenario.
I'm making a level editor for a game (SU has easy 3D nav and editing + good exporting via ruby).
The game rotates its objects in the order x,z,y unlike SU's x,y,z.
In addition, all z rotations are "global". I'll give an example.
If an arrow pointing north (0,0,0) is rotated to have x=45 y=0 and z=180 then in the game it will be pointing south, but upwards at 45 deg, whereas SU will have the arrow pointing down.
The game rotates objects through the global z axis (always vertical), not the objects z axis.I'd like to know how to get rotations that can be used in the game.
Thankyou
-
Get the global rotation of a DC
As the title suggests, how do I get the global rotation of a DC?
For example:
- Make a simple DC cube
- Rotate it 45 deg left on z (using the move tool)
- Then 45 deg up on x (also using the move tool)
- look at the rotation values in the DC Attibutes
The values should be [35,-30,-36]
I know that SketchUp uses local rotation values.
I'm creating a specialised exporter and need to know the DC's global rotation of [45,0,-45]Is there some mathematical way to do it? Or even better, an inbuilt ruby command?
Thanks