Strategies and Techniques for Real-Time Shaders. Neil Hazzard Software Engineer Autodesk, Media and Entertainment. Overview. Recap from GDC 2005 What’s new in 3ds max 8 Scene Effects Extending effects with MAXscript Tips Lots of Demos…. Quick Recap from GDC 2005.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Autodesk, Media and Entertainment
Easier support for max specific code, by using #ifdef _MAX_
#include "quad.fxh“ //helper file for drawing quads
string ParamID = "0x003"; //tells the system what parser
//Macro to define the Scene texture and sampler
//Simple pixel shader that simply outputs the input scene data
float4 OutputPS(VertexOutput IN) : COLOR
float4 texCol = float4(tex2D(SceneSampler, IN.UV).xyz,1);
// Do anything else here
Auto Generated UI
extends:DirectX_9_Shader replaceUI:true version:1
on create do
-- setup initial material
effectfile = GetDir #maxroot
effectfile = effectfile + "\\maps\\fx\\StandardFX.fx"
delegate.effectfile = effectfile
ambientlock = true
on b_topDiffuseClr pressed do
b = selectbitmap caption: "Top Diffuse Map"
if b != undefined then
delegate.g_TopTexture = b
b_topDiffuseClr.text = b.filename
topdiffuseMap = b --defined as type:#bitmap