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 / Janbo's grid shader - in agk store

Author
Message
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 23rd Jan 2018 01:27
How can I get the grid to start at .5, .5 instead of 0, 0?

Thanks.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 23rd Jan 2018 12:07 Edited at: 23rd Jan 2018 12:09
Hey, I wonder why one want the origin to be somewhere else than AGK's origin.
But I added the uniform GridOffset to the shader. This should solve your problem
Store: Grid Shader
Supertino
6
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 23rd Jan 2018 12:22
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 23rd Jan 2018 15:06 Edited at: 23rd Jan 2018 17:43
Quote: "wait there;s an AppGameKit store?! "

Really!

Where has this been hiding?!?

That is a great looking site.

I hope my stuff will be good enough for the store, because I want to sign up.

EDIT
My 1st item is awaiting approval.


Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 23rd Jan 2018 17:31
Quote: "Hey, I wonder why one want the origin to be somewhere else than AGK's origin."


if you make the grid 100x100 and place a 100x100x100 box at 0,0,0 it does not line up with the grid, I encounterd this in my 3D editor but got around it somehow, cant remember now

Janbo, is it possible to make a circula grid, like the one here: https://wiki.eveuniversity.org/images/9/9c/TacticalWithObjectSelected.jpeg
GarBenjamin
AGK Developer
7
Years of Service
User Offline
Joined: 30th Nov 2016
Location: USA
Posted: 23rd Jan 2018 19:58 Edited at: 23rd Jan 2018 19:59
Not to derail but I also completely forgot about the store.

I think they really need to promote it more because it seems like only a small % of users may know it exists. I mean why not put a very prominent text or banner image link at the top of the forum pages "Visit the TGC Store!"?

Hopefully it gets filled with plenty of pixel art sprites and environments and plenty of ultra low poly 3D.
TI/994a (BASIC) -> C64 (BASIC/PASCAL/ASM/Others) -> Amiga (AMOS/BLITZ/ASM/C/Gamesmith) -> DOS (C/C++/Allegro) -> Windows (C++/C#/Monkey X/GL Basic/Unity/Others)
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 24th Jan 2018 02:24
hey Janbo, because I my idea is to place a 1,1 object on the grid. But doing that does not place it flush on the grid. The items placed need to "lock" into the grid. For instance I want a floor piece to sit in the space between grids. So at 0,0 the object is actually sitting within 4 grids, which defeats the purpose of me showing a fancy grid, haha. Hopefully, that makes sense.

Thank you, sir!
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 4th Feb 2018 21:51 Edited at: 4th Feb 2018 21:54
hey Janbo,

I am getting an error when I try to run this on android. Line 136 in main.agc is Sync()



Any help, sir?

Thanks.

Attachments

Login to view attachments
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 4th Feb 2018 22:18
I believe the store is a third party, not directly run by TGC
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 4th Feb 2018 22:22
I have read online es gl 2.0 does not support derivatives. Is this the cause?

Login to post a reply

Server time is: 2024-04-24 23:48:55
Your offset time is: 2024-04-24 23:48:55