[updated] An Ogre shader collection ?
- sphinkie
- Greenskin
- Posts: 114
- Joined: Wed Jul 07, 2004 11:08 am
- Location: Paris
- x 1
- Contact:
[updated] An Ogre shader collection ?
Hi
I started recently with Cg Shaders, and I like to submit the idea of creating a new chapter in wiki dedicated to a shader collection (maybe in the sniplet section).
Why this ?
There are already shader collections on nvidia and other sites, and also some in the "media/material/program" directory of the new release of Ogre...
Yes, but the shader from internet rarely works easily when integrated "as-is" into Ogre...
And this could be also used for tutorial purpose for thoses who like to start by tweaking existing shaders.
In this new collection, we will find for each shader:
- description (with screenshot)
- usage (including custom parameters)
- VP and FP code
- material file
your opinion ?
I started recently with Cg Shaders, and I like to submit the idea of creating a new chapter in wiki dedicated to a shader collection (maybe in the sniplet section).
Why this ?
There are already shader collections on nvidia and other sites, and also some in the "media/material/program" directory of the new release of Ogre...
Yes, but the shader from internet rarely works easily when integrated "as-is" into Ogre...
And this could be also used for tutorial purpose for thoses who like to start by tweaking existing shaders.
In this new collection, we will find for each shader:
- description (with screenshot)
- usage (including custom parameters)
- VP and FP code
- material file
your opinion ?
Last edited by sphinkie on Mon Jun 05, 2006 1:33 pm, edited 1 time in total.
-
- Gremlin
- Posts: 158
- Joined: Fri Oct 07, 2005 11:48 am
- Location: Hilversum, The Netherlands
- Contact:
- abstractcoder
- Gnome
- Posts: 336
- Joined: Wed Oct 12, 2005 1:50 pm
- Location: UK
- Contact:
i dont know if you have noticed it but there is this thread:
http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=
i know its been around for a while now but i am going to be starting a new hosting this week and we have jacmoe willing to back it as well.
as i see it i think having a repository of models, textures, shaders and anything else that fits the label of a resource for using in an ogre application could be included here.
I think the software (I think joomla at the moment) this is going to be used on this new site would work better for things like this. We could then just have all the tutorials and documents on the wiki.
But in the end this is entirely up to you , we will provide the areas for shaders (or at least I think we should) and then you can use them if you wish to.
[EDIT]
i would also find this helpful, for example, some really simlpe shaders that people can take a look at to see how it all works, i for one have not yet had chance to learn about shaders yet.
http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=
i know its been around for a while now but i am going to be starting a new hosting this week and we have jacmoe willing to back it as well.
as i see it i think having a repository of models, textures, shaders and anything else that fits the label of a resource for using in an ogre application could be included here.
I think the software (I think joomla at the moment) this is going to be used on this new site would work better for things like this. We could then just have all the tutorials and documents on the wiki.
But in the end this is entirely up to you , we will provide the areas for shaders (or at least I think we should) and then you can use them if you wish to.
[EDIT]
i would also find this helpful, for example, some really simlpe shaders that people can take a look at to see how it all works, i for one have not yet had chance to learn about shaders yet.
- sphinkie
- Greenskin
- Posts: 114
- Joined: Wed Jul 07, 2004 11:08 am
- Location: Paris
- x 1
- Contact:
Hi Steve7946
Here is my simple (and single) shader at the moment. You can use it if you want.
http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=
Concerning the Ogre Ressource Site, I have had a look at it. It seems interesting (but not very full at the moment) . Concerning shaders as they are pieces of code, maybe the wiki is better, because anyone can improve or correct it, and the best version is always online for future users.
On another hand, they work with materials...
Here is my simple (and single) shader at the moment. You can use it if you want.
http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=
Concerning the Ogre Ressource Site, I have had a look at it. It seems interesting (but not very full at the moment) . Concerning shaders as they are pieces of code, maybe the wiki is better, because anyone can improve or correct it, and the best version is always online for future users.
On another hand, they work with materials...
-
- Gremlin
- Posts: 195
- Joined: Fri Mar 04, 2005 9:59 am
- Location: Germany, BY
- Contact:
Full ACK!Concerning the Ogre Ressource Site, I have had a look at it. It seems interesting (but not very full at the moment) . Concerning shaders as they are pieces of code, maybe the wiki is better, because anyone can improve or correct it, and the best version is always online for future users.
http://www.consulting-reif.de
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is
winning."
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is
winning."
- abstractcoder
- Gnome
- Posts: 336
- Joined: Wed Oct 12, 2005 1:50 pm
- Location: UK
- Contact:
-
- Kobold
- Posts: 34
- Joined: Tue Jan 03, 2006 10:45 pm
- Location: Tokyo, Japan
- Contact:
I think its an excellent idea . As mentioned, however, please make sure that all the resources are centralized . So if you are making a website that is hosting these materials , please make it tightly linked with the wiki .
The last thing anyone needs are shard sites popping up, each hosting a few shaders or resources and no one being complete.
The last thing anyone needs are shard sites popping up, each hosting a few shaders or resources and no one being complete.
-
- Ogre Magi
- Posts: 1266
- Joined: Tue Aug 12, 2003 1:53 am
- Location: Melbourne, Australia
- x 1
- Contact:
- Jerky
- Orc Shaman
- Posts: 791
- Joined: Wed Mar 02, 2005 4:13 am
- Location: Springville, Utah
- Contact:
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
I think this repository project can become a valuable asset to the community.
We just have to find a nice and easy way to do it.
Maybe a combination of Gallery - Remository - Forum - Wiki ?
I am not sure about the Wiki, though.
Sometimes all you need is a pluggable shader script, complete with material script and textures.
I think I still have some really groovie particle scripts somewhere, kindly donated by a fellow forum member.
I will definately put up the fader shader script!
If people feel like it, they can write a wiki page about their model, script, whatever, as a usage guide / tutorial. ?
If we keep pimping this, we will eventually gather a sizeable amount of quality content. Of that I'm sure.
We just have to find a nice and easy way to do it.
Maybe a combination of Gallery - Remository - Forum - Wiki ?
I am not sure about the Wiki, though.
Sometimes all you need is a pluggable shader script, complete with material script and textures.
I think I still have some really groovie particle scripts somewhere, kindly donated by a fellow forum member.
I will definately put up the fader shader script!
If people feel like it, they can write a wiki page about their model, script, whatever, as a usage guide / tutorial. ?
If we keep pimping this, we will eventually gather a sizeable amount of quality content. Of that I'm sure.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
- sphinkie
- Greenskin
- Posts: 114
- Joined: Wed Jul 07, 2004 11:08 am
- Location: Paris
- x 1
- Contact:
OK.
I have started the "shaders" section in the wiki :
http://www.ogre3d.org/wiki/index.php/Co ... ts#Shaders
and start adding the first ones...
As says Jacmoe: we can start with that, and see later if we move them the resource site.
For instance, when a shader is well finished, clean, packaged, ready-for-use, documented, we can make a zip of it, and put it in the repository.
note: I have not found remository in my dictionary. Is that a contraction for remote-repository ?
I have started the "shaders" section in the wiki :
http://www.ogre3d.org/wiki/index.php/Co ... ts#Shaders
and start adding the first ones...
As says Jacmoe: we can start with that, and see later if we move them the resource site.
For instance, when a shader is well finished, clean, packaged, ready-for-use, documented, we can make a zip of it, and put it in the repository.
note: I have not found remository in my dictionary. Is that a contraction for remote-repository ?
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
Remository is a Mambo/Joomla component for file repositories from Black Sheep Research - you've used it a lot, I think: the OGRE Remository, where you can download OGRE, dependencies and tools.
Looking forward to see some content!
Looking forward to see some content!
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
Great Wiki pages by the way, sphinkie!
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
- abstractcoder
- Gnome
- Posts: 336
- Joined: Wed Oct 12, 2005 1:50 pm
- Location: UK
- Contact:
this looks really good. i will have to start learning how to use them.
[EDIT]
i didnt think it was enough for a new post i just though i would say i have had my name changed on here from steve7946 to abstractcoder as steve7946 is a poor username. and i am starting to use my website of the same name again now.
[EDIT]
i didnt think it was enough for a new post i just though i would say i have had my name changed on here from steve7946 to abstractcoder as steve7946 is a poor username. and i am starting to use my website of the same name again now.
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
I'll change your username on the Conglomerate Forum, abstractcoder!
Send you a PM when I do.
Send you a PM when I do.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Kobold
- Posts: 34
- Joined: Tue Jan 03, 2006 10:45 pm
- Location: Tokyo, Japan
- Contact:
- sphinkie
- Greenskin
- Posts: 114
- Joined: Wed Jul 07, 2004 11:08 am
- Location: Paris
- x 1
- Contact:
New shader added: a hologram effect.
http://www.ogre3d.org/wiki/index.php/Holographe_Shader
Green color, with some transparency effect, and some noisy bands...
(if you are a talented artist: you can improve the graphic elements)
http://www.ogre3d.org/wiki/index.php/Holographe_Shader
Green color, with some transparency effect, and some noisy bands...
(if you are a talented artist: you can improve the graphic elements)
- Chris Jones
- Lich
- Posts: 1742
- Joined: Tue Apr 05, 2005 1:11 pm
- Location: Gosport, South England
- x 1
- guilderstein
- Halfling
- Posts: 66
- Joined: Wed Jan 04, 2006 11:48 am
- Location: Hungary, Budapest
- Falagard
- OGRE Retired Moderator
- Posts: 2060
- Joined: Thu Feb 26, 2004 12:11 am
- Location: Toronto, Canada
- x 3
- Contact:
- guilderstein
- Halfling
- Posts: 66
- Joined: Wed Jan 04, 2006 11:48 am
- Location: Hungary, Budapest
- Wretched_Wyx
- Orc
- Posts: 498
- Joined: Thu Mar 16, 2006 5:27 pm
- Contact:
Hey guilderstein,
those shaders aren't quite so "out-of-the-box" after all...
those shaders aren't quite so "out-of-the-box" after all...
Code: Select all
-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: CgProgram::loadFromSource
Description: Unable to compile Cg program OneTexture: CG ERROR : The compile returned an error.
(83) : error C0000: syntax error, unexpected '(' at token "("
(83) : error C0501: type name expected at token "("
(85) : error C0000: syntax error, unexpected identifier, expecting ';' or ',' at token "normal"
(85) : error C0501: type name expected at token "normal"
(88) : error C0000: syntax error, unexpected reserved word "uniform", expecting identifier or type identifier at token "uniform"
(88) : error C0501: type name expected at token "uniform"
(97) : error C0000: syntax error, unexpected reserved word "out", expecting identifier or type identifier at token "out"
(97) : error C0501: type name expected at token "out"
(99) : error C0000: syntax error, unexpected reserved word "out", expecting identifier or type identifier at token "out"
(99) : error C0501: type name expected at token "out"
(103) : error C0000: syntax error, unexpected reserved word "out", expecting identifier or type identifier at token "out"
(103) : error C0501: type name expected at token "out"
(104) : error C0000: syntax error, unexpected reserved word "out", expecting identifier or type identifier at token "out"
(104) : error C0501: type name expected at token "out"
(105) : error C0000: syntax error, unexpected ')', expecting ';' or ',' at token ")"
(105) : error C0501: type name expected at token ")"
(107) : error C1054: initialization of non-variable "oClipPos"
(109) : error C0000: syntax error, unexpected '=' at token "="
(109) : error C0501: type name expected at token "="
(113) : error C0000: syntax error, unexpected '=' at token "="
(113) : error C0501: type name expected at token "="
(117) : error C0000: syntax error, unexpected '=' at token "="
(117) : error C0501: type name expected at token "="
(121) : error C0000: syntax error, unexpected ':' at token ":"
(121) : error C0501: type name expected at token ":"
(122) : error C0000: syntax error, unexpected ':' at token ":"
(122) : error C0501: type name expected at token ":"
(126) : error C0000: syntax error, unexpected ':' at token ":"
(126) : error C0501: type name expected at token ":"
(128) : error C0000: syntax error, unexpected ',' at token ","
(128) : error C0501: type name expected at token ","
(134) : error C0000: syntax error, unexpected ',' at token ","
(134) : error C0501: type name expected at token ","
(142) : error C0000: syntax error, unexpected ',' at token ","
(142) : error C0501: type name expected at token ","
(149) : error C0000: syntax error, unexpected '=' at token "="
(149) : error C0501: type name expected at token "="
(149) : error C0000: syntax error, unexpected ')' at token ")"
(149) : error C0501: type name expected at token ")"
(151) : error C0000: syntax error, unexpected '=' at token "="
(151) : error C0501: type name expected at token "="
(151) : error C0000: syntax error, unexpected '-' at token "-"
(151) : error C0501: type name expected at token "-"
(153) : error C0000: syntax error, unexpected '=' at token "="
(153) : error C0501: type name expected at token "="
(153) : error C0000: syntax error, unexpected '.' at token "."
(153) : error C0501: type name expected at token "."
(157) : error C0000: syntax error, unexpected '=' at token "="
(157) : error C0501: type name expected at token "="
(157) : error C0000: syntax error, unexpected ',' at token ","
(157) : error C0501: type name expected at token ","
(177) : error C1110: function "Simple_PerPixel_Frag" has no return statement
(179) : error C0000: syntax error, unexpected ':' at token ":"
(179) : error C0501: type name expected at token ":"
(180) : error C0000: syntax error, unexpected ':' at token ":"
(180) : error C0501: type name expected at token ":"
(182) : error C0000: syntax error, unexpected ',' at token ","
(182) : error C0501: type name expected at token ","
(184) : error C0000: syntax error, unexpected ',' at token ","
(184) : error C0501: type name expected at token ","
(187) : error C0000: syntax error, unexpected ':' at token ":"
(187) : error C0501: type name expected at token ":"
(188) : error C0000: syntax error, unexpected ':' at token ":"
(188) : error C0501: type name expected at token ":"
(189) : error C0000: syntax error, unexpected ':' at token ":"
(189) : error C0501: type name expected at token ":"
(194) : error C0000: syntax error, unexpected '=' at token "="
(194) : error C0501: type name expected at token "="
(194) : error C0000: syntax error, unexpected '-' at token "-"
(194) : error C0501: type name expected at token "-"
(206) : error C0000: syntax error, unexpected ':' at token ":"
(206) : error C0501: type name expected at token ":"
(207) : error C0000: syntax error, unexpected ':' at token ":"
(207) : error C0501: type name expected at token ":"
(208) : error C0000: syntax error, unexpected ':' at token ":"
(208) : error C0501: type name expected at token ":"
(210) : error C0000: syntax error, unexpected ',' at token ","
(210) : error C0501: type name expected at token ","
(214) : error C0000: syntax error, unexpected ':' at token ":"
(214) : error C0501: type name expected at token ":"
(217) : error C0000: syntax error, unexpected '=' at token "="
(217) : error C0501: type name expected at token "="
(217) : error C0000: syntax error, unexpected ')' at token ")"
(217) : error C0501: type name expected at token ")"
(222) : error C0000: syntax error, unexpected '=' at token "="
(222) : error C0501: type name expected at token "="
(222) : error C0000: syntax error, unexpected ',' at token ","
(222) : error C0501: type name expected at token ","
(231) : error C0000: syntax error, unexpected ':' at token ":"
(231) : error C0501: type name expected at token ":"
(232) : error C0000: syntax error, unexpected ':' at token ":"
(232) : error C0501: type name expected at token ":"
(234) : error C0000: syntax error, unexpected ',' at token ","
(234) : error C0501: type name expected at token ","
(236) : error C0000: syntax error, unexpected ',' at token ","
(236) : error C0501: type name expected at token ","
(238) : error C0000: syntax error, unexpected ',' at token ","
(238) : error C0501: type name expected at token ","
(241) : error C0000: syntax error, unexpected ':' at token ":"
(241) : error C0501: type name expected at token ":"
(242) : error C0000: syntax error, unexpected ':' at token ":"
(242) : error C0501: type name expected at token ":"
(243) : error C0000: syntax error, unexpected ':' at token ":"
(243) : error C0501: type name expected at token ":"
(244) : error C0000: syntax error, unexpected ':' at token ":"
(244) : error C0501: type name expected at token ":"
(245) : error C0000: syntax error, unexpected ':' at token ":"
(245) : error C0501: type name expected at token ":"
(246) : error C0000: syntax error, unexpected ':' at token ":"
(246) : error C0501: type name expected at token ":"
(247) : error C0000: syntax error, unexpected ':' at token ":"
(247) : error C0501: type name expected at token ":"
(256) : error C0000: syntax error, unexpected '=' at token "="
(256) : error C0501: type name expected at token "="
(256) : error C0000: syntax error, unexpected '-' at token "-"
(256) : error C0501: type name expected at token "-"
(268) : error C0000: syntax error, unexpected ':' at token ":"
(268) : error C0501: type name expected at token ":"
(269) : error C0000: syntax error, unexpected ':' at token ":"
(269) : error C0501: type name expected at token ":"
(270) : error C0000: syntax error, unexpected ':' at token ":"
(270) : error C0501: type name expected at token ":"
(271) : error C0000: syntax error, unexpected ':' at token ":"
(271) : error C0501: type name expected at token ":"
(272) : error C0000: syntax error, unexpected ':' at token ":"
(272) : error C0501: type name expected at token ":"
(273) : error C0000: syntax error, unexpected ':' at token ":"
(273) : error C0501: type name expected at token ":"
(274) : error C0000: syntax error, unexpected ':' at token ":"
(274) : error C0501: type name expected at token ":"
(276) : error C0000: syntax error, unexpected ',' at token ","
(276) : error C0501: type name expected at token ","
(278) : error C0000: syntax error, unexpected ',' at token ","
(278) : error C0501: type name expected at token ","
(281) : error C0000: syntax error, unexpected ',' at token ","
(281) : error C0501: type name expected at token ","
(288) : error C0000: syntax error, unexpected ',' at token ","
(288) : error C0501: type name expected at token ","
(293) : error C0000: syntax error, unexpected '=' at token "="
(293) : error C0501: type name expected at token "="
(293) : error C0000: syntax error, unexpected ')' at token ")"
(293) : error C0501: type name expected at token ")"
(298) : error C0000: syntax error, unexpected '=' at token "="
(298) : error C0501: type name expected at token "="
(298) : error C0000: syntax error, unexpected ',' at token ","
(298) : error C0501: type name expected at token ","
-
- Goblin
- Posts: 279
- Joined: Sun Feb 19, 2006 1:08 am
- jacmoe
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
- Contact:
I second that! Good initiative Sphinkie! And great to see that other are contributing as well!
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.