You are not logged in.

1

Tuesday, July 11th 2023, 8:58am

Load scene - 3D Tour (SOLVED)

Currently when i click move to next scene its blur and not smooth. Anyone know how to improve it ?

This post has been edited 2 times, last edit by "jack bauer" (Aug 22nd 2023, 6:02am)


kme

Intermediate

Posts: 310

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

2

Tuesday, July 11th 2023, 9:38am

Hi,

I had a look at your demo. In your demo, as soon as the preview image is loaded the transition will start. As the preview image is rather blurry, it shows the blurry first and then starts loading the high resolution tiles.

There are several ways to solve this:
a) make the preview image a higher resolution/less blurry
b) You have this action:

Source code

1
2
3
4
5
6
7
<!-- 3D Transition  -->
<action name="tour3d_loadscene" scope="local" args="scenename">
   loadscene(get(scenename), null, MERGE|KEEPVIEW|KEEPMOVING, BLEND(0.75));
   if (global.customtransition != 'SKIP', if(global.customtransition !== null, global.customtransition(); , 
   tween(view.tx|view.ty|view.tz, calc(image.ox + '|' + image.oy + '|' + image.oz), 1.0, easeinoutsine); ); ); 
   delete(global.customtransition); delete(global.customtransitiontime); 
</action>



You could look into adding PRELOAD to the flags for loadscene.
It will slow down the loading/moving to the next scene, but the blur will be gone as the scene will be pre-loaded with high resolution images before the transition starts

c) faster server (although the latency was not too bad)

3

Tuesday, July 11th 2023, 10:13am

I use image 16k resolution. How about image is distorted when move to next scene? Can you send me your contact like skype, discord,.. to discuss more detail about my problem?
This is my demo using 4K image but when load image in the first time it still slow
https://3d-tour.vercel.app/

kme

Intermediate

Posts: 310

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

4

Tuesday, July 11th 2023, 10:35am

You second demo uses preload.xml
That is also a nice solution to speed up transition between the panos, but at the cost of the initial load time of the whole tour...

I have sent my discord details in PM.

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Tuesday, July 11th 2023, 4:19pm

Hi,

you are using version 1.20.9
I would advise first update to the latest.

Tuur *thumbsup*

6

Tuesday, July 11th 2023, 4:27pm

Sure. Tks

7

Tuesday, July 11th 2023, 6:56pm

set3dtransition

I have problem with set3dtransition. its not working as i expect
link xml and video: https://drive.google.com/drive/folders/1…mam?usp=sharing
Can u guys help me fix it?