Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / The thing about shaders

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 5th Mar 2012 20:22
Each and every shaders does not work for all entities.

Anyone knows a good tutorial on shaders?
As for as I know there are pixel shaders and vertex shaders, FPSC uses pixel shaders I guess? (Don't really know the difference between these two types)
And It must have something to do with the textures and the materials. But If I want a shader to work with any entity, don't I just need to apply eg. a bumpmap on them? How can I do this?

Best!

www.memblockgames.com
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 5th Mar 2012 20:22
oh! btw I'm using version 1.18 of FPSC x9

www.memblockgames.com
bond1
20
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 5th Mar 2012 20:57 Edited at: 5th Mar 2012 21:02
A shader consists of both a vertex and pixel shader.

Vertex shaders process the model geometry and determine where the model should be placed within the game world and on the screen.

Pixel shaders determine the the final color/shading of the pixel on screen.

Shaders are highly game engine specific. To learn more about the whole rendering pipeline this is a great place to start, it's now available for FREE online: http://news.developer.nvidia.com/2008/05/the-cg-tutorial.html

Different entities within FPSC (static/dynamic/characters/weapons/post-process) follow different rendering paths and generally the shaders aren't interchangeable. It's best to start with an existing entity that already has an effect applied that you want, and use that as a template.

SPECS: Windows7 x64, Intel Core i7 920, Geforce GTX 580, 6GB RAM
Captain Coder
FPSC Reloaded TGC Backer
14
Years of Service
User Offline
Joined: 6th Jul 2011
Playing: Elite: Dangerous
Posted: 7th Mar 2012 22:44
If you want to apply shaders to an object, open the FPE of the object and where it says "effect=" add an effect from the "effectbank" in your FPSC directory. Unfortunately, you can't just pick one and go - you have to pick specific ones. If I am correct, certain shaders work for characters, certain ones work for entities, some work for segments, and still others are full-screen shaders. Look in the FPE's of stock items to help you choose. Once you apply the effect, you'll need to create a (or more commonly some) shader map(s). Bootlicker created a tutorial on how to make shaders here: http://forum.thegamecreators.com/?m=forum_view&t=187966&b=24

Also, there are tutorials designed for X10 on the X10 board - I use that one for making shaders, although there are some things that aren't the same for X9.

@Bond1: Thanks for the link! I'll check it out some time.

As a believer in Jesus Christ, I am trying to use my passion for game creation for His glory.

Login to post a reply

Server time is: 2026-07-03 05:21:48
Your offset time is: 2026-07-03 05:21:48