Finally I created a mesh out of particles using Marching Cubes and Mesh Smoothing (Laplacian).
Unfortunately some “black artefacts” occur.
For a reproducing test I built Advanced Sample “optixIntro_07” from original files using the materials as defined there.
And then I only initialize “geoNested” with my mesh (no other geometry).
As you see in the screenshot, the normals seem to be ok. Tangents are not used in the closesthit program, so I don’t provide any.
TexCoords are all initialized to 0,0,0
the mesh is in .OBJ format (RH CCW) which is the same as mesh handling in the samples are using. File: Test250.obj
(I added a simply .OBJ loader)
For a very small piece of the mesh I rendered it with different materials from optixIntro_07 sample.
On Water, Glass and Tinted mirror material the artefacts occur; they do not occur, when rendered with lambertian material.
These black parts also appear when using the default environment map in the sample.
No denoiser used.
the mesh is very simple organized (each vertex has exactly one vertex normal and they are used always coupled):
v x y z
vn x y z
f i//i –
What could still be wrong with the mesh?
my system: OptiX 5.1.1 CUDA 9.0 Win10PRO driver 398.36 GTX 1050 2GB VS2017 (toolset v140 of VS2015)
(the particles were generated through NVIDIA Flex)
Test250.zip (10.4 KB)