Dreamotion3d: Shader file .fx - Editor (+shader files; ATI)
Verfasst: 17.05.2008 01:49
1. sorry, wegen Englisch aber ich wollte jetz um die Zeit nichtmehr alles wieder auf deutsch umschreiben, um's vom einen Forum zum andern verständlich zu machen
(die Dreamotion-forum leute können nur Englisch und Französisch o_O)
aber: wer programmiert muss irgendwann auch englisch mögen

2. Thema:
Dreamotion nimmt die DirectX-shader Dateien ".fx" für Glühen, Parallaxmapping, bumpmapping, Textureffekte halt... her.
Hier eine Anleitung, wie man solche herstellt (ma kann auch einfach
Introduction:
i was searching for a tutorial (and program) to create normalmaps, and found, fourtunately, a FX- Effect-editor from ATI.
just download, read and enjoy:
DOWNLOAD:
http://ati.amd.com/developer/ashli.html
READ:
ps: you must open the .fx - shader -files with any text editor, to see the shader-variables, and code (and to magnify the shader-skript-code) and... the editor is quite a little bit old ^^.. but the effects are great
(maybe not word^^, it will save as a non- text-file, cause it doesn't know that it should save it as a text-only file (as .txt) .)
ENJOY:
[ati even has got normal, and bumpmap-editors and other funny stuff on their site
]
-mfg, Draufgeher.
(die Dreamotion-forum leute können nur Englisch und Französisch o_O)
aber: wer programmiert muss irgendwann auch englisch mögen



2. Thema:
Dreamotion nimmt die DirectX-shader Dateien ".fx" für Glühen, Parallaxmapping, bumpmapping, Textureffekte halt... her.
Hier eine Anleitung, wie man solche herstellt (ma kann auch einfach
Introduction:
i was searching for a tutorial (and program) to create normalmaps, and found, fourtunately, a FX- Effect-editor from ATI.
just download, read and enjoy:
DOWNLOAD:
http://ati.amd.com/developer/ashli.html
READ:
- 1. install it,
2. Start "Ashli Viewer.exe"
3. press: HLSL (or GLSL.. should work both)
4. select any "folder" on the left (doubleclick)
and one of the files there (the effect you wish)
4.2 and press the combobox with "GL" switch it to "DX 3"
5. Select Checkbox "Dump FX".
6. maybe you must set the R300 to anything else...
(i don't think so, so don't do something here, now XD)
7. select checkbox "FX Source"
(just to be on the save side... maybe not needed..)
8. press "compile & run" .
9. go to: INSTALLFOLDER + "bin\tst\fx" and there is the .fx file.
(they are named after the meshes, which were used in the fx-ashli- example,
for example "helmet.fx")
10. in the .map-file is the description of variables,
which you have to set in the EffectCallback commands like:
DM_EffectSetMatrix(*effect, "WorldViewProjection", @WorldViewProjection )
to learn how to use: start the "2-HLSL.pb" - example. or the glowing- examle
and read the connected shaderfiles (parallaxmapping.fx, and glowing.fx)
ps: you must open the .fx - shader -files with any text editor, to see the shader-variables, and code (and to magnify the shader-skript-code) and... the editor is quite a little bit old ^^.. but the effects are great

(maybe not word^^, it will save as a non- text-file, cause it doesn't know that it should save it as a text-only file (as .txt) .)
ENJOY:
[ati even has got normal, and bumpmap-editors and other funny stuff on their site

-mfg, Draufgeher.