Page 1 of 1

Dark poly spot

Posted: Fri Sep 11, 2020 2:45 pm
by Sharlybg
I struggling with a dark poly spot in my model in both blendluxcore 2.4 / 2.5 on CPU / GPU not in Cycles:
darkspot.jpg
Dade PM you with the file.

Re: Dark poly spot

Posted: Sun Sep 13, 2020 2:25 pm
by Dade
Exporting the scene to file system and rendering with LuxCoreUI works fine. The problem is visible only inside Blender.

Try to isolate the polygon with the problem and erase everything else.

Re: Dark poly spot

Posted: Wed Sep 16, 2020 9:42 am
by Sharlybg
Dade wrote: Sun Sep 13, 2020 2:25 pm Exporting the scene to file system and rendering with LuxCoreUI works fine. The problem is visible only inside Blender.

Try to isolate the polygon with the problem and erase everything else.
Another user is runing in the same issue : viewtopic.php?f=10&t=2584&p=25383#p25383

here is the mesh with isolated wrong surfaces :
Darkspot bug.blend
(790.35 KiB) Downloaded 172 times

Re: Dark poly spot

Posted: Wed Sep 16, 2020 10:55 am
by Dade
Sharlybg wrote: Wed Sep 16, 2020 9:42 am
Dade wrote: Sun Sep 13, 2020 2:25 pm Exporting the scene to file system and rendering with LuxCoreUI works fine. The problem is visible only inside Blender.

Try to isolate the polygon with the problem and erase everything else.
Another user is runing in the same issue : viewtopic.php?f=10&t=2584&p=25383#p25383

here is the mesh with isolated wrong surfaces :
Darkspot bug.blend
The triangles have NaN UV coordinates:

Code: Select all

ply
format ascii 1.0
comment Created by Blender 2.83.5 - www.blender.org, source file: 'Darkspot bug.blend'
element vertex 96
property float x
property float y
property float z
property float nx
property float ny
property float nz
property float s
property float t
element face 24
property list uchar uint vertex_indices
end_header
-0.291856 -0.093864 0.682044 -0.032319 -0.999451 0.000000 nan nan
-0.300529 -0.093583 0.498582 -0.032319 -0.999451 0.000000 nan nan
-0.264689 -0.094742 0.507916 -0.032319 -0.999451 0.000000 nan nan
-0.263646 -0.094776 0.759046 -0.032319 -0.999451 0.000000 nan nan
-0.300529 -0.093583 0.498582 -0.032319 -0.999451 0.000000 nan nan
-0.301779 -0.093543 0.299369 -0.032319 -0.999451 0.000000 nan nan
-0.264892 -0.094736 0.299369 -0.032319 -0.999451 0.000000 nan nan
-0.264689 -0.094742 0.507916 -0.032319 -0.999451 0.000000 nan nan
[...]
This is a .ply file directly exported from Blender without the use of any LuxCore related code. It is a Blender bug as far as I can see.

You can report the problem to Blender developers by providing this file a telling them to export in .ply format and check the UV coordinates (aka ST coordinates).
However they may be not able to track the problem from there because the NaN may be the result of the process used to build the mesh (so they may be unable to track what tool is broken and has generated the NaN).

Re: Dark poly spot

Posted: Wed Sep 16, 2020 11:54 am
by Sharlybg
You can report the problem to Blender developers by providing this file a telling them to export in .ply format and check the UV coordinates (aka ST coordinates).
Thanks Dade it is done here : https://developer.blender.org/T80835

Re: Dark poly spot

Posted: Wed Sep 16, 2020 12:26 pm
by Leandro Oliveira
What does NaN mean?

Re: Dark poly spot

Posted: Wed Sep 16, 2020 12:52 pm
by Sharlybg
Answer from brecht :
However they may be not able to track the problem from there because the NaN may be the result of the process used to build the mesh (so they may be unable to track what tool is broken and has generated the NaN).

This is correct. This bug report requires steps to get a mesh into a state where UVs are NaN, otherwise we can't investigate it.

Re: Dark poly spot

Posted: Wed Sep 16, 2020 1:07 pm
by Sharlybg
Ok so a simple unwrapp can fix the issue :D And it work !

Re: Dark poly spot

Posted: Wed Sep 16, 2020 1:12 pm
by B.Y.O.B.
Leandro Oliveira wrote: Wed Sep 16, 2020 12:26 pm What does NaN mean?
Not a Number.
It is usually the result of an invalid computation, e.g. division by zero.

Re: Dark poly spot

Posted: Wed Sep 16, 2020 1:23 pm
by Leandro Oliveira
Thanks, B.Y.O.B.! ;)