Sie sind nicht angemeldet.

Suchergebnisse

Suchergebnisse 1-20 von insgesamt 688.

Donnerstag, 3. August 2023, 08:17

Forenbeitrag von: »Nupsi«

3D-model image-"align" is not working?!

Hi Index, like I said, I did try every possibility, even depthmap.align and image.depthmap.align. And all the other settings are working just fine inside the depthmap-line, like cull, axis and subdiv, but not align: <depthmap url="sphere/earth_rings_satellites.obj" cull="front" background="none" backgroundurl="sphere/space.jpg" subdiv="0" center="0,0,0" axis="+x+y+z"/> And even prealign works perfect. Only align is not working, no matter if used with MTL or texurl. I just can´t rotate only the t...

Dienstag, 1. August 2023, 09:21

Forenbeitrag von: »Nupsi«

3D-model image-"align" is not working?!

Hi, I can´t get the image-align to work like it´s described in the documentation: The align setting rotates the pano-image. The setting defines the rotation-angles in degrees about these each axis. Works like the image.prealign setting, but it rotates only the image, not the 3D-geometry. Where exactly do I have to put the align and how? I did try to put it directly into the depthmap-line, like this: Quellcode 1 2 3 <image> <depthmap url="sphere/earth_rings_satellites.obj" align="90|90|90" cull="...

Montag, 31. Juli 2023, 08:54

Forenbeitrag von: »Nupsi«

First play 1.21

Absolutely stunning, as always, Tuur I wonder if those pylons could work on the surface of OBJs when mixed with the 3d-mouse cursor-function? index.php?page=Attachment&attachmentID=3467

Samstag, 29. Juli 2023, 12:49

Forenbeitrag von: »Nupsi«

Loading 3D-object (OBJ) as plugin/layer possible?

Zitat von »klaus.krpano« Next release OMG - CAN´T WAIT EDIT: Oh...and if you could take a look at the cull-function it would be perfect! Right now it´s not working quite right when using cull="twosided" for object-maps with alpha-channel index.php?page=Attachment&attachmentID=3465 Zitat von »kme« I had a play with it and the depth can indeed solve the scaling issue. But then it also moves the object in 3D space and I want it to be in an exact position. When I then move the hotspt so that the fi...

Samstag, 29. Juli 2023, 09:22

Forenbeitrag von: »Nupsi«

Loading 3D-object (OBJ) as plugin/layer possible?

Zitat von »kme« I experimented with that approach too, but in my tests, the quality of the generated hotspots was pixelated. If you find a way to improve that, I would be very interested in it. It´s a scaling-problem! Just use the depth-parameter to set the hotspot in 3d-space instead of scaling. Quellcode 1 2 3 4 5 6 7 8 9 10 l.enabled = false; l.type = "krpano"; l.depth = "500"; l.distorted = "true"; l.width = "2000"; l.height = "2000"; l.scale = "1"; l.tx = "0"; l.ty = "0"; l.tz = "200"; I u...

Freitag, 28. Juli 2023, 12:49

Forenbeitrag von: »Nupsi«

Loading 3D-object (OBJ) as plugin/layer possible?

Zitat von »lastromantik« There is no way in this version. Only one model at a time is supported. This issue has been long overdue and has been formalized as a wish that many people are waiting for. But we just have to wait for Klaus to realize the possibility to add more than one object/model). That´s what I thought But it´s always good to ask to be sure Zitat von »kme« I saw a post of tuur who did it with a hotspot: https://krpano.com/forum/wbb/index.php?p…&threadID=19184 In the second example...

Mittwoch, 26. Juli 2023, 07:51

Forenbeitrag von: »Nupsi«

Loading 3D-object (OBJ) as plugin/layer possible?

Hi there, I´m testing right now the possibilities with 3d-objects (OBJ) inside krpano. Loading a 3d-object as the scene itself is pretty easy and straight forward: Quellcode 1 2 3 <image> <depthmap url="model.obj" texurl="texture.jpg" hittest="true" scale="100" /> </image> But how can I add a one or more 3d-models above another pano-image? Unfortunately there is no documentation on this topic - or at least I did´nt find any. Thx in advance, Nupsi

Sonntag, 16. Juli 2023, 09:29

Forenbeitrag von: »Nupsi«

Pico 4 - does anybody got krpano to run in chrome?

Hi, the Quest/Quest 2 and the Rift S are working just fine with the desktop-version of Chrome. But I can´t get the Pico 4 to be recognized by Chrome SteamVR shows the Pico 4 as the standard device (cable or wifi) and the Pico 4 is working just fine with SteamVR-content. The SteamVR-web console shows the following error: Error creating VR renderer. ComposeLayerProjection: failed to submit view 0: VRCompositorError_SharedTexturesNotSupported CD3D11VRRenderer::Initialize(): Failed to create input l...

Dienstag, 11. Juli 2023, 08:23

Forenbeitrag von: »Nupsi«

Scrollarea on another scrollarea - scrolling does´nt work on mobiles :(

Hi, I´m using a main-scroller and on top another scrollarea with a text-layer. But the scrolling on the sub-scroller works really weird and is constantly moving the main-scroller beneath it too Right now I´m using this to disable the main-scroller while using the sub-scroller, but this does not work on mobiles: Quellcode 1 2 set(layer[sub_scroller].ondown,set(layer[main_scroller].draggable,false);showlog(true)); set(layer[sub_scroller].onup,set(layer[main_scroller].draggable,true);showlog(false)...

Dienstag, 11. Juli 2023, 07:58

Forenbeitrag von: »Nupsi«

Fullscreen area bug (only mobile - Chrome)

Hi, your example works fine on iPhone (Safari & Chrome) and Samsung Galaxy (Chrome & Samsung Internet). But you might set the fullscreen-button to toggle

Dienstag, 4. Juli 2023, 12:05

Forenbeitrag von: »Nupsi«

Access krpano-array from javascript??? SOLVED

console.log("myarr[0]",krpano.myarr.getItem(0)); console.log("myarr[0]",krpano.myarr.getItem(0).index); console.log("myarr[0]",krpano.myarr.getItem(0).value); Those are exactly the problems I had with the array. Did´nt know that the indices and values are inside another object Thanks again for clearing that out! note: getArray() doesn't get you [ "1", "2", "3" ], but only a js array of kprano "base" objects I´ll keep that in mind

Sonntag, 2. Juli 2023, 09:31

Forenbeitrag von: »Nupsi«

Access krpano-array from javascript??? SOLVED

Okay...I think I got where my mistake was. From the array-docu: array.getItem(name or index) Get an existing array item. Returns the array item object or null when the items doesn't exist. So krpano.my_array.getItem(1) does NOT return the value at index 1 but reads the object from the array which contains the value?! Because: var my_array = krpano.my_array.getArray(); console.log('Value_1='+my_array[1].value); returns the correct value at index 1. This array/object/index/value-thingy is really c...

Samstag, 1. Juli 2023, 10:13

Forenbeitrag von: »Nupsi«

Access krpano-array from javascript??? SOLVED

Hi and thanks for the explanation Unfortunately console.log(krpano.my_array.getItem(0)); just ends up in an error "krpano.my_array not defined" I really don´t get the difference between the krpano-array and a js-array. var my_array = krpano.get("my_array"); console.log('MY_ARRAY='+my_array); shows: MY_ARRAY=[Object object], which seems to me like an array?! But no matter how I try to access this array: console.log(my_array[1]); console.log(my_array.at(1)); the console only reports "undefined". B...

Freitag, 30. Juni 2023, 09:42

Forenbeitrag von: »Nupsi«

Toggle hotspots on/off

Correct^^ And you might also take a look at the for-loop Quellcode 1 2 3 4 5 6 7 8 9 10 set(hs_visible,true); (this var can be changed at any point and should be set befor calling the action!!!) set(hotspot_count,20); for(set(i,0), i LT hotspot_count, inc(i), txtadd(hs_name,'spot',get(i)); if(hs_visible == true, set(hotspot[get(hs_name)].visible,true); , set(hotspot[get(hs_name)].visible,false); );

Donnerstag, 29. Juni 2023, 11:18

Forenbeitrag von: »Nupsi«

Access krpano-array from javascript??? SOLVED

Hi, as Klaus said the krpano-arrays internally normal JS-arrays. But no matter what I try, I can´t access the krpano-array with JS. Here is what I´m trying to achieve: in krpano: Quellcode 1 2 set(test,'1-2-3'); txtsplit(get(test),'-',my_array); Now we have a krpano-array with [1,2,3]. But how can I access this array within JS? var new_array = krpano.get("my_array"); produces errors all over the place if I try to access this array new_array=[object Object] Uncaught TypeError: find.includes is no...

Donnerstag, 29. Juni 2023, 11:06

Forenbeitrag von: »Nupsi«

Format currency

Because krpano seems to be a little "bitchy" for this I´m using a JS-routine now: let Price = new Intl.NumberFormat('en-DE').format(Euro); Maybe this will help somebody else someday

Mittwoch, 28. Juni 2023, 09:28

Forenbeitrag von: »Nupsi«

Polygonal hotpot on flat image (map)

I´m not really sure what your problem is with polygonal hotspots on flat panos, but I have no problems with them. Maybe you want to check out Tuurs "Toolbox" with which you can also create poly-hotspots Or maybe you just need to create a flat pano from the image, instead of using the image as a layer?! Then all you need to do is drop the image into the krpano tools-tour maker. That way the image becomes a scene and you can use the hotspots with ath/atv-values. But watch out for distorted hotspot...

Dienstag, 27. Juni 2023, 18:13

Forenbeitrag von: »Nupsi«

Format currency

Hi, I needed a function which will change an integer into currency (12345678 => 12.345.678,00 €). It´s far from being elegant, but at least it´s working. Is there a better(shorter) way to do it and for any length without the need for endless if-routines? Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 <action name="format_currency"> set(price_in,%1); set(%2,); copy(price_length,price_in.length); for(set(i,0),i LE get(price_length),inc(i), subtxt(tmpvar,get(price_in),get(i),...

Samstag, 24. Juni 2023, 08:59

Forenbeitrag von: »Nupsi«

Photogrammetry - Vredesmolen

Very impressive

Montag, 19. Juni 2023, 14:05

Forenbeitrag von: »Nupsi«

Change hotkey for log-window?

You´re a genius, man The toggle-state makes it even easier Quellcode 1 <events onkeydown="if(keycode == 16, showlog(toggle));" />