Thanks for the feedback, this is exactly the kind of documentation /
integration issues we hoped to clarify by having an example
implementation out there. I think these are all areas where the spec
is just out of sync with the implementation.
I don't think we ever had a axis/angle emission closure, in stdosl.h we have:
closure color emission(float inner_angle, float outer_angle) BUILTIN;
closure color emission(float outer_angle) BUILTIN;
Both of those are intended to work off of the geometric normal of the
emitter. The spec should probably be updated, or we may want to
revisit exactly what this should be (currently neither our renderer at
Sony, nor testrender support these variants). If you have ideas about
what should be standardized here (if anything) let us know. We
generally try to standardize things that are well documented in papers
that everyone is likely to want to have, and leave fancier closures to
be renderer specific.
The translucent closure should work, could you send me your scene and
shaders so I can debug it? We'll turn it into a testsuite entry to
make sure it keeps working.
It sounds like we just forgot to document the holdout closure in the
spec. We do use it in our renderer. Its purpose is simply to be able
to "punch holes" in the alpha channel. The code "Ci = holdout();" for
example would give you an alpha channel of 0 where that object is.
Since testrender only outputs RGB images without alpha it didn't make
sense to support this, but I can at least make the closure be
recognized at runtime.
> --
> You received this message because you are subscribed to the Google Groups "OSL Developers" group.
> To post to this group, send email to
osl...@googlegroups.com.
> To unsubscribe from this group, send email to
osl-dev+u...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/osl-dev?hl=en.
>