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 / mountains shader

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 23:16
These are some seriously pretty fractal mountains. I have tweaked the shader to run in AppGameKit V2. This shader is not my code, but an amazing example taken from glslsandbox.com that I have used in an attempt to learn more about running shaders in AGK.

Rather than pasting in bits of code, I have included the project folder as a zip this time.

Enjoy!

V2 T1 (Mostly)
Uzmadesign

Attachments

Login to view attachments
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 12th Jan 2015 23:17 Edited at: 12th Jan 2015 23:18
Screeny:



V2 T1 (Mostly)
Uzmadesign

Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Jan 2015 23:24
" "

Woah...

Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 13th Jan 2015 01:30
WOW, loving these shaders you are working on

It's late, I'm tired, out of coffee and now I'm wet.
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 13th Jan 2015 02:00
Not trying to sound like a teenage girl or anything, but OMG!


Using AppGameKit V1 Tier 1
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 13th Jan 2015 11:21
This one doesn't work for me either I get a precision error then a message saying shader is not valid...?


Using AppGameKit V2 Tier 1
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 13th Jan 2015 11:28
@BaxLash :
With the first line commented (mountains.ps), it works :



http://www.dracaena-studio.com
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 13th Jan 2015 11:37 Edited at: 13th Jan 2015 11:38
Interesting. :s I get the same error on a different machine.

Looks like some GPUs don't support precision (perhaps?). If you comment out the first line of mountains.ps it should work (although with the performance hit of using high precision by default).

so change:



to



(anyone know of a better way to manage this?)

EDIT: Beat me to it! Lol

V2 T1 (Mostly)
Uzmadesign
Harlequin
14
Years of Service
User Offline
Joined: 22nd Mar 2010
Location: Melbourne (AU)
Posted: 14th Jan 2015 04:13
Blendman,

how did you work out that was the error?

It's late, I'm tired, out of coffee and now I'm wet.
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 14th Jan 2015 16:55
@Harlequin : I have tested other shaders with the same sort of error

http://www.dracaena-studio.com
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 15th Jan 2015 12:39
That looks very impressive!
But what is it?

I'm moving house at the moment and my PC is packed ready to go so I can't test it. I can only post at work or on my iPad but I can't download on either

So, what exactly is the shader creating?
I presume it is a 2D image but is it a flat image or a skybox or something else entirely and how much control do you have over the result?

Thanks

AGK V2 user - Tier 1 & 2
World Class Multimedia
15
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Florida, USA
Posted: 17th Jan 2015 02:46
Is this a true 3D terrain or a rendered one? Could I use this with mouselook and wander around.

Unfortunately, if you change the screen size to higher res, it slows down the FPS quite a bit.

This would be AMAZING to create a outside 3D 3rd person or FPS game.

Very nice work. Thank you for sharing.

Mike

YOU DREAM IT - WE CREATE IT!
www.world-class-multimedia.com
For world-class virtual instruments - www.supersynths.com

Login to post a reply

Server time is: 2024-04-23 23:44:07
Your offset time is: 2024-04-23 23:44:07