Sie sind nicht angemeldet.

1

Dienstag, 18. April 2023, 17:09

Problems with the depth map

Hello everyone,

Unfortunately I have a big problem when creating a 360° tour.
The depthmap doesn't work the way I want it to in the browser.
In the Dollhouse View everything is extremely pixelated, where can that come from?

Also in the tour itself I have pixel errors with all objects that are far away.

I'm attaching two pictures so you can see what I mean.

What could be the reason?
What information can I give you to help me?

I created the 3d model with Bledner and exported it as an OBJ.
The programming is not by me, I would not be able to do that, but by kme, a user here.
Thank you very much for your examples, they really help a lot! :)

Actually, I only built the 3D model and almost finished texturing it.
And because I'm a curious guy, I wanted to know how it looks in the browser, even if it's not ready yet.

I would like to apologize for my bad English, I'll let Google translate it all... ;)
»Woiferl« hat folgende Bilder angehängt:
  • 1.jpg
  • 2.jpg

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

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

  • Nachricht senden

2

Dienstag, 18. April 2023, 17:25

its because of geometry overlapping.
put the hotspots some pixels away from the walls.
also if you have a clean model, set subdiv to 0 for the depthmap.

do you have a link to the tour?

and sorry for the brief answer, i m on my phone *cool*

3

Dienstag, 18. April 2023, 17:53

Thank you for this information! *smile*
So far I haven't gotten around to worrying about any programming, so far I only have the 3D model, which I'm still working on.

I'm still a long way from getting to the hotspots in programming.
Without your examples, I would never have thought of redesigning my private website (photography) like this. *thumbsup*

No, this tour isn't online yet, so I don't dare put it online.
So much is still missing...

If I disable all hotspots in the XML file then the errors should look fine for the first time I think.

greets, Woiferl

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

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

  • Nachricht senden

4

Dienstag, 18. April 2023, 18:00

Yes, taking away the hotspot locations will help with the pictures distorting the model.
Ans sundiv=0 probably with the boards at the bottom around the walls...

good luck and if you need help, just reach out!

btw - have you seen artplacer *rolleyes* and the video?
https://krpano.com/forum/wbb/index.php?p…89922#post89922

5

Dienstag, 18. April 2023, 18:04

Thank you very much for your help! *smile*

6

Mittwoch, 19. April 2023, 10:13

Hi,

these artifacts are called z-fighting and happen when parallel 3d-planes are very near to each other.

Or in detail: 'too near' for the depthbuffer precision to decide which one is in front or behind.

But there are ways to improve that:

The depthbuffer has typically a precision of 24bit - and these 24bit are spread over a given range/distance - in krpano defined by the display.depthrange setting.

That means by adjusting that setting and reducing it to values that match/fit your model, your needs, this could be improved.

E.g. try this setting:

Quellcode

1
<display depthrange="5,100000" />



Additionally to that, there is a special depthoffset setting for hotspots. With that, an extra offset can be added to the depthbuffer values for the hotspot rendering.

E.g. when a wall and a hotspot are exactly at the same position, then there will be again the z-fighting problem, because the renderer can't know which one is in front or behind. And by adding a small offset here, this problem can be solved. This depthoffset affects only the rendering, but doesn't change the actual position itself.

E.g. to move the hotspot more near to the viewer:

Quellcode

1
<hotspot ... depthoffset="-50" />


Best regards,
Klaus

7

Mittwoch, 19. April 2023, 13:53

Thanks for the answer Klaus.

I have now tried both, everything that has to do with hotspots, I have disabled.
I also tested the depth range. from 0.01, 100000 to 10.00000.
Unfortunately, the event is always the same, everything is pixelated.

I'll add the code here, maybe I'm doing something wrong?
I haven't changed anything except in the "tour.xml" from kme.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<krpano version="1.21" title="krpano Gallery Template - by kme" debugkeys="false" showerrors="false" debugmode="false	" > 

	<!--<include url="image-hotspots.xml" />
	<include url="image-hotspots-scripts.xml" />	
	<include url="floor-hotspots.xml" />	
	<include url="floor-hotspots-scripts.xml" />
	<include url="pano-hotspots.xml" />
	<include url="pano-hotspots-scripts.xml" /> -->
	
	<include url="depthmap_navigation_kme.xml" />
	<include url="webvr.xml" />
	<joystick fixed="true" degrees="30" />

	
	<display depthrange="5,100000" depthbuffer="true" />
			 
	<view tx="0" ty="-165" tz="0"/>


	<scene name="dollhouse" autoload="true">
		<image>
			<sphere url="gallery_floorplan_texture.jpg" />
			<depthmap url="gallery_floorplan2.obj" hittest="true" rendermode="3dmodel" scale="100" textured="true" waitforload="true" center="0,0,0" axis="+x+y+z"/> 
		</image>
	</scene>

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

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

  • Nachricht senden

8

Mittwoch, 19. April 2023, 13:59

any chance to put your tour online? would be so much easier to see what is going on in the model...

and nice feedback klaus, i didnt know about these settings, i will have a closer look at them to and see if they are useful to embed in my galleries...

9

Mittwoch, 19. April 2023, 14:05

I can possibly upload it tonight, I'm currently rendering the lightmap for the model and I'm still on the road for work.
I'll post the link here in the forum.

10

Mittwoch, 19. April 2023, 20:52

I have now uploaded the tour, but unfortunately I get an error message.

FATAL ERROR:
UNAUTHORIZED DOMAIN

What does that mean? I have never seen this message before?

Link:
www.wnlpd.com/galerie/tour.html

If i open the tour.hmtl local on my PC, everything is working fine....

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

11

Mittwoch, 19. April 2023, 21:09

Hi,

seems you use a restricted tour.js/viewer.
Is it your own krpano license?
Best is to open de krpano tools and bake a new tour.js with the protect tool.

Link is dead now btw.

Hope it helps,
Tuur

12

Mittwoch, 19. April 2023, 21:21

thanks Tuur,
i`ll check it tomorrow.
The Link is online again...

the Tour is written by kme, i use his files, maybe this is the failure?

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

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

  • Nachricht senden

13

Mittwoch, 19. April 2023, 21:29

If the tour.js is from one of the templates, then yes, it will work on localhost but not on any hosted domain.

Just replace tour.js with your own tour.js and the problem will be resolved.

14

Mittwoch, 19. April 2023, 22:35

I have now installed krpano v1.21, added my own .js file and lo and behold, everything works wonderfully,

duíe pixel errors have also disappeared.
Thanks for the help to all of you! *smile*

here is the link to the tour again, but it's far from finished...

kme

Fortgeschrittener

Beiträge: 310

Wohnort: Belgium

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

  • Nachricht senden

15

Mittwoch, 19. April 2023, 22:57

Well done!!

16

Donnerstag, 20. April 2023, 15:42

I had promised to post a picture to him since I was too stupid to send it to him in a private message...

@kme, here is the picture of the promised hotspot.
As I wrote, I deactivated all your hotspots and only increased the first one (middle) and, as Klaus said, used the depthrange="5.100000".
Everything plays wonderfully, with the depth range it obviously doesn't need any distance to the walls or other objects.

Greetings,
wolfgang
»Woiferl« hat folgendes Bild angehängt:
  • Hotspot.jpg

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Woiferl« (20. April 2023, 16:24)