krpano.com/forum/wbb/core/index.php?attachment/4164/krpano.com/forum/wbb/core/index.php?attachment/4166/Code Display MoreaddSceneInKp({sceneId, imgUrl}){ if(!sceneId && !imgUrl) return const sceneName = PREFIXX_SCENE + sceneId const sceneContent = ` <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" fovmin="1" fovmax="179" limitview="auto" /> <image> <sphere url="${imgUrl}" /> </image> ` this.krpano.set(`scene[${sceneName}].content`, sceneContent) }If the imgURL path contains the "#" or "&" characters, it may not be accessible or result in an error. What is this and how can it be resolved?
Posts by cbiu
-
-
Code
Display MoreaddSceneInKp({sceneId, imgUrl}){ if(!sceneId && !imgUrl) return const sceneName = PREFIXX_SCENE + sceneId const sceneContent = ` <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" fovmin="1" fovmax="179" limitview="auto" /> <image> <sphere url="${imgUrl}" /> </image> ` this.krpano.set(`scene[${sceneName}].content`, sceneContent) }If the imgURL path contains the "#" or "&" characters, it may not be accessible or result in an error. What is this and how can it be resolved?
-
There is a default exit callback event onexitvr in the webvr plugin. How can I add other logic to onexitvr? The scene is like this: I wrote a button, clicked to enter webvr and activated the button, and when exiting vr, I need to deactivate the button. The logic I want to add is this. The krpno I am using is version 1.22.2.
I hope someone can help me answer, I am extremely grateful. -
Is there any restriction on krpano's panoramic image cropping. What photos may cause KRPANO slicing failure?
-
Hello, I have loaded it according to your method, but I cannot render the image. I saw in the devtool of the browser that the image resources have already been loaded. Why is this
This issue has been resolved。
The code 'if (plugin. invideoreadyCB) plugin. onovideoreadyCB()' needs to be placed in the onload and executed after drawing the image。like this:
-
you can change the function draw_grid in canvas.js to insert your pano image:
Hello, I have loaded it according to your method, but I cannot render the image. I saw in the devtool of the browser that the image resources have already been loaded. Why is this