External Links

Time to get... embedded? Print
Written by iarwain   
Tuesday, 05 May 2009 00:50

Hi all,

 

Lately I've added fragment (pixel) shader support to orx. Shader's code is provided through the config system. This gives also some flexibility to define the shaders parameters. Thos parameters can be overridden in code, if allowed in the config file.

Shaders (up to 4) can be attached to any object or viewport and will be processed just after the corresponding object/viewport has been rendered. By default, every texture parameter for the shader will use its corresponding viewport/object's one. But in addition to that, any external texture can be provided to any shader.

 

Shaders have been tested on MacOSX and windows and looks like they're working great. As I'm running linux in a box under windows, I can't test shaders for linux.

 

If someone is willing to try it on linux, please sync the svn repository, compile orx and launch it. In the small playground called bounce, if you press the control key or the middle mouse button , it should toggle a shader that will add a coloured wave overlay on top of the playground. If you try it, please let me know if everything works fine under linux! Smile

 

The other big step that has been done lately is the new embedded mode for orx. Basically, when compiling the embedded mode, you can select a list of plugins that will be directly embedded in orx dll/so. When selecting the static mode, you can even have everything packed in the same executable.

 

This makes it very easy to redistribute your project and gives a good performance boost (around 50% in my test cases on windows) . But the best part is that it will allow orx to be easily ported on platform such as iPhone and PSP! Laughing

 

If you read this and are interested in helping with the iPhone or PSP port, please drop me a message through the forum (or in pm). I'm really excited with the idea of seeing orx running on PSP! =) A DS port might also be done, but it'll be a bit more tricky to do due to the hardware restrictions of the DS.

 

As usual, every feedback is welcome!

 

- iarwain

Last Updated ( Tuesday, 05 May 2009 00:53 )