Posts by muhammad

    Hi,

    a normal pano image is just a flat image without any 3d-depth information.
    Therefore everything in the pano image looks infinity far away in VR, that's normal.

    To get a feeling for real size in VR, a depthmap or a 3d-model for the pano image would be required:

    klaus.krpano
    September 2, 2019 at 1:53 PM

    Best regards,
    Klaus

    Hello dear klaus,

    Hope this message finds you well.

    I added a depthmap to my pano and now the problem is that when you move your head in VR headset, somehow the entire scene moves with it and it causes that the hotspots not to be in where they supposed to be... I saw abu simbel example (https://krpano.com/releases/1.22/…l-tour/tour.xml) and checked the i's xmls but unfortunately i couldn't figure out how they managed to keep the hotspot in a line with user view direction.

    I would appreciate it if you can help me with this matter.

    Thank you in advance for your help and wish you a merry Christmas!


    Warm regards,

    Muhammad

    Hi,

    a normal pano image is just a flat image without any 3d-depth information.
    Therefore everything in the pano image looks infinity far away in VR, that's normal.

    To get a feeling for real size in VR, a depthmap or a 3d-model for the pano image would be required:

    klaus.krpano
    September 2, 2019 at 1:53 PM

    Best regards,
    Klaus

    Hey Klaus,

    Hope you are doing well.

    Thanks for your response , i will try to do so and add a depth map to my project and will be back to you to share the results so maybe it helps others with same problem.

    Warm regards,

    Muhammad

    Hello everyone,

    Hope you are doing well.

    Recently I'm trying to test my VR tours on Oculus quest 2, but when i enter vr mode on quest it feels like you are a tiny man in the middle of the environment and everything looks so huge!

    Also all the hotspots feels to be floating on the air and have some distance from where they supposed to be.

    I've experienced it before on mobile VR but i had access to VR setup so i was able to somehow solve the problem by adjusting setting, but in quest, there is no setting available, just a enter VR button.

    I attached a video of quest screen record but this record don't show how it really feels.

    I need to present my project in the upcoming days so i will appreciate it if you guys can help me on this matter.

    Best regards,

    Muhammad

    P.S : screen record link:

    https://thisismore.ir/Downloads/quest.mp4

    here a template (untested) :)

    Thanks, i will test it and share the results.

    instead of hs.url, you could set hs.url_delayed="path/to/your/asset"

    then, after the pano has loaded, onloadcomplete you can iterate all your hotspots

    and copy(hs.url, hs.url_delayed); to trigger their loading.

    to make that nicer you can set hs.alpha="0" and on hs.onloaded you can show/blend it in.

    that could solve some of your problems.

    you mean something like this:


    <scene name="scene_test" title="test" onstart="" havevrimage="true" thumburl="panos/test/thumb.jpg" onloadcomplete="load_hs()" >

    .

    .

    .

    <hotspot name="hs" url.normal_delayed="test.png" url.mobile_delayed="mobile_test.png" scale="1" alpha="0" zorder="1"  onloaded="set(hotspot[hs].alpha,1); (I already control alpha using actions) "/>

    <hotspot name="hs2" url.normal_delayed="test2.png" url.mobile_delayed="mobile_test2.png" scale="1" alpha="0" zorder="1"  onloaded="set(hotspot[hs2].alpha,1); (I already control alpha using actions) "/>

    .

    .

    .


    <action name="load_hs">
    copy(hs.url.normal, hs.url.normal_delayed);

    copy(hs.url.mobile, hs.url.mobile_delayed);

    </action>


    P.S.: Sorry but I'm not familiar with copy() so much!


    that sounds extremely demanding!

    mind that even if you reduce the file size by compression, in memory that doesn't count.

    use less and smaller resources, convert to greyscale if possible .-)

    dont scale extensively (eg hotspots of 512x512 displayed at 32x32)

    check the device and use less/smaller resource versions for tablets / mobiles

    Hello indexofrefraction,

    Thanks for your attention,

    I need to have very high quality hotspots and the size can't be smaller, but as i said before I have 2 version of assets for PC and mobile devices.

    But the main problem is that when you add so many assets to your scene, krpano starts to act weird and downloads all assets at same time and then lets the panorama to be loaded.

    I just need panorama to be loaded first and then other assets are ok to be downloaded.

    hi again,

    i tried to make a sample but it was so hard!*g*

    my XML code is +2000 line code and I think when you add a lot of hotspot, action, js, plugins, etc. krpano starts to act uncommon!
    unfortunately I'm not allowed to share the project but I tried to add hotspots little by little and got same result.

    i don't know whats wrong but this happens even when I try to make a new tour and add the same asset to the scene.

    Hi,

    just as note - krpano requests the pano tiles first and then the layer/hotspot elements.

    Then the loading itself is done in parallel.

    When you have a very long loading time, something must be very wrong or your server or internet connection is very slow or somehow limited/restricted...

    Best regards,
    Klaus

    hi klaus,

    thanks for your answer,

    in fact I have a loading time of 3 sec on mobile and 15 sec on PC because of the different quality.

    but the problem is that the krpano somehow stops Panorama from loading until everything is downloaded and when everything is downloaded suddenly it starts working so it's not scalable because the asset can reach up to 200-300 MB in each scene and looking at a black screen with a loading gif is boring for users naturally.

    I would appreciate any hint on this matter.

    warm regards,

    muhammad

    I rewrote my code using chatGPT and testd it but in one hand it makes some mistake in adding hotspot(like url.mobile, style, etc) and on the other hand i already have over 120 hotspot in every scene and they got different names.

    I'm thinking about other ways like adding a text to the .xml file that includes all hotspot details. Is it possible? Or somehow using delayedcall() function to load the hotspots... I don't know...

    I also have a version of my code that changes hotspot's url and the first url of hotspots is an empty .png file that is so light so i have a very good loading time but loading every hotspot got some time based on your internet speed.

    I'm looking for something like a trick that loads the panorama first...

    hello

    You can use the dynamic hotspot builder load using addhotspot and onblendcomplete event.

    Code
            <events name="load_hs" keep="true"
                onblendcomplete="add_hostspots()"
            />
            <action name="add_hostspots">
                addhotspot(name,hs);
                ...
            </action>

    Hi,

    thanks for your answer.

    but by using that method I have to change every hotspot to something like this:

    <action name="add_hotspots">

    addhotspot("x");

    set(hotspot[x].url.normal, ".png");

    set(hotspot[x].url.mobile, ".png");

    set(hotspot[x].scale, 1);

    set(hotspot[x].alpha, 0);

    set(hotspot[x].zorder, 2);

    set(hotspot[x].distorted, true);

    set(hotspot[x].onloaded, "");

    set(hotspot[x].enabled, false);

    set(hotspot[x].handcursor, false);


    addhotspot("y");

    set(hotspot[y].url.normal, ".png");

    set(hotspot[y].url.mobile, ".png");

    set(hotspot[y].scale, 1);

    set(hotspot[y].alpha, 0);

    set(hotspot[y].zorder, 2);

    set(hotspot[y].distorted, true);

    set(hotspot[y].onloaded, "");

    set(hotspot[y].enabled, false);

    set(hotspot[y].handcursor, false);

    ...

    </action>


    right? Including every hotspot in an action and defining every property separately?

    That's so much! i have a lot of hotspots!!!*unsure*
    is there any other way?

    Hello everyone,

    Hope you are doing well.

    I have a tour with several panorama and every panorama includes several asset like hotspots, video, etc. that makes a very long loading time.

    I mean krpano first downloads all assets and then loads the panorama and this can be boring for user... Now i want to load the panorama first and after that load the hotspots, video, etc.

    I would appreciate it if anyone can help me on this matter.

    Thank you in advance for your attention.


    Best regards,

    Muhammad