How is the orientation in the 3d space defined?

  • Hi

    I can't follow krpano's logic of defining coordinates in 3d space.

    I did build a tour of 4 standpoints in a Blender. Each cameraposition is on a grid of 300 units.
    I analysed the "tempel of abu simbel" example to see how to position hotspots, panorama-image and the center attribute of the depthmap-element.

    I came to a coordinates-converting conclusion like this:
    https://pasteall.org/pic/8a5253a6c5854c2587b53804a4eccebe
    The screenshot is from Blender.

    The gray squares visualize the hotspots on the floor (HS1 to HS4).
    The orange geometry represents the depthmap-model.
    The black cube (I asume) represents the cube of the pano image.

    Blender, scene.image and scene.image.depthmap seem to use its own orientationlogic.

    Does anybody know how the logic behind the diffent orientations is?

    Kind regards
    Alain

  • To clarify the question:
    Why is the orientation of the Blenderscene not the same as the orientation of the image and the image not the same as the orientation of the depthmap? Why has each its own orientation in 3D space?
    From my point of view all elements in 3D space should have the same orientation.
    Am I wrong?

    Kind regards
    Alain

  • Is my question that stupid that nobody answers? *cry*

    Can somebody please guide me to the right direction.
    I can't find anything about those basics in the documentation.

    Kind regards
    Alain

  • Hi!

    I have done a lot of tests with Blender.
    This 3D-deptmap panorama tour for example, was completely done with Blender and Krpano.

    Axis:
    Here is a graphic to visualise the difference between the Blender and the KRpano axis:

    Scale:
    The exported models from Blender are way too small for KRpano. They must be scaled with 100.
    This means: All location-values (for pano- and hotspot-positions) must be also mulyplied by 100!

    depthmap.center:
    I have done only few tests with depthmap.center:
    I found out, that the depthmap.center values don't have to be multyplied by 100.
    It confused me too.. *confused*

    I hope this was helpfull!

    Best regards,
    Mische

  • Hi Mischa
    Thank for that clarification!
    Good to know that I'm not the only one that stumbles over this orientation obstacle course *smile*

    I came approximatly to the same conclusion as you did:
    https://pasteall.org/pic/3be6392734ad48a0834dbc388b1b962b


    Maybe Klaus can help us and explain why we have to change the orientation (and scale) of the coordinate-system from 3d-software to krpano-hotspots to krpano-depthmodel. I feel like doing a mental double backflip with screw *wacko* If there would be any kind of understandable logic behind it, everything would be easier to implement *smile*


    Kimd regards
    Alain

  • @ Alain:
    krpano and blender are unrelated applications. there are a lot of 3d apps and a few common axis systems.
    the scale is a matter of units you're modelling in --> cm/m/etc
    either you can handle that upon exporting or you need to rotate/scale your model before the export.

  • indexofrefraction
    That different 3d-softwares use different orientations and scales of their coordinatsystem is clear to me.

    But I do not understand why the center-attribute of a depthmodell has a differnt x,y,z-orientation than hotspots do.
    Should it not be equal?

    Does krpano have one fixed camerastandpoint? And when moving in 3d-space, then just the depthmodell (or the cube if you have no depthmodel) but not the camera itself moves, right?
    If yes, is the panorama-image always projected from that fixed camera to the current position of the depthmodel?

    Do values in the center-attribute of the depthmodel-element define the offset to the origin of the depthmodel?

    San7
    Thanks for that overview, I missed something like that *smile*


    Kind regards
    Alain

  • Hi,

    But I do not understand why the center-attribute of a depthmodell has a differnt x,y,z-orientation than hotspots do.Should it not be equal?

    That's an 'import' setting to bring the model into the 3d space used by krpano. The depthmap.center values were added to the model xyz data when importing and that before scaling and before mapping the pano-image onto it - see here in the documentation:
    https://krpano.com/docu/xml/#depthmap.center

    Does krpano have one fixed camerastandpoint? And when moving in 3d-space, then just the depthmodell (or the cube if you have no depthmodel) but not the camera itself moves, right?

    No, the camera moves - see the http://view.tx/ty/tz settings:
    https://krpano.com/docu/xml/#view.tx
    The pano-image/3d-model itself can be moved using the http://image.ox/oy/oz settings:
    https://krpano.com/docu/xml/#image.ox

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!