Search results
Search results 1-20 of 167.
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...
They are available at: https://krisoft.gumroad.com/l/dejtt Kind regards, Kristof
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...
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
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
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...
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...
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...
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 ...
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...
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
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...
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....
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...
Just a quick "i can reproduce" the scenario, so not something local.
I ususally use San7 approach for looping through hotspts, but Tuur, your code looks so much clearner!
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>
Yeah, I wish I could think of something simpler. I might have a go at it later and post it here then...
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>
Tested with javascript plugins: plugin1: krpano.actions.dosomething = function() { ... }; plugin2: krpano.actions.dosomething = function() { ... }; And in tour.xml I have <plugin name="simpleplugin" url="simpleplugin.js"/> <plugin name="simpleplugin2" url="simpleplugin2.js"/> <action name="dosomething"> ... </action> when i call "dosomething", the action from plugin2 is used.