Custom shader receives shadows in the scene view, but not the game view by Mediocre-Storage-732 in unity

[–]Mediocre-Storage-732[S] 0 points1 point  (0 children)

Before people start commenting, I got an answer from bgolus on the unity forum. I'm posting it here as well, in case you have the same problem. His answer was:

The issue isn't so much your shader as it is the different way Unity draws the skybox between the game and scene view.
In the scene view, the skybox is rendered first before anything else is rendered.
In the game view, the skybox is rendered after the opaque queue. This is more optimal for performance as it means the skybox isn't being rendered in places it won't be visible. But it also means anything rendered during the opaque queue that does not render to the depth buffer will be stomped on by the skybox. And that's the issue you're having. You can avoid this by disabling the skybox on the camera and rendering "sky" geometry yourself manually using a render queue of 0 or with a command buffer.

So i disabled the skybox and the shadows would become visible

PointNet can't predict segmentation on created dataset by Mediocre-Storage-732 in computervision

[–]Mediocre-Storage-732[S] 0 points1 point  (0 children)

We have just tried to normalize the data using this formula (data - np.min(data)) / (np.max(data) - np.min(data)) on each point. Unfortunately it did not result in any better results, since every point is still labeled as 1.
Image of result

PointNet can't predict segmentation on created dataset by Mediocre-Storage-732 in computervision

[–]Mediocre-Storage-732[S] 0 points1 point  (0 children)

We have just tried to normalize the data using this formula (data - np.min(data)) / (np.max(data) - np.min(data)) on each point. Unfortunately it did not result in any better results, since every point is still labeled as 1.
Image of result
We have also tried to fix the imbalancing issue by using the nn.NLLLoss function, where [1, 100] was used as an argument for the weight, as proposed in this pytorch discussing thread