Amazing vertex shader animated shark - Page 2

Amazing vertex shader animated shark

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Info about "rotating wheels"

Post 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.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Amazing vertex shader animated shark

Post by Gota »

Im thinking zerg breathing building animations.
User avatar
Spawn_Retard
Posts: 1248
Joined: 21 Dec 2006, 14:36

Re: Amazing vertex shader animated shark

Post by Spawn_Retard »

Gota wrote:Im thinking zerg breathing building animations.
This would be cool.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Amazing vertex shader animated shark

Post by Argh »

That's really badass!
ruchiicoool
Posts: 2
Joined: 19 Jan 2010, 12:39

Re: Amazing vertex shader animated shark

Post by ruchiicoool »

hmm it looks nice
User avatar
Spawn_Retard
Posts: 1248
Joined: 21 Dec 2006, 14:36

Re: Amazing vertex shader animated shark

Post by Spawn_Retard »

i like the tree, that was kinda impressive.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Amazing vertex shader animated shark

Post by CarRepairer »

I love the swaying tree, awesome work!
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Amazing vertex shader animated shark

Post by Beherith »

All the props go to jK on this one, I just slapped his shader on my tree model.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Amazing vertex shader animated shark

Post by Gota »

So what is the effect of this on fps?
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Amazing vertex shader animated shark

Post 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.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Amazing vertex shader animated shark

Post by Jazcash »

I liked.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Amazing vertex shader animated shark

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Amazing vertex shader animated shark

Post by Beherith »

For me, I lose all terrain rendering when shadows are enabled, but works fine when I have them off. 8800gt
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Amazing vertex shader animated shark

Post by Das Bruce »

IIRC shadows were a hackjob we peer pressured SJ into writing far too quickly. That they break things should surprise nobody.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Amazing vertex shader animated shark

Post 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.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Amazing vertex shader animated shark

Post 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
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: Amazing vertex shader animated shark

Post 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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Amazing vertex shader animated shark

Post by FLOZi »

A new grass shader in general would be very nice, Spring grass looks incredibly dated; It looks better with it turned off.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Amazing vertex shader animated shark

Post by TradeMark »

"account suspended"

...

send the shark animation pls, maybe use jobjol?
Post Reply

Return to “General Discussion”