I am facing a hard time to align an OBJ to the terrain.
I am importing a point feature dataset to Cityengine and align it to the terrain. And it is working. I can see the points.
Later I am applying the rule Insert_obj.cga
attr Rotation = 0
attr Model_File = "assets/yacht/Pershing_yacht.obj"
attr Scale = 1
modelFileChecked = case fileExists(Model_File): Model_File else: "builtin:cube"
When I apply and generate the model, the yacht stays above the terrain and other layers.
Does anyone have any idea why it is happening?
Thank you all,
Sending the screenshot too.
Sounds like the model's origin is off. Try loading the model into the scene and then check it using the move tool. The axes and yellow circle should be in its center.