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.

Tuur

Sage

Posts: 3,769

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

161

Thursday, March 16th 2023, 1:35pm

Hi Klaus,

when I generate a js with this latest version it says the build date from yesterday.

Not so important I guess.. but a bit confusing perhaps.

Tuur *thumbsup*

162

Thursday, March 16th 2023, 2:26pm

when I generate a js with this latest version it says the build date from yesterday.

Are you sure to use the latest version?
Or the browser has cached a file?

Because that should be not possible and I have just checked everything again and it's okay...

Tuur

Sage

Posts: 3,769

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

163

Thursday, March 16th 2023, 2:29pm

strange.. now it is fine..
Also the js that I generated with the 3-16 version said 3-15.. but now it seems fine..

Sorry!

Tuur *thumbsup*

164

Thursday, March 16th 2023, 4:57pm

Sorry, I can't reproduce this... in any version... and there were no changes that should affect the css padding... *confused*

with prev-1: the padding is "3px 8px 3px 8px"

with prev-2: the padding is "2px 2px 2px 2px"

all files are identical - only "krpano.js" changed

Jürgen

165

Friday, March 17th 2023, 7:58am

Do you have an example where this can be tested?
The code from above is not enough for reproducing...

166

Friday, March 17th 2023, 11:03am

Hi,
new infos - the problem with padding is only AFTER the first DRAG on the panorma

I have added in one of your examples (-> tooltips) the tour_edithelper.xml with the same padding problem like my tooltips

screen recording:
https://360.articulate.com/review/conten…9523f272/review

download:
https://www.feldmannmediagroup.com/test/…es/tooltips.zip

Jürgen

167

Friday, March 17th 2023, 2:23pm

it seems the rz rotation (camroll or bring ear to shoulder) of the flying is missing since 1.21.
2 barebones to be watched in vr headset:
I'm testing the version with my plugin, I'm facing a problem that I don't understand:
in desktop verion, everything is OK, but in VR the different hotspot crees are not positioned correctly, here is an example.

Please try the new pre-release from above.

Hi Klaus,

Thanks for your answer, unfortunately the problem is still there

PanoramicWEB

Intermediate

Posts: 191

Location: Turkey

Occupation: 360 Software and Hardware Developing

  • Send private message

168

Friday, March 17th 2023, 5:51pm

Hi Klaus,
Perfect works again, congrats.
Do you have a plan for merge multiple .obj file in same scene?
https://products.aspose.app/3d/merger/obj like this idea? but editor will be krpano.



Thanks.

169

Friday, March 17th 2023, 5:58pm

Some properties from 'css' attribute are not applied to text layers when the 'cssstyles' attribute is set

Hi Klaus,

in 1.21 (2023-03-16) some properties from the 'css' attribute are not applied to text layers when the 'cssstyles' attribute is set (it worked as expected in 2023-02-09). Some properties like 'background-color' work, but others like 'color', 'font-family' and 'font-size' are filtered.
Please see this test case: [redacted]

This is the complete code to reproduce the issue:

Source code

1
2
3
4
5
6
7
8
9
10
11
<cssstyles>
<![CDATA[
    .test {}
]]>
</cssstyles>

<layer name="text1" type="text" text="test 1" x="30" y="30" cssclass="test"
    css="background-color: #a8a8a8; color: #ff0000; font-family: Times New Roman, serif; font-size: 24px;" />

<layer name="text2" type="text" text="test 2" x="30" y="80"
    css="background-color: #a8a8a8; color: #ff0000; font-family: Times New Roman, serif; font-size: 24px;" />


Kind regards,
Christian

This post has been edited 1 times, last edit by "ctt360" (Mar 22nd 2023, 9:10am)


kme

Intermediate

Posts: 255

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

170

Friday, March 17th 2023, 6:08pm

Hi Klaus,
Perfect works again, congrats.
Do you have a plan for merge multiple .obj file in same scene?
https://products.aspose.app/3d/merger/obj like this idea? but editor will be krpano.



Thanks.


See this post:
https://krpano.com/forum/wbb/index.php?p…89694#post89694

San7

Professional

Posts: 608

Occupation: coding in krpano

  • Send private message

171

Saturday, March 18th 2023, 7:13am

looktohotspot gives warning

I made an example

Source code

1
2
3
4
<layer name="test" type="text" align="top" html="looktohotspot(hs1)" 
   onclick="looktohotspot(hs1); showlog(true)"/> 
	
<hotspot name="hs1" url="red.png" ath="-50" /> 

but a warning pops up and there is no animation with the centering of the hotspot
WARNING: lookto() - invalid parameters! *whistling* *question*

This post has been edited 1 times, last edit by "San7" (Mar 18th 2023, 7:50am)


kme

Intermediate

Posts: 255

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

172

Saturday, March 18th 2023, 8:24am

Good morning San7 *cool*
Confirmed. I had this also in the first preview of 1.21, but somehow forgot to report it.

Just add a second parameter (fov) to work around it for now... Does break compatibility with 1.20 though as there it seems to work without adding parameters.

gr,
K.

San7

Professional

Posts: 608

Occupation: coding in krpano

  • Send private message

173

Saturday, March 18th 2023, 10:09am

Good morning San7 *cool*
Confirmed. I had this also in the first preview of 1.21, but somehow forgot to report it.

Just add a second parameter (fov) to work around it for now... Does break compatibility with 1.20 though as there it seems to work without adding parameters.

gr,
K.

Hello, yes this solves the problem, thanks!
But this should work when only the name is given.

kiennv

Beginner

Posts: 9

Occupation: Software Developer

  • Send private message

174

Tuesday, March 21st 2023, 11:42am

bgborder is buggy on hotspot

I create an image hotspot with onhover and onout event like this:

Source code

1
2
window.krpano.set(`hotspot[name].onhover`, () => { window.krpano.set(`hotspot[name].bgborder`, '50 0xFF0000 1.0 dashed') });
window.krpano.set(`hotspot[name].onout`, () => { window.krpano.set(`hotspot[name].bgborder`, '') });

the result is the hotspot is only bigger everytime it's hover and no border display at all,
the extra size is exactly equal to the border size.
Has anyone encountered this problem?


Ecommerce virtual tour: https://www.virtualshop.me/
Online tour editor: https://vt.360tovisit.com

175

Tuesday, March 21st 2023, 1:59pm

I create an image hotspot with
...
hotspot[name].bgborder`, '50 0xFF0000 1.0 dashed'
...
the result is the hotspot is only bigger everytime it's hover and no border display at all,
the extra size is exactly equal to the border size.

Hi,

the bgborder setting isn't supported for WebGL 'image' hotspots yet.
Currently only layers, CSS3D-hotspots and textfield-hotspots (WebGL and CSS3D) are supporting it.

The layout/size-calculation is already done, but the WebGL-hotspot-rendering doesn't draw the borders yet.
But this is in works and will come in one of the next versions.

Best regards,
Klaus

kiennv

Beginner

Posts: 9

Occupation: Software Developer

  • Send private message

176

Tuesday, March 21st 2023, 2:59pm

Hi,the bgborder setting isn't supported for WebGL 'image' hotspots yet.
Currently only layers, CSS3D-hotspots and textfield-hotspots (WebGL and CSS3D) are supporting it.The layout/size-calculation is already done, but the WebGL-hotspot-rendering doesn't draw the borders yet.
But this is in works and will come in one of the next versions.Best regards,
Klaus


thanks Klaus!
looking forward to see it soon *squint*
Ecommerce virtual tour: https://www.virtualshop.me/
Online tour editor: https://vt.360tovisit.com

177

Tuesday, March 21st 2023, 11:08pm

i have tested the new preview-2 and I have new error - padding did't work with my tooltips anymore (no problems with preview-1)
in 1.21 (2023-03-16) some properties from the 'css' attribute are not applied to text layers when the 'cssstyles' attribute is set (it worked as expected in 2023-02-09). Some properties like 'background-color' work, but others like 'color', 'font-family' and 'font-size' are filtered.
WARNING: lookto() - invalid parameters!


Hi,

related to these reports - there is new 1.21 release out (build 2013-03-21) with these fixes:
  • Fix: A bug in the textfields style-parsing-cache caused various text/style/layout side effects.
  • Fix: hotspot.center() reported an invalid size for image hotspots (calling looktohotspot() without fov failed because of this).
  • Fix: The hotspot hitd distance wasn't set to the correct depth when the depthbuffer setting wasn't enabled.
  • Fix: Ensure that the textfield html and css variables are always Strings (and not Numbers).
  • Fix: copy_to_clipboard.xml - copy to clipboard didn't work in Fullscreen mode.
  • Fix: showtext.xml - flickering text position at the screen edges when clipping is enabled.

Best regards,
Klaus

178

Wednesday, March 22nd 2023, 2:09pm

DeepLink

Hi all. For me, the main problem is that the deep link stopped working. *cry*

179

Wednesday, March 22nd 2023, 2:15pm

Hi all. For me, the main problem is that the deep link stopped working. *cry*

This is already fixed - just use the latest 1.21 version.

San7

Professional

Posts: 608

Occupation: coding in krpano

  • Send private message

180

Thursday, March 23rd 2023, 11:43am

for disables another hotspot

Klaus, thanks for the latest fixes!

I also did a test and strange behavior, when you click on the button, the hotspot with the letter "i" should be shown and hidden, and the hotspot with the arrow is hidden.
Although the trace outputs the name of the hotspot with the letter "i"
if you put a "set" instead of "tween", then it works correctly

example

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<layer name="test1" type="text" align="top" x="-30" html="on infohs" onclick="hid_show_hs(1)"/> 
<layer name="test2" type="text" align="top" x="30"  html="off infohs" onclick="hid_show_hs(0)"/> 
	
  <hotspot name="infohs" keep="true" type="image" url="i.png" /> 

  <hotspot name="hsp_1"  type="image" url="arrov.png"  ath="-30"   />
	
  <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(hs.alpha, get(stat));
	  );
	);
  </action>

Similar threads