2d isometric maps in libGDX - libgdx

Im a starting game developer and I'm having some issues with how to setup a isometric 2D map. I haven't got the slightest clue in how I should accomplish that. And what would be the easiest way to do this.
EDIT:
I already have looked up tutorials but they are mostly to make 3D isometric maps.
Thanks in advance

As I commented 2D array should do the trick, but check out this tutorial too:
https://gamedevelopment.tutsplus.com/tutorials/creating-isometric-worlds-a-primer-for-game-developers--gamedev-6511
Also for editing maps check on (free) map editors. I'm using one called "Tiled" and it has support for many different map types.
https://www.mapeditor.org/

Related

How to draw a pie chart in Libgdx

I need to represent data in the form of pie chart. I searched in LibGdx for libraries related to chart. I do not find any.
Questions
Do we have any library in LibGdx for drawing charts / Graphs ?
Any way to draw a smooth circle / pie in LibGdx ?
Any examples would be good
LibGdx is primarily a graphics API, and does not really have easy to use libraries set up for simple things like charts/graphs, mostly because its easy to create one yourself.
Another technology may suite you far better for your task.
Having said that, to draw a 2D circle you can easily use ShapeRenderer. See the link for the javadoc and some examples:
https://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/ShapeRenderer.html
You could also use ShapeRenderer to plot each portion and fill it at the same time as you draw them.
I don’t have any specific chart/graph tutorials, but you can search for "ShapeRenderer" or see here for a bit more info.
https://github.com/libgdx/libgdx/wiki/Scene2d
and:
https://github.com/libgdx/libgdx/wiki/Scene2d.ui

Simple Terrain and Terrain Following Camera Implementation in LibGDX

I apologize if this topic is duplicated, but I not find something simple on other topics.
I'm new in 3D with LibGDX and I'm trying to make a basic implementation of a 3D Terrain (even very simple, only an inclined plane) and a Terrain Following Camera.
I've googled but not found an example so simple as well for a beginner.
Can anyone give me an example code or indicate where I can find?
I've tried to use this: https://github.com/eerock/libgdx/blob/master/tests/gdx-tests/src/com/badlogic/gdx/tests/TerrainTest.java, but it does not work, because I'm using the LibGDX 1.9.3 with OpenGL 2.0.
Thanks in advance for any help.

Google Maps as texture map

Hasn't anybody thought about creating dynamic texture of Google Maps? So for instance, we create a simple plane and apply a texture to it that is going to be an actual map of Google (with all of it properties, like drag, zoom, etc.).
Would be nice to somehow deploy google map to a canvas element, grab it as a map for Object3D texture, hide it and listen to its changes (mousemove, etc.) and update the texture map again as it’s being changed.
Hasn’t anybody implement this already? Or maybe at least somebody has some thoughts on how to do this implementation??? May be some alternative that I don’t know about?
Correct me if I’m wrong, but I think that it would be nice to have Google Maps inside of THREE.js as a plugin or even as a part of library.
I have definitely thought about this and I'm not alone. You should be verrrrry prudent if you choose to do so, however: https://developers.google.com/maps/licensing
For student-ish projects you may be okay but don't be surprised if your game or real estate company gets a C&D letter in like 2 hours after release :)
Seems like this has already been done.
The Google Maps team joined with B-Reel to make the Google Maps Cube
Game, where you help a small blue ball navigate the streets of New
York, Tokyo, Paris and San Francisco (among others). As you move your
mouse the cube rotates and the ball rolls down the streets, bouncing
off buildings and making its way towards the goal.
No discussion on WebGL is complete without mentioning Mr. doob's
Three.js library at some point, and this is no exception: the Maps
Cube game makes use of Three.js for its gorgeous rendering. If you're
considering doing some WebGL work in a commercial setting, Three.js is
a really good place to start; it's a very nice library that will save
you a lot of headaches.
http://www.playmapscube.com/ (requires chrome).

ActionScript3 Image Morph/Warp

I'm working on an application in actionscript 3
and I need some script to produce effects on images, especially pictures of faces
similar to these:
https://play.google.com/store/apps/details?id=net.andhat.FunnyFaceFree
Any idea?
Thanks!
You'll want to use displacement maps. There are tons of tutorials that can be found on Google.

Drawing resizable (not intersecting) polygons

I have been searching everywhere but I could not find an answer. I
need to have drawing resizable polygons with mouse interaction but I
do not want irregular, overlapping or intersecting polygons in the
end.
Here is a simple example of drawing resizable polygons
http://www.wolfpil.de/polygon.html
You can easily create & resize polygons which is great. But I need an
extra functionality to detect intersections and NOT allowing weird
looking shapes/polygons.
You can see the problem in this video:
http://www.youtube.com/watch?v=zou2jcGM8zw
The only solution for that problem I found at http://www.wikimapia.org. They have added features to handle the problem.
You can see it in this video: http://www.youtube.com/watch?v=K7-K0k2D-2A
I spent 3 days trying out to achieve something like this. I have gone
through wikimapia's javascript code but it is way too complex for me
to understand.
In sum, it does not have to look as fancy as as wikimapia's. I just
need resizable polygons which do NOT intersect while resizing or
adding new points to it. Can you give me any suggestions how to
achieve that?
Thank in advance.
Depending on how many points that you allow, a naive, simple O(N^2) line intersection algorithm suffices. Algorithmically this is not the best solution, but for starting out it's the most accessible for a beginner in computational geometry.
For starter, see Wikipedia article on line segment intersection. One of its links has an easy to understand explanation on how to compute the intersection point of two line segments.
Good luck!
While this is not a complete answer, note that the example you supplied appears to be using the Geometry Controls from the GMaps Utility Library, which is an open source project hosted on Google Code.
You can check the full source code in the Google Code browser.