Game Development Reference
In-Depth Information
You can see the following page after all the details are filled:
Here, you won't need the HTML or iOS project for testing models; however, if you
want to simply check those devices, you can go ahead and enable those projects.
Also, set the width and height to 800 x 480 in the project.
Open the MyModelTest.java file and remove all the auto-generated code and add
the following code:
package com.packtpub.libgdx.modeltest;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.PerspectiveCamera;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.g3d.Environment;
import com.badlogic.gdx.graphics.g3d.Material;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.graphics.g3d.ModelBatch;
import com.badlogic.gdx.graphics.g3d.ModelInstance;
import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute;
 
Search WWH ::




Custom Search