I imitated the example of the official document and tried to make a luminous street lamp. I created a SpotLight, set diffuse to yellow, and set its parent to the light bulb “Mesh03_primitive0”. But it turns out that SpotLight is not in the position of Mesh03_primitive0 (but moving Mesh03_primitive0, SpotLight can move together), and when I turn off other lights in the scene, SpotLight does not light up.
Thank you, but sorry it doesn’t work. If I just set the position of lampLight, it will be at the origin of the world coordinates. If I set parent and position at the same time, there will be the same error as before.
Yes, I have tried it. When I create the lampLight using the position of “Mesh03_primitive0”, it is still at the origin of the world coordinates.
The position of “Mesh03_primitive0” relative to its parent “Mesh03” is (0,0,0), but lampLight seems to treat it as (0,0,0) of world coordinates, so it is located at the origin of world coordinates after creation, rather than where “Mesh03_primitive0” actually locates.
I tried this at the very beginning, but the process of moving was very difficult. Under the camera’s perspective, it was always impossible to move to the correct position. From one angle, the position seemd to be correct, but from another, there existed deviation.
Is there any way, like in 3dsmax, to observe objects from the top, left, front and other positive directions? In that case it will help me adjust the position of the object.
Thank you, I already know where the problem is. When I went back to 3dsmax to view the model, I found that the pivot of the object “Mesh03_primitive0” was at the bottom, so the lampLight would be at this position, and it could be solved by adjusting the pivot to the center of “Mesh03_primitive0”.