Isometric view

Short question:

Is it possible to make a game in isometric view with JME?

The result should look similar to http://www.hthiele.de/siedler41.jpg

Short answer : Yes

camera.setParallelProjection(true);

but why make an isometric game when you can have real 3d.



just set up your camera angle, so that it faces like in the screeny.

I don't want to make a normal game. I want to use JME to render a giant map in parts (as fast and as nice as possible) and save the parts in single  .jpg files.

Later these parts have to fit to each other on their borders.

And this is why i think that I need Isometric view.

Does this a little special appliance of JME make sense and is it generally possible?




Think you can render to texture if that is what you are saying - just check the "HelloTerrain" tutorial under the Beginners stuff in the JME wiki - in it he renders his terrain texture to a new JPG i think. Im new to camera's as well, can anyone point us towards something to learn from (that isnt the one from the wiki with the standardgame)?? :slight_smile:

depends on what you are wanting to learn. there is … a bit of material out there if you know what to look for

Hm I need to know these things:

How to set up the camera for Isometric view (parallel perspective + camera position and angle) http://en.wikipedia.org/wiki/Isometric_projection

How to render in picture files and if possible don’t show the whole full screen game thing.

Can anyone please help me setting up the camara or the obect position to isometric view?


import com.jme.app.SimpleGame;
import com.jme.renderer.ColorRGBA;
import com.jmex.terrain.TerrainBlock;
import com.jmex.terrain.util.MidPointHeightMap;
import com.jmex.terrain.util.ImageBasedHeightMap;
import com.jmex.terrain.util.ProceduralTextureGenerator;
import com.jme.math.Vector3f;
import com.jme.bounding.BoundingBox;
import com.jme.scene.state.TextureState;
import com.jme.util.TextureManager;
import com.jme.image.Texture;
import com.jme.scene.SceneElement;
import com.jme.scene.Text;

import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.swing.*;


public class Engine extends SimpleGame {

    public static void main(String[] args) {
        AtlantisEngine app = new AtlantisEngine();
        app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);
        app.start();
       
       
    }

    protected void simpleInitGame() {
       
       
       
       
   
        // Finally a terrain loaded from a greyscale image with
        // fancy textures on it.
       
        /** Set up how our camera sees. */
        cam.setParallelProjection(true);
  float aspect = (float) display.getWidth() / display.getHeight();
//  cam.setFrustum( -100, 1000, -50 * aspect, 50 * aspect, -50, 50 );
  cam.setFrustum( -100, 1000, -50 * aspect, 50 * aspect, -50, 50 );
 
  cam.update();
 
       
       
         complexTerrain();
       
         
       
       
       
   
    }

    /**
     *
     * L

Can someone help me please? :’(