Challenge for Construct users

New releases and general discussions.

Post » Sat May 09, 2009 2:18 pm

i'm at work now, and i'm going to be pretty busy today when i get home, so i wont be able to take a crack at it til sunday probably, but this can be done. using resizing canvases alone or with lens shader and canvases
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat May 09, 2009 2:30 pm

sounds promising
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Sat May 09, 2009 4:58 pm

ive already thought about asking for something like this.

the only way i see it could be done is using a pixel shader. im not sure how i can explain what you need to do without a picture so here


youd need to map the layout area into a virtual hemi cylinder, and map the sprite as a virtual cylinder (or sphere depending on what shader youd need), then youd need to make the sprite reflect what was on that hemi layout. things farthest from the sprite would be extremely squished, ect like youd expect on a rounded objects reflection. then youd have parameters like reflectivity, and specularity. it would be pretty GPU heavy tho.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat May 09, 2009 6:13 pm

B
2
S
2
G
4
Posts: 156
Reputation: 1,762

Post » Sat May 09, 2009 6:37 pm

Hmm looking good
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Sat May 09, 2009 9:07 pm

That is it, actually :P

Nice.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sat May 09, 2009 11:31 pm

Here's my attempt at environment reflections based on the example image that Rich posted in chat last night:

http://dl.getdropbox.com/u/529356/Semi% ... ection.cap



This requires Shviller's Overlay Proper effect, you can get it here:
http://dl.getdropbox.com/u/762468/Overl ... per%29.zip
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun May 10, 2009 12:04 am

here's the method with the magnify pixel shader
I have alot of shady stuff going on here, so let me know if it runs like crap

[url:tjol6ftk]http://dl.getdropbox.com/u/1013446/reflector.cap[/url:tjol6ftk]



hey deadeye, I can't load yours because I don't have overlay proper
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun May 10, 2009 12:10 am

Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun May 10, 2009 12:31 am

Man, those both look great :)
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest