Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (624)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  libGDX-based ISO  (Read 5093 times)
0 Members and 1 Guest are viewing this topic.
Offline JFixby
« Posted 2014-08-12 10:48:47 »

Hi everyone!

Just want to share some funny stuff I do on libGDX.

Step 1:
 Draw one png-file

Step 2.
 Read it as RGB-function and print to console in ASCII format:

Step 3.
 Each color represents one type of terrain: grass, water, dirt or snow. Process the RGB function to extract material-joints (borders?)

water vs dirt

dirt vs grass

grass vs snow

Step 4.
 Compose results from the step 3:

Step 5. Render it!

Check out these polygons!

Hope you like it!  Wink

Have a nice day

my dev log:
Offline quew8

JGO Knight

Medals: 48

« Reply #1 - Posted 2014-08-12 11:07:07 »

It's elegant. But I kind of feel there should be a step 6 of rendering a navigable, 3D view of the terrain you create, otherwise what is the point of working out all those oh so pretty polygons. Also some of them look a little odd; I think I see some edges crossing terrain borders and maybe a couple of t-junctions (I presume you are meaning to avoid them). Looking at it in 3D is the only way to be sure they are working well I think.
Offline PandaMoniumHUN

JGO Coder

Medals: 32
Exp: 3 years

White-bearded OGL wizard

« Reply #2 - Posted 2014-08-12 12:19:21 »

Looks nice, I like it. Smiley
Not sure how this could be put to use though, maybe it would be good for some sort of a roguelike mini-map, or you could generate vortex terrains using your output image.
What are you planning to use this for?

My Blog | Jumpbutton Studio - INOP Programmer
Can't stress enough: Don't start game development until you haven't got the basics of programming down! Pointing
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JFixby
« Reply #3 - Posted 2014-08-12 18:33:58 »

Thanx for comments.

Yep right now I'm working on the step 6: to tilt the surface and to see it through isometric view.

If you look at the picture (one with captions), you can distinguish a 14Patch pattern (usual 9patch for concave sprites and 5 more for convex). Basically I'm revers-engineering the StarEdit (StarCraft Map Editor)

Here are the steps I'm trying to revert:

Step 1: Start StarEdit and draw random level.

Step 2: Turn-on grid to see sprites.

Step 3: Stretch everything 200% vertical.

Step 4: Rotate 45 degrees.

Step 5: Let’s see now

my dev log:
Offline JFixby
« Reply #4 - Posted 2014-08-16 23:15:42 »

a bit buggy, but you can see the concept

my dev log:
Offline CptSpike

Senior Devvie

Medals: 8
Projects: 1

« Reply #5 - Posted 2014-08-17 09:58:10 »

That's sexy
Offline lcass
« Reply #6 - Posted 2014-08-17 13:43:13 »

when you are converting to isometric , are you performing 3d calculations before or after you add the borders, because that might be causing the problem.Very nice though I like the feel of it.
Offline JFixby
« Reply #7 - Posted 2014-08-18 19:01:49 »

This was just a mistake in the rotation's matrix.
Here is the new update:

my dev log:
Offline JFixby
« Reply #8 - Posted 2014-11-14 14:51:29 »

Just attaching the first rasterization attempt:

my dev log:
Offline Olo

JGO Coder

Medals: 15
Projects: 3
Exp: 3 years

Metaphysical solipsism AFFIRMS your existence

« Reply #9 - Posted 2014-11-17 14:27:32 »

Wow, this is great! Keep up the good work man Smiley

-Can you fix it?
-No, I can't. But I can bypass it with one of these.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JFixby
« Reply #10 - Posted 2015-01-10 02:02:17 »

Here is a demo of the Map Editor:

<a href=";hl=en_US&amp;start=" target="_blank">;hl=en_US&amp;start=</a>

my dev log:
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

KaiHH (15 views)
2015-10-11 14:10:14

KaiHH (15 views)
2015-10-11 13:26:18

BurntPizza (42 views)
2015-10-08 03:11:46

BurntPizza (21 views)
2015-10-08 00:30:40

BurntPizza (26 views)
2015-10-07 17:15:53

BurntPizza (42 views)
2015-10-07 02:11:23

KaiHH (47 views)
2015-10-06 20:22:20

KaiHH (21 views)
2015-10-06 19:41:59

BurntPizza (38 views)
2015-10-06 19:04:48

basil_ (52 views)
2015-09-30 17:04:40
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!