PDA

View Full Version : editing postprocess shader scripts



hellborg
11-18-2007, 08:36 AM
Hi all,

I am new to the unreal engine. I would like to extend the Shader script in the standard postprocess used in Unreal Tournament 3. Some time ago I succeeded editing the postprocess in Roboblitz by directly editing the file DOFAndBloomBlendPixelShader.usf in the Engine/Shaders folder with notepad. I tried again with UT3, but the game gives a runtime error on startup even after the tiniest change in the shader script. I think I had the same problem with roboblitz before, but I don't remember how to solve it. Do I need to change certain configuration files to allow modified shader script, or is there a more general problem with my method in UT3? Or, is there a more elegant way to add a custom postprocess script to the whole game scene?

Thanks alot for your help,

hellborg

kisk
11-18-2007, 10:37 AM
Do you have the exported ut3 scripts yet?

Check out DOFEffect.uc, DOFAndBloomEffect.uc & UberPostProcessEffect.uc in \Engine\Classes..

hellborg
11-18-2007, 11:56 AM
I do not have a classes subdirectory. Should it be at the location

C:\Program Files\Unreal Tournament 3 (LG)\Engine

What do I need to do to get these files?

kisk
11-18-2007, 01:13 PM
You can export the scripts via UnrealEd. Open up the browser and do File: Export All..

They are placed in \My Documents\My Games\Unreal Tournament 3\UTGame\ExportedScript

or, just download them here:

7z (http://www.codekisk.com/unreal/ut3/ut3_ExportedScript.7z) (1.4mb)
rar (http://www.codekisk.com/unreal/ut3/ut3_ExportedScript.rar) (2.8mb)
zip (http://www.codekisk.com/unreal/ut3/ut3_ExportedScript.zip) (3.4mb)

hellborg
11-18-2007, 04:57 PM
alright, I downloaded the exported script zip file, but I could only find the file DOFAndBloomEffect.uc

The DOFAndBloomEffect.uc file only contains the settings for the bloom etc. I need to change the DOFAndBloomBlendPixelShader.usf file, which contains the actual shader programming code.

Any further insight into these matter?

Thanks,

Hellborg

kisk
11-18-2007, 05:00 PM
haven't played with any actual shader files yet. hopefully when the game comes out in the US tomorrow we'll see a lot of good info come out.