Page 2 of 3

Re: Info about "rotating wheels"

Posted: 18 Jan 2010, 19:21
by Pxtl
Caydr wrote:One of these days I'm going to learn what a shader is.
A program that runs on your graphics card, instead of your CPU. Traditional shaders are called "shaders" because they were originally used for texturemaps - that is, like a filter you could run on texture maps.

The later invention was vertex-shaders, programs that were run on the GPU to actually deform the model itself. You can even use them for skeletal animations - you feed the GPU the undeformed model and bone and weighting info, and then you feed the shader your bone-positions, and the shader program handles posing the vertices of the model according to the bone-positions.

That's similar to what we have here - a fish waggling its tail is a simple algorithm - pretty much a sine wave. That makes it ideal for a vertex shader.

Re: Amazing vertex shader animated shark

Posted: 18 Jan 2010, 21:29
by Gota
Im thinking zerg breathing building animations.

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 09:39
by Spawn_Retard
Gota wrote:Im thinking zerg breathing building animations.
This would be cool.

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 10:46
by Beherith

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 12:32
by Argh
That's really badass!

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 12:45
by ruchiicoool
hmm it looks nice

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 15:56
by Spawn_Retard
i like the tree, that was kinda impressive.

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 18:15
by CarRepairer
I love the swaying tree, awesome work!

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 18:38
by Beherith
All the props go to jK on this one, I just slapped his shader on my tree model.

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 20:39
by Gota
So what is the effect of this on fps?

Re: Amazing vertex shader animated shark

Posted: 19 Jan 2010, 20:47
by CarRepairer
Gota wrote:So what is the effect of this on fps?
Assuming you have a decent video card, probably very little. The FPS bottleneck is almost always the CPU load due to large games with many units.

Re: Amazing vertex shader animated shark

Posted: 20 Jan 2010, 00:15
by Jazcash
I liked.

Re: Amazing vertex shader animated shark

Posted: 21 Jan 2010, 00:25
by MidKnight
...Let's get this thread back on track. 8)

when I spawn an angelshark, everything below the water line fails to show up. This is with bumpwater and shadows disabled. Upon enabling shadows, the entire map goes into crazy day-glo colors. zooming out far enough alleviates the problem. Units are unaffected. I can see the shark below the waterline with shadows enabled.

Re: Amazing vertex shader animated shark

Posted: 21 Jan 2010, 00:32
by Beherith
For me, I lose all terrain rendering when shadows are enabled, but works fine when I have them off. 8800gt

Re: Amazing vertex shader animated shark

Posted: 21 Jan 2010, 01:04
by Das Bruce
IIRC shadows were a hackjob we peer pressured SJ into writing far too quickly. That they break things should surprise nobody.

Re: Amazing vertex shader animated shark

Posted: 21 Jan 2010, 20:51
by Argh
What does all this have to do with:

A. jK's cool shark.
B. jK's even cooler attempt to build a generic material API.
C. Beherith's awesome vertex-shader animated trees?

Please remove all this useless derail, this was a good thread.

Re: Amazing vertex shader animated shark

Posted: 21 Jan 2010, 21:00
by MidKnight
Argh wrote:What does all this have to do with:

A. jK's cool shark.
B. jK's even cooler attempt to build a generic material API.
C. Beherith's awesome vertex-shader animated trees?

Please remove all this useless derail, this was a good thread.
I am in agreement. Somebody, please respond to http://springrts.com/phpbb/viewtopic.ph ... 89#p406489

Re: Amazing vertex shader animated shark

Posted: 24 Jan 2010, 06:41
by hunterw
should be an option to put it on grass too, or if you wanna get real fancy, have the map do it based on current wind speed.

anyway thats why i never do skyboxes - no animation. no pretty screenshots, but im an animation whore. static skyboxes are so halflife 1.

Re: Amazing vertex shader animated shark

Posted: 24 Jan 2010, 07:24
by FLOZi
A new grass shader in general would be very nice, Spring grass looks incredibly dated; It looks better with it turned off.

Re: Amazing vertex shader animated shark

Posted: 25 Jan 2010, 17:33
by TradeMark
"account suspended"

...

send the shark animation pls, maybe use jobjol?