Decora <> Open Shading Language?

Philipp Dörfler phdoerfler at gmail.com
Thu Feb 14 02:31:55 PST 2013


Given that they are mentioning the GPU in the roadmap at least indicates that it would possible to write such a backend. Thus my suggestion to take advantage of the intermediate bytecode emitted by OSL and to convert this bytecode to D3D and OpenGL shaders using Decora.

I'm neither a Decora nor an OSL expert and I especially do not know how complex OSL (or that subset of OSL) is or if it is suitable for the purposes Decora is aimed at. For example: Decora allows to call getEffect() [1]. I just assume there is a comparable way of doing that in OSL.
Having said that, I imagine it would be pretty awesome to have "NEW: Support for Open Shading Language in Decora" in the feature list for JavaFX 42 given that JavaFX 2 seems to be all about re-using existing knowledge and not having to learn new languages.

[1] http://hg.openjdk.java.net/openjfx/8/controls/rt/file/7507d0eacf70/decora-runtime/jsl/BoxBlur.jsl

Just my six cent,
~ Philipp

Am 14.02.2013 um 11:06 schrieb Tom Schindl <tom.schindl at bestsolution.at>:

> If I read this right they are running the shader stuff on the CPU and
> not on the GPU.
> 
> In the roadmap I read:
> --------8<--------
> ...
> We would like to implement alternate "back ends" that would allow
> translation of OSL shaders (and shader networks) into code that can run
> on GPUs or other exotic hardware (at least for the biggest subset of OSL
> that can be expressed on such hardware). This would, for example, allow
> you to view close approximations to your OSL shaders in realtime preview
> windows in a modeling system or lighting tool.
> ...
> --------8<--------
> 
> Tom
> 
> Am 14.02.13 10:49, schrieb Philipp Dörfler:
>> Here is the link:
>> [1] http://opensource.imageworks.com/?p=osl
>> 
>> Am 14.02.2013 um 10:48 schrieb Philipp Dörfler <phdoerfler at gmail.com>:
>> 
>>> Greetings,
>>> 
>>> I stumbled upon the Open Shading Language [1] which seems to be an already established standard and uses LLVM to optimize shaders. I wonder why this is not used instead of / as a backend for Decora. Might you please shed some light on that?
>>> 
>>> Cheers and thanks in advance
>>> ~ Philipp
>> 
> 
> 
> -- 
> B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
> ------------------------------------------------------------------------
> tom schindl                 geschäftsführer/CEO
> ------------------------------------------------------------------------
> eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
> http://www.BestSolution.at                      phone    ++43 512 935834



More information about the openjfx-dev mailing list