You are not logged in.

1

Monday, January 2nd 2023, 6:40pm

What's wrong with depthmap?

Hello,

Using Unreal 5 panoramic capture (or similar plugin), I rendered panorama of the scene. And... it is Good!
Then I chose to render its depthmap. It was rendered, from the first glance it look OK as well, but when i'm trying to use it - i get some strange distortions :(
Any ideas, what's wrong and how could i fix it?

Thanks,
Tomas
blaztoma has attached the following images:
  • distort.jpg
  • SceneDepthSm.jpg
  • FinalColor.jpg

kme

Intermediate

Posts: 169

Location: Belgium

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

  • Send private message

2

Tuesday, January 3rd 2023, 11:35am

I used the most basic setup and did not see artifacts.

What does your scene code look like?

Here is mine:

Source code

1
2
3
4
5
6
7
8
9
	<view tx="0" ty="0" tz="0"/>

	<scene name="dollhouse" autoload="true" title="hello">
		<image>
			<sphere url="FinalColor.jpg"  />
			<depthmap url="SceneDepthSm.jpg" /> 
			
		</image>		
	</scene>


Result:


3

Tuesday, January 3rd 2023, 5:02pm

Hi,

that depthmap image has an uncommon depthmap-mapping.

krpano uses a mapping where the pixel-values scaling a unit-sphere, but your depthmap-image seems to define a distance directly with an additional exponentiation.

In krpano 1.21 (release soon) there are additional depthmap setting, there such depthmap-images can be used.

Best regards,
Klaus

4

Friday, January 6th 2023, 6:43am

I used the most basic setup and did not see artifacts.

Thank You for efforts and answering!If You are standing in a middle of a scene - the artifacts won't be visible.
Btw, what a dollhouse looks like?

Tomas

5

Friday, January 6th 2023, 6:50am

krpano uses a mapping where the pixel-values scaling a unit-sphere, but your depthmap-image seems to define a distance directly with an additional exponentiation.
In krpano 1.21 (release soon) there are additional depthmap setting, there such depthmap-images can be used.
Thanks, Klaus!
At least it is clear that the problem is a depthmap.

Eagerly looking forward a new release :)

kme

Intermediate

Posts: 169

Location: Belgium

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

  • Send private message

6

Friday, January 6th 2023, 10:36am


Btw, what a dollhouse looks like?

Tomas


You can have a look *g*

https://i.imgur.com/8uIvzuT.mp4

7

Friday, January 6th 2023, 1:04pm

https://i.imgur.com/8uIvzuT.mp4
Thank You very much!
Yes, I see this implementation has the same problem - cube is distorted.
There are no artifacts inside because of the offset.

Anyway - thanks for trying out!
Tomas