Closed paulmelis closed 1 year ago
Hi Paul, apologies that the documentation has gotten a bit confusing, regarding the case
of the material names. OSPRay 2.x+ names are, indeed, different than the older OSPRay 1.x and it appears the tables were updated (they look correct), whereas the prose was not.
Yes, map_ns
and map_d
are supported by the OBJ material. The code for those can be found here
https://github.com/ospray/ospray/blob/fdda0889f9143a8b20f26389c22d1691f1a6a527/modules/cpu/render/materials/OBJ.cpp#L45
https://github.com/ospray/ospray/blob/fdda0889f9143a8b20f26389c22d1691f1a6a527/modules/cpu/render/materials/OBJ.cpp#L51
and here
https://github.com/ospray/ospray/blob/fdda0889f9143a8b20f26389c22d1691f1a6a527/modules/cpu/render/materials/OBJ.ispc#L29
https://github.com/ospray/ospray/blob/fdda0889f9143a8b20f26389c22d1691f1a6a527/modules/cpu/render/materials/OBJ.ispc#L50
I'll file an internal issue against documentation and we'll get it cleaned up. Sorry for any confusion.
Apparently, the correct names are
map_kd
,map_ks
(fully lowercase). I don't see any references tomap_Ns
,map_ns
andmap_d
in the code, as those supported at all?