Product Chat / Vertex Shader Wing Animation

Author
Message
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 12th Jul 2020 10:27
So thought I'd share this shader that I built for Cogwheel Chronicles - it is a very light way of introducing animation for simple flying objects such as butterflies.
It can be used for birds or bats too - anything really that has wings, though as the shader is rendering and deflecting only a plane model, these need to be small creatures or only to be seen in the distance.
It is efficient and effective though, you can have swarms of flying winged entities given it is vertex animation and not resource intensive or texture heavy.

Attached are the files for a butterfly. To do other flapping flyers, make a copy and change the texture from a butterfly to something else - keep the alignment of the wings on the texture as for the butterfly and reuse the 'model' provided (flat plane with 6 vertices).

This is the type of shader usage that will be much harder to do (for GG users) with Max over Classic, but we'll see what Lee and Preben can cook up.

Anyway, something else for you to experiment with


Cheers.

(place wings_basic.fx in effectbank\reloaded folder, other files in an entitybank folder. If required the flap amount and speed can be changed at top of shader fx file.)




GPU: GeForce RTX 2070 SUPER PassMark: 14817

Attachments

Login to view attachments
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 12th Jul 2020 12:34
Awesome!
Thanks cybernescence - will have fun playing with this for sure

OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Jul 2020 15:08
You rule. Thank you.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 12th Jul 2020 15:24
Useful as usual, thanks ciber, nice one.

Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 16th Jul 2020 21:50
Sounds cool. This is faster than using a normal animation then?

I'm sure that shaders should be possible in max personally. Just look at how Wicked uses them Bound to be compatible. I think Lee avoids these questions or just says no, to avoid any failed promises now.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 16th Jul 2020 22:07
Quote: "Sounds cool. This is faster than using a normal animation then?"

Sure, it may help to fill the scene, especially when these are not the focus of the scene, just making the environment.
Shaders in GGMax will not come like in GG, not friendly modifiable, I'm afraid you will need VS and some C or C++ skills, to deal with.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-03-29 06:48:24
Your offset time is: 2024-03-29 06:48:24