Non-BRDF material

Non-BRDF material

Hello everyone,I'm impressed of the speed of Intel Embree, but Embree contains not enough materials for me and I would like to write several shaders but I'm not sure, is it possible to make not BRDF material.For example, I need a simplest shader that returns color = dot(I,N), where I is Eye verctor, directed from a shading point to a camera. N is a shading normal in a current shading point. I could easy implement it in renderman, vray or mental ray. But how to implement the shader like this in Embree?

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Embree is not designed to be a full featured rendering engine, the included renderer is merely a sample implementation to demonstrate on howto use the ray tracing kernels. As the renderer is physically based, non BRDF materials are typically problematic.What you could do without changing much code is putting a point light source at the camera location. However, as the Embree point light implements quadratic falloff you would have to modify it to add support for no falloff.A second alternative would be to extend the material class with some additional shade call that simply does your calculation. You would have to modify the integrator to call this additional function and add the returned radiance.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya