You are not logged in.

kilobytes

Beginner

  • "kilobytes" started this thread

Posts: 4

Location: Malaysia

Occupation: Virtual Tour Specialist

  • Send private message

1

Wednesday, February 16th 2022, 6:44am

Graphic Issue when using ox|oy|oz on some phone models

Hi there, I needed help.

I am having this graphic issue on some of the mobile device.


It happens whenever the ox|oy|oz is non zero. Feels like some of the vertex translation were inverted


So far it occurs on two known device:
  • HUAWEI Mate 20 X Chrome 95 WebGL
  • Samsung Note 9 Chrome 95 WebGL


KrPano version 1.20
<display depthmaprendermode="3dmodel" />
<display depthbuffer="true" />
Any idea is which level this issue occurs at? Hardware, WebGL or Software?


Any ways to rectify this while still being able to use ox|oy|oz ?
--- Edit ---
Upon further testing, it also occurs to tx | ty | tz , and it happens whenever I use tween().

Thanks
Kay Bin.

This post has been edited 2 times, last edit by "kilobytes" (Feb 16th 2022, 2:57pm)


2

Thursday, February 17th 2022, 10:33am

Hi,

the 3d-model itself is okay?
It looks like a vertex coordinate is invalid or zero?
And that problem happens only on these devices, others are okay?

Do you have a link to the example?

Maybe try enabling showing the polygons of the 3d-model for further checking:
https://krpano.com/docu/xml/#display.showpolys
(can be also done by enabling the debugmode, opening the log, and pressing the 'P' key)

Best regards,
Klaus

kilobytes

Beginner

  • "kilobytes" started this thread

Posts: 4

Location: Malaysia

Occupation: Virtual Tour Specialist

  • Send private message

3

Friday, February 18th 2022, 7:14am

Hi Klaus,


The 3D models are okay, this problem only occurs to 2 phone models so far, most other phone (about 95%) are doing well.:
  • HUAWEI Mate 20 X Chrome 95 WebGL
  • Samsung Note 9 Chrome 95 WebGL

I suspect that some of the vertex coordinate being inverted (sign bit) during tween() for ox,oy,oz.
What I notice is as long as ox,oy,oz are zero, vertex coordinate will looks fine.

I have enabled the debug mode and polys in the following sample link, have a look.

http://virtualtour.artsensestudio.com.my/swnkhouzedebug/


Sadly my client wants 100% compatibility, they asked me to disable all 3D effects. I personally wish this problem can be solved.

4

Friday, February 18th 2022, 4:38pm

Hi,

thanks for the example!
I was able to reproduce it on a Samsung S8.

And I found the actual problem - it was related to the 3d model and its parsing: There were unnecessary and unexpected white-spaces in the .obj file and that caused a wrong parsing and the adding of invalid vertices.

That happens on all systems, but some systems the triangles with the invalid (NaN value) vertices are simply ignored, while other systems seem to convert these NaN values to 0 and so cause these rendering errors.

The parsing problem will be fixed in the next krpano release.

To fix the obj files manually for the moment make sure that there are no spaces at the end of lines in the .obj files.
Maybe look for a texteditor that has a 'trim trailing whitespace' function to do that automatically.

Attached here a fixed model from your example: model_fixed.zip

Best regards,
Klaus

kilobytes

Beginner

  • "kilobytes" started this thread

Posts: 4

Location: Malaysia

Occupation: Virtual Tour Specialist

  • Send private message

5

Sunday, February 20th 2022, 6:18pm

Hello Klaus,

It works perfectly now.
Thank you for the detailed information provided, I am able to trim off the training white spaces myself, just in time for client project launching.
Am a big fan of KrPano for many years. Good work!
Kay Bin.