lxq100
December 3, 2024, 8:10am
1
I need help ,
How to go about overcoming this problem?
Thanks!
Different perspectives before and after a free camera serialization
PG:
GLB file:
装载机_相机_1_1340.zip (35.6 KB)
step 1: load glb file
select glb file,load glb file
step 2: change camera and set view
change camera at line 60.
view is
step 3: serialize camera, load serialized camera, set activeCamera, view is not the same
serialize camera3, load serialized camera, set activeCamera
view is below. the view of step 2 is not the same,
Let me check what is happening
Ok this is because the camera has a parent but you are not restoring the parent of the serialized camera
Here is the fix:
A camera serialized and then loaded with inconsistent camera viewpoints | Babylon.js Playground
lxq100
December 4, 2024, 12:52am
5
The address is for a local project(http://localhost:1338/#M9VRYX#1 ).
I need an online address.
labris
December 4, 2024, 1:44am
6
1 Like
lxq100
December 4, 2024, 1:52am
7
The viewpoints of step2 and step3 are different, you need to look at them again.
Thanks!
I’m not seeing a difference:)
lxq100
December 5, 2024, 1:52am
9
Added an alert before switching cameras to see the perspective change in comparison
Added an alert at line 57 in step 2 and at line 68 in step 3.
You can see the change in perspective by comparing
I need your help to overcome this problem.
lxq100
December 7, 2024, 3:58am
10
Is there anything I can do to help me get over this?
Thanks!
Nope I’ll have a look right now