Results 1 to 8 of 8
  1. #1
    MSgt. Shooter Person
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    386
    Gamer IDs

    Gamertag: LennardF1989

    Default [Solved] Generating RefShaderCache files

    Thanks to Denny for these

    Shader Model 2
    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc_sm2 -refcache -unattended -skipmaps LOG=ShaderCache_Sm2.log

    Shader Model 3
    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc -refcache -unattended -skipmaps LOG=ShaderCache_Sm3.log

    Shader Model 4

    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc_sm4 -refcache -unattended -skipmaps LOG=ShaderCache_Sm4.log

    ----

    Hi all,

    I've got two questions.

    Question #1:
    Is there a way to generate RefShaderCache files like the ones shipped with UDK? Modified shaders now generate a LocalShaderCache file instead (where the GlobalShaderCache files act as a list of reference).

    Question #2:
    Is it possible to generate ShaderCaches for all Shader Models? I noticed that when UseDX10Mode is on, SM4 shaders get generated, while without SM3 get generated, older video cards generate SM2 shaders.

    If there isn't such an option to do this in one go (also in RefShaderCache files) it would be pretty nice to have.

    Lennard
    Last edited by LennardF1989; 11-13-2009 at 08:01 AM. Reason: GlobalShaderCache -> RefShaderCache

  2. #2
    MSgt. Shooter Person
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    386
    Gamer IDs

    Gamertag: LennardF1989

    Default

    Anyone, please? I tempt to believe this is the wrong section for questions other than "I cannot run, HELP!?" topics...

  3. #3
    Redeemer
    Join Date
    Nov 2007
    Posts
    1,207

    Default

    I don't know. With the latest patch of UT3, shader cache files were generated as part of the cooking process. I imagine this is true for UDK.
    Nightblade, a stealth based total conversion for UT3

  4. #4
    Prisoner 849
    Join Date
    Jul 2007
    Posts
    985

    Default

    Create shortcuts containing these.

    Shader Model 2
    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc_sm2 -refcache -unattended -skipmaps LOG=ShaderCache_Sm2.log

    Shader Model 3
    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc -refcache -unattended -skipmaps LOG=ShaderCache_Sm3.log

    Shader Model 4
    "C:\UDK\Binaries\Win32\UDK.exe" precompileshaders platform=pc_sm4 -refcache -unattended -skipmaps LOG=ShaderCache_Sm4.log
    Last edited by Denny; 11-13-2009 at 07:41 AM.
    Technical Artist / Animator - InAction @ Forums.BeyondUnreal

    Demoreel: Website
    TUTORIAL: Character - Maya to UDK Livestream
    CHARACTER: UDK Character / First Person Animation Rig
    SCRIPTS: Axtended Animation Manager (FBX Animation Batch Exporter) | T3D Exporter

  5. #5
    Redeemer
    Join Date
    Nov 2007
    Posts
    1,207

    Default

    Well, it would be shader model rather than DirectX version, which one you can use depends on your video card.

    Anyhow that's very helpful. Thanks!
    Nightblade, a stealth based total conversion for UT3

  6. #6
    Prisoner 849
    Join Date
    Jul 2007
    Posts
    985

    Default

    Edited.
    Technical Artist / Animator - InAction @ Forums.BeyondUnreal

    Demoreel: Website
    TUTORIAL: Character - Maya to UDK Livestream
    CHARACTER: UDK Character / First Person Animation Rig
    SCRIPTS: Axtended Animation Manager (FBX Animation Batch Exporter) | T3D Exporter

  7. #7
    MSgt. Shooter Person
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    386
    Gamer IDs

    Gamertag: LennardF1989

    Default

    Thanks Denny! Could have guessed there were Commandlets to do it, but hey, I'm just a lazy programmer :P
    Last edited by LennardF1989; 11-13-2009 at 08:02 AM.

  8. #8
    Prisoner 849
    Join Date
    Jul 2007
    Posts
    985

    Default

    Glad you got it to work.
    Technical Artist / Animator - InAction @ Forums.BeyondUnreal

    Demoreel: Website
    TUTORIAL: Character - Maya to UDK Livestream
    CHARACTER: UDK Character / First Person Animation Rig
    SCRIPTS: Axtended Animation Manager (FBX Animation Batch Exporter) | T3D Exporter


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.