|
|
Quellcode |
1 2 3 |
<image> <depthmap url="model.obj" texurl="texture.jpg" hittest="true" scale="100" /> </image> |
There is no way in this version. Only one model at a time is supported. This issue has been long overdue and has been formalized as a wish that many people are waiting for. But we just have to wait for Klaus to realize the possibility to add more than one object/model).But how can I add a one or more 3d-models above another pano-image?

There is no way in this version. Only one model at a time is supported. This issue has been long overdue and has been formalized as a wish that many people are waiting for. But we just have to wait for Klaus to realize the possibility to add more than one object/model).
But it´s always good to ask to be sure
I saw a post of tuur who did it with a hotspot:
https://krpano.com/forum/wbb/index.php?p…&threadID=19184
In the second example of "hotspot type krpano (no vr):", he loads an .obj as a hotspot.
I experimented with that approach too, but in my tests, the quality of the generated hotspots was pixelated. If you find a way to improve that, I would be very interested in it.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
l.enabled = false; l.type = "krpano"; l.depth = "500"; l.distorted = "true"; l.width = "2000"; l.height = "2000"; l.scale = "1"; l.tx = "0"; l.ty = "0"; l.tz = "200"; |
It´s a scaling-problem! Just use the depth-parameter to set the hotspot in 3d-space instead of scaling.
As soon as I switch to VR the hotspot disappears, no matter what I try (renderer="webgl",renderer="css3d",depthbuffer.....).
I'll have a play with it, thank you for taking the time to report back here!


Next release![]()

I had a play with it and the depth can indeed solve the scaling issue.
But then it also moves the object in 3D space and I want it to be in an exact position. When I then move the hotspt so that the final obj is in the good position, the model is too big and I have to make it smaller again, running into the same quality issue again.
Also, I noticed that the 3D model is not interacting with other 3D models - it is drown over. You can see it in the screenshots below where the person is standing in the hall, but when you move the camera so that the bench is intersecting with the view to the person, the person is drawn over the bench, making it not realistic.
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Nupsi« (29. Juli 2023, 13:25)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Zitat
Next release![]()
: https://pame.virtualtuur.com