Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Apr 18, 2024 7:53 pm

All times are UTC




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sat Jun 17, 2006 6:07 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Image

Raydium is about to provide a support for GLSL (OpenGL Shading Language), and this screen is the first test of this new experimental feature, with a "toon shader". More to come ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 17, 2006 6:39 pm 
Offline

Joined: Sun Mar 16, 2003 10:27 am
Posts: 404
i like it ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 1:59 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
nice, i'm waiting that commit to test :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 6:04 am 
Offline
User avatar

Joined: Sun May 28, 2006 7:17 pm
Posts: 12
Location: USA
Awesome, can't wait to give it a try. :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 2:12 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Ok, it's getting better. Another try with a normal map shader, this time:
Image
Yeah, were're now able to get the same awful shiny plastic rendering that all other engines provides ! ;) (It's hard to get the right effect with normal maps).

I'm now trying to find the correct way to add shader system to Raydium (per object ? per texture ? per frame ?), after what I'll wrote a small demo and port the whole thing to win32 (It can be hard since there's some important changes in core, as Raydium now use another new dependecy: GLEW)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 2:59 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
i suppose the best way to add shaders to raydium is per texture.
Using per texture shaders we get s simplest tri file and enought flesibility to let the artist model anobjecto with areas with a few shaders or even without shaders, at their own.

However....

i'd like a shader support for frame, cause id like to apply some effects to the fullscreen in certain moments during the game. I mean an ultra-saturated mode, a desaturated mode, a black and white mode, a cartoon mode, and it also can be used to speed up HDR and implement nice motion blur effects...

So...

I think we have to make a basic independent implementation, and then a few functions related to each possible use


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 7:10 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Ok, after a few problems it's now possible to attach a shader to a texture. I will stop here for now :)

I'm searching for a "good" free normal mapped model ... If you've found such model, tell me where !


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 9:31 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Ok, I only need to clean a few things, upload data, and the shader support will join the SVN :)
A quick screenshot of the demo app, using two distinct shaders :
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 8:06 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Ok, shader support is now available ! (since rev 334) Have fun ;)
It needs a few things again, like an assert at the begining of each function to return if hardware shader support's not available (it probably crash, now)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 8:14 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
works great for me :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 8:21 pm 
Offline

Joined: Thu May 25, 2006 8:26 pm
Posts: 47
A screan with MD please!

:wink:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 8:28 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Shaders are not a magical option :) You need a new shader for each effect, and sometimes new data. That's the case for the normal map in this demo :

Texture (aka Color Map):
Image

and its normal map:
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 09, 2006 10:44 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
The shader demo now features a new FX : parallax mapping.
http://en.wikipedia.org/wiki/Parallax_mapping

Small Raydium screenshot (it looks way better when it moves ! :) )
Image
Look at the ground... this is in facts a perfectly flat triangle, but ground "displacement" gives relief effect (and changes with point of vue !).

I'll try to create better data (model and color/displacement/normal maps) to make this demo more attractive ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 1:25 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
hehe, quite impresive!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 9:24 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Superbe :D

Par contre j'ai fait un svn update et lorsque je veux compiler le test, j'obtiens :
Code:
~/code/raydium$ ./ocomp.sh shader_test.c
rm: ne peut enlever `test': Aucun fichier ou répertoire de ce type
In file included from raydium/index.c:56,
                 from shader_test.c:7:
raydium/render.c: Dans la fonction «raydium_rendering_from_to» :
raydium/render.c:337: erreur: «raydium_shader_support» undeclared (first use in this function)
raydium/render.c:337: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
raydium/render.c:337: erreur: pour chaque fonction dans laquelle il apparaît.)
raydium/render.c:337: erreur: «raydium_shader_active» undeclared (first use in this function)
raydium/render.c:338: erreur: «raydium_shader_shaders» undeclared (first use in this function)
./ocomp.sh: line 14: ./test: Aucun fichier ou répertoire de ce type
:oops:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group