HomeNewsFeaturesLicensingDownloadsScreenshotsFAQRoadmap Contact Us
Search:
13 Online

Community

Discussion Topics Recent Postings User Contributions General Articles Example Documentation Credits

Licensed Developer

Programmer's Manual Artists Manual Tutorials and Articles

Programming: Game Code

Game Code Overview Server Side Game Code Client Side Game Code

Programming: System

Alphabetical Function List Renderer File System Collision & Ray Casting Low Level Audio Game Audio The Console Console Variable List Multiplayer Localisation Maths Library Memory Manager Model File Formats Texture Formats

Art: Overviews

Specifications Shaders Particle Systems Lens Flares Cipher console Cipher file types Tutorials Reference

Art: Tools

Shader Designer Particle Designer 3dsmax tools Model Conversion Font Generator

Cipher Engine
Game Development Search Engine
GameDev.net
You are not signed in - [sign in] [register]

CipherFX script

Submitted by: falcon13efx
Date Submitted: 2005-03-26 18:43:45

Shader Script

This is a demonstration of how the new shader designer script works. It is a file that contains GPU programs and can contain any kind of program you want (and the engine can parse and execute. I only target ARB program and GLSL right now).

cipherfx 1.0
vertex
{
  ARBVP
  {
    constant { ... }
    input { ... }
    code { ... }
  }
  GLSL
  {
    constant { ... }
    input { ... }
    code ...
  }
}
fragment
{
   ARBFP { ... }
   GLSL  { ... }
   NVPARSE { ... }
   etc..
}


Description

This shows how you can attach a GPU program to the shader designer. Such a program could be designed in another shader designer, and than converted into an FX file for Cipher.

In the engine, all of this is handled automatically, there was some breaking of how the system used to work but all of the original features are still in there, and a few more, like object and eye linear, planar projection textures (it was in there, but it was broken), and other nifty things. Oh my, yes, pbuffers, 1d and 3d textures, my oh my... possibly, soft shadow blendng, shadow maps, occlusion culling.. yes yes!

I am making the mods available to the community. If you like them you can just tell everyone how cool you think I am etc. Whatever. I don't care. I live to hack code, and hack code to live, you can have it for free.

Basically, if there is an FX file, and it can run on the GPU, it will run the script. Otherwise, it will run whatever other commands are in the pass. So you can still have a fallback to older systems.

Peace out.

[Recent Contributions] [Recent Shaders]

User Contributed Comments

philk 30th March, 2005 00:40
Looks promissing. Keep up the good work!




Register and Sign In to discuss this article