Game Development Community

Effect Files to be auto-loaded

by Andy Hawkins · in Technical Issues · 03/01/2007 (11:25 pm) · 2 replies

I'm trying to make an export / import function where I world build my scene in Max / Lightwave, export the world building scene to a text file and any objects I want a shader applied to are designated in the text file.

Then my dx9 app parses the text file and recreates the scene in a dx9 environment.

However from what I have learnt from effect files, is sometimes you have to set global vars such as the camera transform and external textures from the application.

Is it possible to have directx load any effect file regardless of whether it needs global vars set or not? I'm writing it from the artists point of view where they can view their max / lightwave scene in dx9 and check that shaders look like they planned.

#1
03/02/2007 (8:56 pm)
Answered my own question... make sure shaders and application are SAS (Standard Annotation and Semantics) compliant. You can read about it here...
SAS For Shaders
#2
03/02/2007 (9:39 pm)
That's cool.. wish i had a clue about that stuff.