please help create a new "flag wave" type efect

For questions about using Classic.

Post » Mon May 25, 2009 3:33 pm

I know others have offered "they're solutions" to making grass blow in the breaze, but I really wont be satisfied with the platlife in my game project until it moves very much like those in Odin Sphere.

[url:1a1jgjq6]http://www.youtube.com/watch?v=wmbEVHI5_MQ[/url:1a1jgjq6]

Is anyone willing to make this shader effect (with adjustible paramiters so one could "icreases the wind force)? for my game project?

you can doweload and see my game as it currently looks here:

[url:1a1jgjq6]http://www.scirra.com/phpBB3/viewtopic.php?f=4&t=3729[/url:1a1jgjq6]


thanks much
B
2
S
2
G
4
Posts: 124
Reputation: 1,698

Post » Mon May 25, 2009 6:16 pm

I can't really tell because the player is moving around a lot but it looks to me like those plants are 3D plane objects with a mesh distort animation on them.

You can get a similar effect by adjusting the height and angle of individual plant leaves with a sin/cos oscillation. Just be smart about where you put your hotspots. They should go at the base of the leaf where it connects to the plant, or the base of the plant where it connects to the ground. When playing your demo it looked to me like the hotspots on your plants were closer to the center, which made the bases wobble back and forth.

I would only use that level of separate-leaf detail on very foreground plants, though. Having full plants and flowers in the mid and background should suffice, and only put composite leaf-by-leaf plants in the foreground.

Also, you can change the period and range of the Sine behavior so if you want the plants to do something like bend to one side in the wind you could bump up their angle period so they "flutter," as well as skewing them in the wind direction.

Ultimately though you might find you have more control over how they move by doing this with solely with events, rather than having Sine behavior on them. And you don't really need a shader.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon May 25, 2009 7:25 pm

You could also add a duplicate sine behavior to the objects. Although it might seem a bit redundant, you can have multiple sine behaviors running at the same time. This way you can have the objects doing something like angle, while also doing vertical.
You can also change some of the randomization settings for that "flag" effect.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Mon May 25, 2009 10:51 pm

I just said that :P

[quote:3maav4x8]You can get a similar effect by adjusting the height and angle of individual plant leaves with a sin/cos oscillation.[/quote:3maav4x8]

Uh... sort of.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 26, 2009 1:00 am

Yeah, I was a, just reinforcing what you said. :wink:
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 9 guests