You are not logged in.

Search results

Search results 1-20 of 168.

Today, 1:25pm

Author: kme

How to fix : play() failed because the user didn't interact with the document first?

That site is not playing any sound either if you don't interact with the pano. I would put something in a mousedown event. something like (untested) Source code 1 2 3 4 5 <events name="ondownevent" ondown="playbackgroundsound()" /> <action name="playbackgroundsound" > playsound(bgsound, "sound.mp3"); </action name> I'm not a fan of playing sound in the backgroudn tho. If a site does that, my response is to close it. I believe it is more common / user friendly to ask to enable background sound an...

Today, 11:33am

Author: kme

How do I know the location of hotspots in the obj (3d model)?

There are multiple ways to find them out. You can - move around in 3D space using WASD keys with the depthmap navigator (examples: https://krpano.com/examples/?depthmap) and get your view.tx, view.ty, view.tz locations - use tools like https://krpano.com/plugins/userplugins/toolbox/#top or https://krpano.com/plugins/userplugins/addhotspot/#top to get the locations - manual trial and error If you are interested in putting annotations on 3D models, I would recommend (selfish self promotion): https...

Today, 11:21am

Author: kme

Another Virtual Gallery (template)

They are available at: https://krisoft.gumroad.com/l/dejtt Kind regards, Kristof

Yesterday, 8:59pm

Author: kme

Add plugin dynamicaly via Javascript - krpanoplugin : local variable error

I have modified the sample a bit to demonstrate some of the things you can do to proceed. 1) load the plugin as indexofrefraction says: Source code 1 <layer name="threejs" preload="true" url="three.krpanoplugin.js" keep="true"/> 2) I added 2 javascript functions inside the plugin: In registerplugin: Source code 1 2 plugin.addobject = addobject; plugin.removeobject = removeobject; further down: Source code 1 2 3 4 5 6 7 8 9 function addobject(url) { load_object_json(url, true, {ath:-58, atv:+7, d...

Yesterday, 11:36am

Author: kme

Add plugin dynamicaly via Javascript - krpanoplugin : local variable error

i would approach that a bit different. i would load the plugin, maybe even create the scene, but not load any objects in it. and then create a seperate add/delete for each object you want to load and call those from within krpano. but thats just my 2c good luck with the project and keep us informed on the progress... kme

Yesterday, 10:28am

Author: kme

Add plugin dynamicaly via Javascript - krpanoplugin : local variable error

Hi, even though i dont have an answer to your question right now, i m curious to understand what your goal is for loading the plugin dnymically, as maybe there is another/easier way to achieve your goal. gr, kristof

Tuesday, March 28th 2023, 6:21pm

Author: kme

NEW - Spacial Events for krpano hotspots

I noticed a lot of questions around how to manipulate hotspots when certain conditions are met. For some users, the "onviewchange" is not easy to grasp and the usage also has its limitations and can become complex quickly if a lot of things need to be verified within that routine. To make it easier and more in line with the krpano event system, I created this plugin to help krpano coders with some very specific but common tasks/interactions with hotspots: - do something when (not) looking at hot...

Monday, March 27th 2023, 9:52pm

Author: kme

Annotations plugin

Just a quick note that inform you that the plugin has been updated. New features: Added new function showAnnotations() and hideAnnotations() to allow users to integrate showing/hiding the annotations through codeAdded new functions annotationsAutoplayStart() and annotationsAutoplayStop() to go through the annotations automaticallyAdded optional navigation bar Online demo has been updated to showcase the changes. We will continue to improve this plugin, thank you to everyone who provided feedback...

Monday, March 27th 2023, 11:45am

Author: kme

ArtPlacer - a Virtual Gallery Editor

Hi, Thank you for your comments. I'm sorry for responding in English, German is not one of the languages I can express myself in. I hope you understand. I used google translate to get a feel for your questions. 1. Yes, updates to the galleries will be made available for free. 2. The models are pretty much fixed items in the template and cannot be changed. The scene itsellf (background or any other elements like the buttons, ...) can be altered to your liking. 3. I don't really understand the que...

Sunday, March 26th 2023, 11:27pm

Author: kme

ArtPlacer - a Virtual Gallery Editor

As a weekend project, I worked on a new concept called "Art Placer" plugin. ArtPlacer allows you to take a 3D model and "decorate" it with digital art and photographs, all from within the krpano interface. The plugin itself is not yet ready for release, but I did put a first version in the 3D Virtual Galleries that I have created in the past so if you are interested, you can have a play with the ArtPlacer plugin as a pre-release. I also did an attempt to create a video (my first ever) with some ...

Sunday, March 26th 2023, 1:45pm

Author: kme

Visibility of hotspots in a 3d model

You can calculate the distance between the hotspot location and the current view. From: https://www.omnicalculator.com/math/3d-distance --- What is the 3D distance formula? To find the distance between two points in a three-dimensional coordinate system, you need to apply the following formula: D = √[(x2 - x1)² + (y2 - y1)² +(z2 - z1)²] where: D is the distance between two points; (x1, y1, z1) are the coordinates of the first point; and (x2, y2, z2) are the coordinates of the second point. --- S...

Saturday, March 25th 2023, 9:28am

Author: kme

Hotspot sharpening

Found the time to put an example online: Left image: original Right image: scaled to 25% in photoshop https://krpano.kri-soft.be/examples/hotspotsharpening/ Also note that with these resolutions, the left image allows for getting real close, but the right image starts to show pixelated pretty quick (due to lack of resolution). kme

Friday, March 24th 2023, 11:47pm

Author: kme

Hotspot sharpening

I was wondering if there is any sharpening applied when viewing a hotspot in krpano. Hotspot is an img hotspot. The original image is here: https://www.pexels.com/photo/smiling-gir…k-shirt-774091/ When viewed at 25% in photoshop, I see something like this (best viewed in new window) But when I view inside krpano on a hotspot at approximate the same size as 25% in photoshop, there are some noticable artifacts visible. See screenshot (best viewed in new window): I tried playing around with scale/w...

Friday, March 24th 2023, 10:01pm

Author: kme

onloadcomplete event when loading 3D model textures through mtl file vs texurl

Hi Klaus, This is now working in build INFO: krpano 1.21 (build 2023-03-21) But I still found a potential issue with this: when I have a preview defined, for example this: Source code 1 <preview type="grid()" /> Then the onloadcomplete is triggered BEFORE all materials have been downloaded. When I dont define this in the tour, the event is triggered AFTER all materials have been downloaded (as expected). Demo: Without preview (alert shows after materials are downloaded): https://krpano.kri-soft....

Thursday, March 23rd 2023, 6:02pm

Author: kme

krpano 1.21 (pre-release)

Workaround: Source code 1 2 3 4 5 6 7 8 9 <action name="pos_update" scope="localonly"> if (get(global.layer[text-pos].visible) == "true", set(global.layer[text-ath].text, calc(roundval(global.view.hlookat, 2))); set(global.layer[text-atv].text, calc(roundval(global.view.vlookat, 2))); set(global.layer[text-fov].text, calc(roundval(global.view.fov, 2))); ); </action> I have the feeling that doing too many things in the onviewchange() event is not optimal. (Escpecially in the beginning when not ev...

Thursday, March 23rd 2023, 5:24pm

Author: kme

krpano 1.21 (pre-release)

Just a quick "i can reproduce" the scenario, so not something local.

Thursday, March 23rd 2023, 12:19pm

Author: kme

krpano 1.21 (pre-release)

I ususally use San7 approach for looping through hotspts, but Tuur, your code looks so much clearner!

Thursday, March 23rd 2023, 12:03pm

Author: kme

krpano 1.21 (pre-release)

Or even better is this, because then we are absolutely sure we tween the correct hotspot... Source code 1 2 3 4 5 6 7 8 9 <action name="hid_show_hs" scope="local" args="stat" > for(set(i, 0), i LT hotspot.count, inc(i), copy(hs, hotspot[get(i)]); if(hs.name == 'infohs', trace(hs.name); tween(hotspot[get(i)].alpha, get(stat)); ); ); </action>

Thursday, March 23rd 2023, 12:00pm

Author: kme

playsound_at_hotspot

Yeah, I wish I could think of something simpler. I might have a go at it later and post it here then...

Thursday, March 23rd 2023, 11:57am

Author: kme

krpano 1.21 (pre-release)

Hey San7, This looks like a scope issue: while doing the tween on hs, the hs is overwritten (copy) with a new value and then that new value is tweened :) Maybe this could work (not tested): Source code 1 2 3 4 5 6 7 8 9 10 <action name="hid_show_hs" scope="local" args="stat" > for(set(i, 0), i LT hotspot.count, inc(i), copy(hs, hotspot[get(i)]); if(hs.name == 'infohs', copy(hstotween, hotspot[get(i)]); trace(hstotween.name); tween(hstotween.alpha, get(stat)); ); ); </action>