Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Flipping camera

Author
Message
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 3rd Sep 2016 15:56
Hi all, I'm looking to put disorienting ill-effects into my game for some pickups, a couple of which I'd like to be where the camera gets flipped, either horizontally or vertically. Does anyone know if there's a way to do this currently?

My thought was that I might have to use a fullscreen shader to do it, but I'm fairly new to AppGameKit and I'm not quite sure where to start looking for that sort of thing... Any help would be much appreciated!
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 3rd Sep 2016 23:46 Edited at: 3rd Sep 2016 23:49
There are for sure other good tricks..but full screenshader came to my mind also
I can make you a shader tomorrow...
Do you want something like that also ? fish eye shader

Using AGKv2 Tier1

Attachments

Login to view attachments
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 4th Sep 2016 03:12
OOOhh, that sounds like it'd be cool!!
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 4th Sep 2016 14:54 Edited at: 5th Sep 2016 19:47
Here you go
Barrel distortion shader inverted the x axis

Using AGKv2 Tier1

Attachments

Login to view attachments
Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 4th Sep 2016 16:46
Tested and I get a crash. Changed this line in the shader.



to this

The coffee is lovely dark and deep,and I have code to write before I sleep.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Sep 2016 21:37
Quote: "Here you go
Barrel distortion shader inverted the x axis"

It says attachment deleted.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 4th Sep 2016 23:41 Edited at: 4th Sep 2016 23:42
Oh sorry
I fixed that vec4 thing (strange it works for me)
I'll reupload it tomorrow

Using AGKv2 Tier1
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 5th Sep 2016 01:02
I get attachment deleted, too
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 5th Sep 2016 19:47
Uploaded

Using AGKv2 Tier1
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 6th Sep 2016 01:51
Huzzah! Thank you
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 7th Sep 2016 12:28
Any tips on a horizontal and/or vertical screen flip shader?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 7th Sep 2016 15:22
If you are rendering to an image assigned to a sprite, you can SetSpriteFlip
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 8th Sep 2016 11:26
Nah, it's just a camera render. I guess I could overlay a sprite for the duration of the flip, but wouldn't that up the CPU usage a lot more than a fullscreen shader?
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Sep 2016 12:32
Sprites are rendered with a shader so shouldnt' make any difference as far as I know.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 8th Sep 2016 15:37
Interesting... Might give that a go then!

Login to post a reply

Server time is: 2024-04-24 03:34:45
Your offset time is: 2024-04-24 03:34:45