on start i fall from 3meters high

  • hi, i'm using krpano november build and

    krpano.com - Plugins - XML Extensions

    <control
    showinfos="true"
    movemode="walking"
    joypad.bool="false"
    levelcontrol.bool="false"
    uizorder="99"
    speed.number="0"
    friction.number="0.9"
    collision.bool="true"
    groundcollision.bool="true"
    usevrfloorlevel.bool="true"
    eyelevel.number="160.0"
    collisionlevel.number="60.0"
    smoothlevelchanges.number="0.15"
    stopdistance.number="10.0"
    moveback.number="1"
    bounceback.number="0.1"
    dollydistance.number="0.5"
    />

    my room , with a table on the centre is declared like this
        
    <image>
    <depthmap url="model/dinningRoom.obj" scale="100" hittest="true" backgroundurl="model/2025-09-15 16.55.58 DSC06953_HDR Panorama.jpg" />
    </image>
            
    <hotspot name="dinnertable"
    type="threejs"
    url="model/dinnertable.glb"
    depth="0"
    tz="0"
    ty="0"
    oncreate="trace('oncreatedinner');"
    onloaded="trace('onloadeddinner');"
    onclick=""
    capture="false"
    hittest="true"
    scale="1"
    />

    the issue is that when my model is loaded I fall from about 3 meters into the floor (ceiling level) .

    When i view it in blender it is aligned to the floor, the y on the table is set to 0.... the floor

    i've seen the examples in krpano and they all start at floor and i so no differenced from mine except.. something with the model

    anything wrong i'm doing with the model itself ?

    sorry.. can't share links because is not public yet.

    thank you all

  • added a trce

    trace(view.hlookat , ' - ' , view.vlookat , ' - ' , view.fov , ' - ' , view.tx , ' - ' , view.ty , ' - ' , view.tz , );

    and on scene loading ty is 0 but after the 1st of the elements is loaded
    INFO: 153 - 0 - 90 - 0 - 0 - 0
    INFO: onloadedchandellier1
    INFO: 153 - 0 - 90 - 0 - -1536.2528873047975 - 0 [11x]

    chandelier 1 is defined as

    tz="-240.85"
    ty="+47.7"
    tx="0.7"

    it seems that the view.ty is affected by each additional obj that i load

  • hi,
    thank you for post

    i know you're right and i'm sorry for that but i think i can share it like this and it will help

    i'm using eyelevel 160 and ground colision, yes...

    but when appearing i am a bit above the celiing and i drop to the ground.

    i thought the scale was right.... i'd like a real world so.. meters and scale 100 is not right ?

    the obj consists of the walls and ceiling and is is declared like so ->

    <image>
    <depthmap url="model/dinningRoom.obj" scale="100" hittest="true" backgroundurl="model/2025-09-15 16.55.58 DSC06953_HDR Panorama.jpg" />
    </image>


    the floor and chairs are

    <hotspot name="dinnertable"
    type="threejs"
    url="model/dinnertable.glb"
    depth="0"
    tz="0"
    ty="0"
    oncreate="set(view.ty , -158) ; "
    onloaded="set(view.ty , -158) ;"
    onclick=""
    capture="false"
    hittest="true"
    scale="1"
    />


    i used set view ty everywhere (there are 2 chandeliers not shown) to get the user to the ground since it seemed (with that trace) that ty changed when created and loaded are fired.

    now i have a weird behaviour because of loading times... is there a way to make a loading vr screen ? In regular view it's just a layer with 100% but.. in vr ? :)

    i'll do furder testing.

    thank you again.

  • hi,

    I set the scale to 1 and it was gone
    using groundcollision.bool="true" made me wonder

    since my obj had no floor.. just a ceiling I thought that may be krpano went "looking for a floor" to stand on and found the ceiling.

    I added a transparent box to the walls and the ceiling to limit the viewer wanderer and made the bottom of that box to match, in height, the same as the floor that I have in my hotpots and now I'm on the ground all the time

    thank you for your answers and time.

    hope this post helps someone.

    all the best and happy holidays

Participate now!

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