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 / World Game Mesh Template

Author
Message
Mesher
User Banned
Posted: 14th Mar 2020 12:57 Edited at: 14th Mar 2020 13:11
Hello

Just quickly put something together to create a world map game



It can be used for any types of mass world games if you care to use to get started.

Its been created in such a way that can destroy land by simply changing the vertexes near by and on a chunk system so its quickly to update the land on the go....

You can simply just go forever, if you put objects on the land for your app gameplay

Have fun in creating things..


PS. Land heights with possibly Perlin and possible worldmap chunk rolling is next
Bored of the Rings
User Banned
Posted: 14th Mar 2020 13:20
good job Mesher, nice and clean.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Mesher
User Banned
Posted: 14th Mar 2020 23:24 Edited at: 14th Mar 2020 23:36
Thanks... Will keep at this during the year - got 2 projects on the go this year and i aim to conclude them.

off topic - Stay healthy with yourselves and our loved ones with this corona virus going around too.

Ill catch up more with this soon

PS - just tried it and i was going forward for about 10 minutes and still not got to the end of the ground
Mesher
User Banned
Posted: 15th Mar 2020 14:53 Edited at: 15th Mar 2020 15:22
Just a little something for today



A little bit of perlin and walking on the terrain and a bit of ocean water in the valleys..

Can make it larger by all means by changing chunksize and worldsize on line 72/73

Try
chunksize=32
global worldsize#=20

It takes a while to load but not too long - but its HUGE!!! lol

The graphics is not pleasent, its just the normals set purposely wrong to see the effects of each segment on the map.

Each chunk in the world space is aligned perfectly to the next too which helps a lot.


Come back soon for infinite terrain by rolling chunks
Mesher
User Banned
Posted: 15th Mar 2020 20:24 Edited at: 15th Mar 2020 21:41
This is how we could do a rolling map



Will convert it into the above next weekend.

Use cursors to move on the map forever!!

EDIT.

Changed code.... Looks a bit drab on level 0 all the time

Going to get some rest for a few days..

Have fun


PS hang on, could this be minecraft now! just using AppGameKit commands - ray casting and proper add and removal.

What ever TGC been doing, but this seems to be working great now!!! - well done TGC for increased performances


Mesher
User Banned
Posted: 16th Mar 2020 19:00 Edited at: 16th Mar 2020 20:39
Sorry to ask folks, I just cant remember.

anyone got any good techniques on how we can move in the direction of where the mouse is pointing on screen.

So if we just keep hold of the forward button, instead of just always going in the positive Z direction, would like to move accordingly to where the mouse is on the screen.

Any advise would be great full

EDIT
Found the movecameralocal commands



works well,

Final result for today



Just keep hold of forward and move with your mouse

Add sun direction code - its fast to quickly see the effect, but can be slowed down on rotation if need

Also works on your local time to hopefully change colours of sky system on your local time

Nice, nice, nice


Have fun with it

Come back in a few days with more interesting stuff
Mesher
User Banned
Posted: 17th Mar 2020 20:49 Edited at: 17th Mar 2020 20:51
Added day/night sequence based on your actual local time that you play the app

Added a light source for walking in the dark



Add more features later in the week
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 17th Mar 2020 22:38
the terrain generation from the last post works really well and fast with exception to the way
the colouring of squares is displayed maybe its meant to be like that not really sure but good work

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Mesher
User Banned
Posted: 18th Mar 2020 09:52
Yeah thanks for testing - the triangles are a texture of some sort. I made it like that so can see how its made up and where the triangles are on the map etc. and to help me align it all together with no awkard alignments,


Its because of the normals that its doing that - will rectify that on todays update
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 18th Mar 2020 14:13 Edited at: 18th Mar 2020 14:13
I thought it might've been normals
fix that and then just have to texture

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Mesher
User Banned
Posted: 19th Mar 2020 01:05
Hi

Got a tough time going on at mo with mum, but ive tried to work out normals but just not happening, they go skew-whif all the time, maybe my calculations are wrong.

Any advise from greatness would be great.

Here is a sample what have so far,. i think i am normaizing vectors normal and normalizing them too but giving me strange results.

I dont know, cant think at moment.




blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Mesher
User Banned
Posted: 19th Mar 2020 01:41
Not arguing with mum, non of that, its more serious..

Hospitalised with lung C last week - i dont think it will - Jeeeeze..

Thanks i will review that post and adjust code accordingly, but i think i got everything right but looks wierd,

Thanks Blin0k for your inputs, more than welcomed.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Mar 2020 01:43
I sincerely hope it gets better matey. Good luck with it
Mesher
User Banned
Posted: 19th Mar 2020 02:59
What is going with my normals



Line 260 onwards, just looks and feel wierd -
Mesher
User Banned
Posted: 19th Mar 2020 03:42 Edited at: 19th Mar 2020 03:48
Why is one triangle different to the adjacent ones....

Argh!!

Mind bamboooz;ed with normals

Im afraid im going to have to ask some gudence cause its doing my head in. Ive tried every way way but loose..

jambo, Fubarbk, Santman, TomToad, Blin0k? Chifari anyone - what am i doing wtong....
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 19th Mar 2020 05:30 Edited at: 19th Mar 2020 05:31
Santman explained this issue on one of the threads and how to fix it but for the life of me I cant find it

and he is probably very busy atm with his own world builder

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Mar 2020 05:38
Mesher
User Banned
Posted: 22nd Mar 2020 18:53 Edited at: 22nd Mar 2020 19:14
Cheers guys - i think normals are correct now so been doing little bits on UV



Can tweak the constant LANDHEIGHT# to change the heights of the perlin

Hope some find it useful to learn and adapt

Come back soon with more if and when i get chance.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 22nd Mar 2020 21:22
Took a little longer to load but the size of terrain seems huge
cant help it but the textures seem a little out of place sometimes
but still very good perhaps an addition could be water which
would only have to be a plane with the possibility of a water
shader later. Definitely your best terrain so far (keep safe)

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Mesher
User Banned
Posted: 22nd Mar 2020 22:21
HI

Thanks for taking a look, the textures was just something quick to work out UV mappings etc - can take a look more on that soon to get good quality stuff

The ocean seems to be a great idea - i uncommented 113 and seem to got something an ocean via plane and yeah a shader on that plane will work great.

Catch up soon


Login to post a reply

Server time is: 2024-03-28 12:58:57
Your offset time is: 2024-03-28 12:58:57