ShaderFX to Sunburn Deferred Rendering?

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 1
SunBurn_Community_Licensee
amunyoz Posted: 02-22-2011 11:24 AM

Hi, I'm begining to work with Sunburn Pro and the Custom Effects Example. I wonder if there is any easy way to translate or adapt FX shaders made with ShaderFX (plugin for 3dMax) for Sunburn Deferred rendering system.

I can see some of the variables (see picture) of the shader on the Sunburn editor, but I cannot make it work properly when I combine ambient and diffuse passes.

I see that a Deferring Node exist on ShaderFX but I didn't find any documentation about it. Any of you guys have experimented with that node in ShaderFX??

 Thanks.

 

Top 10 Contributor
Posts 780
Employee
SunBurn_Studio_Licensee

Hi,

It doesn't seem like anyone has tried to do this yet.  While it's very easy to import any shader into a SunBurn custom effect, the shader will need to follow some rules to work correctly.

Forward rendered shaders simply have to expose via SAS bindings or common semantics (outlined in the SAS and Semantics Supported Bindings article) their transforms and light variables (if the shader uses lighting).

Deferred rendered shaders provide these as well, and are also required to provide separate techniques that perform rendering for the g-buffer, depth-optimization, final, and shadow map generation passes.

The sample shaders in the Custom Effects example are a great starting point.  They're very well commented and explain how each member and technique is exposed and what it's used for.

Let me know if this helps!

Page 1 of 1 (2 items) | RSS