Libgdx how i create a 3D Low-Poly Terrain with chunks - java

dear stackoverflow community,
I have now idea, how i can create a Low-Poly 3d Terrain in Libgdx,
By googling i found remains from the libgdx blog or website they can't help me, but by the research nothing what can help me.
I create a Value Noise but it does not work and i think its not the right way to do it.
Do you know a good tutorial or websites? ^^

LibGDX is not a game engine so don't expect any "generateTerrain()" method. You need to implement it yourself.
Here you can find general information about how to use libGDX for 3D.
And here you can find actual code that creates a height map.

Related

Mini2dx - Can't find tutorials

I don't know if this is the right place to ask, but i looked for a new 2D game engine and decided that i want to use Mini2Dx. It is a 2D Java Game Engine which has some already prebuilt features like UI-Elements, Particles, etc. The engine itself is based on LIBGDX.
Even though i really want to use it, I can't find any tutorials. Except for a spanish tutorial, that I don't understand.
Tutorial: https://www.youtube.com/watch?v=gkDpfBCo_XI&list=PLTd5ehIj0goOYxN4HotZAY4uphbgFTQ_c
Thank you!
Sadly mini2Dx is not in trends so don't have video tutorial in English.
But you can use documentation on his github wiki also you can check this game for reference that is sample game of mini2Dx.
There is also active community on his reddit page, that may help you in your development.

Create Water In Libgdx

I am develooping a game in libgdx with box2d.
I spent hours of searching for a tutorial or somthing that explain how to create water in libgdx with box2d. I can't find how to do this. If somone have an idea it will very help me.
How to create water in libgdx with box2d?
I am really need your help.
Install this libgdx/box2d android app, run it and then choose "Buoyancy" to see if that is what you are looking for. It is open source and the link for its github is in the app's description.
If you prefer, here is directly to their Buoyancy test class:
https://github.com/Leakedbits/Codelabs/blob/master/codelabs/src/com/leakedbits/codelabs/box2d/BuoyancySample.java
You may want to try Google's liquidfun Liquidfun integration with libgdx.
liquidfun is an extension to box2D. So it has additional functionality to create particle groups that behaves like liquids.
I successfully tried this libgdx liquidfun extension in a sample libgdx project.

How to save a game in LWJGL?

I'm working with LWJGL for the first time, and Im enjoying it. I'm having a slight problem finding tutorials about things like making main menu, or saving/loading game state/information. Are there any decent tutorials available for this kind of thing? Any help is appreciated.
Well depending on what you're doing. A good idea for saving and loading is to use an XML file for each save. You could store any map data, or character data inside that file, then read all of that information when loading.
There are actually some pretty good tutorial series on YouTube:
TheCodingUniverse - http://www.youtube.com/playlist?list=PL19F2453814E0E315 (33 Videos so far)
There are also a lot more random tutorials on youtube if you just search for LWJGL tutorials.
Also if you plan on making 2D games, I would check out Slick2D. It's basically a 2D engine built off of LWJGL, it can be very helpful in rendering graphics, and stuff of that nature. Keep in mind it's only for 2D though, if you want something like that for 3D, I would check out JMonkey
The forum Java-Gaming can also be a useful place, these are some of the resources I used when first learning stuff with LWJGL. In my opinion I think going with a library like Slick or JMonkey is the way to do things, because they've done the stuff that is needed for every game, and leave you to make your game.

Android Image editing/warping with Java?

Hopefully not making this too vague... but I have been dealing with a lot of image scaling and manipulating with an app I'm working on and wanted to know:
Is it possible/feasible to warp images using java code and if so, is it possible? I have read up on JAI but can't seem to grasp it very well. Is there any form of built in implementation that would work with Android 2.3 or higher?
Any tutorials or examples that someone may have come across would be a great help as I have been researching for a while and can't seem to gain any ground.
End goal: to be able to warp an image (point to point by pixels) in multiple places and then saving the bitmap. This would be processed behind the scenes and show the user the end result.
do you have an example of the kind of warping that you want to do? It's certainly feasible but you'll probably end up doing pixel-by-pixel manipulation to generate the warped image.
there is a previous discussion here:
android image processing tutorial?

Seeking help in a basic, bare bones method of creating a 2D OpenGL-ES 2.0 Game

I have made many Android applications that use Java code and the XML layouts, however I am very new to OpenGL ES. I have programmed games in Swing Java, including pong, and an intermediate level 2d platformer (with a map editor, too!). I have extensive knowledge in Java, however, OpenGL is a new doorway I wish to open.
Using guides online, I have made simple things in OpenGL ES, including a cube that I manually mapped the co-ordinates for (which was a very fun experience), and drawing a triangle on the screen.
My question is, how can I make a 2d game with OpenGL ES? Now, what I've tried doesn't quite work well, as the images I draw arent to scale, and no matter what guide I use, the image is always choppy and not the right size on my Nexus S that I am debugging to.
What I need to learn to do is, be able to draw images and objects to the screen with OpenGL ES, and learn how to perform a game loop. I havent looked into a game loop in Android, but will soon. What I want to master first is drawing crisp, HD images to the screen, which just won't work for me.
If you require me to post examples of what I have done in the past, of course I will. But I am hoping you can help me with a fresh start. Thank you.
TL;DR: How to draw crisp, HD, 2D images to the screen using OpenGL ES, and how to have a game loop in Android?
You probably heard of Cocos2d, a 2d gaming framework that works as a wrapper on OpenGL.
It was originally developed for iOS, but it was ported to Android to.
The project page:
https://github.com/ZhouWeikuan/cocos2d/tree/master/cocos2d-android
Great starters guide:
http://dan.clarke.name/2011/04/how-to-make-a-simple-android-game-with-cocos2d/

Categories

Resources