Cylinder shader

Get help using Construct 2

Post » Thu May 09, 2013 3:14 am

Is there a shader handy that makes sprites warp like they're on the surface of a cylinder instead of a sphere (like the one in the example)?
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
57
S
15
G
5
Posts: 164
Reputation: 7,948

Post » Wed May 15, 2013 1:14 pm

Actually I've heard of a shader that warps stuff based on a height map... that would be perfect.

Looks like the Lense Shader does exactly this.

...you have to make the source hightmapped like you want with brightness, and make your sprites that are going to wrap around it "Destination on top" rendered. Works real nice like...sinistar992013-05-17 18:55:02
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
57
S
15
G
5
Posts: 164
Reputation: 7,948

Post » Fri May 17, 2013 1:57 pm

The Lense Shader seems to do this. I'm working on an idea of wrapping shadows around a shape and the game is played in shadows. This seems to work.

Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
57
S
15
G
5
Posts: 164
Reputation: 7,948

Post » Fri May 17, 2013 1:58 pm

...you have to make the source hightmapped like you want with brightness, and make your sprites that are going to wrap around it "Destination on top" rendered. Works real nice like...
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
57
S
15
G
5
Posts: 164
Reputation: 7,948

Post » Fri May 17, 2013 3:44 pm

Edit button is your friend, friend.
B
21
S
7
G
4
Posts: 229
Reputation: 3,466

Post » Fri May 17, 2013 6:56 pm

Ah. I'll get to know that button from now on... No more posterbating. :)
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
57
S
15
G
5
Posts: 164
Reputation: 7,948


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, blackhornet, giorgio1982 and 1 guest