[066] How to Fix Up-Axis Alignment for Imported 3D Assets
I'm taking a short break to post again today. This is the second lesson on i(), covering the form that takes two parameters. Sometimes, when you load a file exported from a 3D program into CityEngine, the direction of the height axis is different, so the object ends up placed all wrong. This is because the direction of the height axis differs from program to program. (Programs can be divided into those that use the right-hand rule and those that use the left-hand rule.) If it's a source you made yourself, you can simply export it with the y-axis pointing up, but with files made by other people, you often need to change the direction. In that case, you can place it correctly by changing the second parameter, upAxesOfGeometry. I created a square pyramid in a program like the one shown below. figure 1 If you look at the axis directions of this program, the x-axis is the same as in CityEngine, but the height axis is the z-axis...