Re: [hlcoders] hl2 post process shaders

2006-04-06 Thread Adam \"amckern\" Mckern
I would send an email to wraityh [EMAIL PROTECTED] -
he knows a fair amount about shaders

Adam


--- Mike Golden <[EMAIL PROTECTED]> wrote:

> --
> [ Picked text/plain from multipart/alternative ]
> When running build_sample_shaders.bat i get an error
>   **
> *D:\mymod\src\sdkshaders>*build_sample_shaders.bat
> -game "d:\Program
> Files\steam\steamapps\SourceMods\Zombie"
> The system cannot find the path specified.
> 
> sdk_shaders
> 
> shaders\fxc\sdk_lightmap_ps20.vcs
> shaders\fxc\sdk_lightmap_vs20.vcs
> shaders\fxc\sdk_particle_ps11.vcs
> shaders\fxc\sdk_particle_vs11.vcs
> shaders\fxc\sdk_postprocess_ps20.vcs
> shaders\fxc\sdk_postprocess_vs20.vcs
> 6 File(s) copied
> The .vcs files copy to my mod directory fine...
> I have built the game_shader_generic_sample.dll
> without error.
> Note: i added Yes (/INCREMENTAL) to the "Enable
> incremental linking" in the
> project settings, due to the error
> "LINK : warning LNK4098: defaultlib 'LIBC' conflicts
> with use of other libs;
> use /NODEFAULTLIB:library"
> i also added /NODEFAULTLIB:"LIBC", and i also added
> "$(TargetPath)" to
> shaderlib.lib, tier0.lib, and vstdlib.lib's Outputs.
> the .DLL is compiling without any errors, or
> warnings.
>
> Moving on
> I have placed the code that is commented out inside
> of the
> sdk_postprocess.cpp into my CViewRender::RenderView
> class method.
>
> it is placed directly after the line containing
> "GenerateOverdrawForTesting();"
>
> once i run (debug release active) i see a Fulbright
> white screen. if i
> select a weapon with a muzzle flash the white screen
> disappears.
> I have tried using a different material that doesn't
> use the sdk_postprocess
> shader, and the material is drawn correctly on the
> screen.
>
>
> my directory setup is as follows:
> my source directory is at D:\mymod\src
> my mod directory is at D:\Program
> Files\Steam\Steamapps\SourceMods\Zombie
> my MSVC directory is at D:\Program Files\Microsoft
> Visual Studio .NET 2003
> my perl directory is at C:\perl
> my directX sdk directory is at C:\DXSDK
>
> I can't seem to figure out what the problem is. if
> you need any additional
> information, please let me know.
> --
>
> ___
> To unsubscribe, edit your list preferences, or view
> the list archives, please visit:
>
http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>



My Website http://www.ammahls.com
   Lead Programer NightFall http://www.nightfallmod.net
  Developer of CST and ZHLT 3.0 http://www.zhlt.info
 Team Lead - Prime - http://www.nigredostudios.com

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] hl2 post process shaders

2006-04-06 Thread Mike Golden
--
[ Picked text/plain from multipart/alternative ]
When running build_sample_shaders.bat i get an error
  ** *D:\mymod\src\sdkshaders>*build_sample_shaders.bat -game "d:\Program
Files\steam\steamapps\SourceMods\Zombie"
The system cannot find the path specified.

sdk_shaders

shaders\fxc\sdk_lightmap_ps20.vcs
shaders\fxc\sdk_lightmap_vs20.vcs
shaders\fxc\sdk_particle_ps11.vcs
shaders\fxc\sdk_particle_vs11.vcs
shaders\fxc\sdk_postprocess_ps20.vcs
shaders\fxc\sdk_postprocess_vs20.vcs
6 File(s) copied
The .vcs files copy to my mod directory fine...
I have built the game_shader_generic_sample.dll without error.
Note: i added Yes (/INCREMENTAL) to the "Enable incremental linking" in the
project settings, due to the error
"LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs;
use /NODEFAULTLIB:library"
i also added /NODEFAULTLIB:"LIBC", and i also added "$(TargetPath)" to
shaderlib.lib, tier0.lib, and vstdlib.lib's Outputs.
the .DLL is compiling without any errors, or warnings.

Moving on
I have placed the code that is commented out inside of the
sdk_postprocess.cpp into my CViewRender::RenderView class method.

it is placed directly after the line containing
"GenerateOverdrawForTesting();"

once i run (debug release active) i see a Fulbright white screen. if i
select a weapon with a muzzle flash the white screen disappears.
I have tried using a different material that doesn't use the sdk_postprocess
shader, and the material is drawn correctly on the screen.


my directory setup is as follows:
my source directory is at D:\mymod\src
my mod directory is at D:\Program Files\Steam\Steamapps\SourceMods\Zombie
my MSVC directory is at D:\Program Files\Microsoft Visual Studio .NET 2003
my perl directory is at C:\perl
my directX sdk directory is at C:\DXSDK

I can't seem to figure out what the problem is. if you need any additional
information, please let me know.
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders