You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, February 25th 2019, 1:59pm

How to prevent dispose texture before load another scene?

Hi!

is possible to keep texture on the screen before going to the next krpano scene? Currently, then i go through hotspot, texture is dispose and i have got krpano background color. I would like to keep that texture before next texture will be ready. Is it possible?

Greeatings!

This post has been edited 1 times, last edit by "rejentt" (Feb 26th 2019, 8:37am)


2

Tuesday, February 26th 2019, 5:43pm

Hi,

use a BLEND flag - and if you don't want a blending transition with a very short time, e.g. BLEND(0.01):
https://krpano.com/docu/actions/#loadpano.blend

Then the previous pano image will be kept visible until the next is ready.

Best regards,
Klaus

3

Tuesday, February 26th 2019, 10:13pm

Thanks for your answer, but it's not working as i want. This is my actual settings inside hotspot onclick.

Source code

1
loadscene('%1, null, MERGE , BLEND(0.01, easeInCubic));

and after click on hotspot, the first thing is unload texture from scene (i get default canvas color: white for my case) :D
I tested your 'Blending example' - https://krpano.com/tours/corfu/blending-demo.html and it works very well!!!
I observed that your loaded pano is very light compared to mine (I loads 4-10mb panos)! Do you know any idea how to fix it??

Greetings!

4

Wednesday, March 6th 2019, 10:07am

Hi,

please provide a link to your example.

Best regards,
Klaus