I'm brand new to jME with relatively little experience in Java.
So, I finally get jME to install right and get the SimpleGame tutorial done. Yay. Now I'm trying to go through the flagrush tutorial. I read through lesson one, and I'm trying to do lesson2. When I put in all the code, even copy-paste from the wiki, I get errors saying it can't find the properties symbol i.e:
I was looking through the Javadoc and the wiki. PropertiesIO should be handled by Abstract Game, which is handled in BaseGame, so when I include import com.jme.app.BaseGame I should have access then to PropertiesIO by default right? Even if that were true I went looking at the AbstractGame.java and it doesn't import PropertiesIO, and doesn't seem to link to it in anyway. So basically I'm running around in circles with no freaking idea of what's going on.
Also if I try to import PropertiesIO directly, it tells me that it's a unused import. I'd so greatly appreciate if someone could point me in a direction to run. Thanks!
(Although you have a missing comma in your arguments)
If that is wrong in the wiki will you please confirm that this is right and either change it yourself or let me know and I will :).
(These issue are developing due to having a new version of jME and still trying to support the old, and alot of the tutorials need to be updated to reflect that.)
I figured out the TerrainBlock, the tut calls for an extra boolean variable at the end which isn't shown in the Javadocs. Tut says it's for CLOD, which I see no reference to in Javadocs. Problem I'm seeing now is :
tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0));
tb = new TerrainBlock(etc.)
It doesn't want to initialize tb...
says it can't find the variable tb, but I thought I was defining it here.
I tried that, which initializes it as a local variable right? The problem is that in another method it doesn't recognize tb. I'll start on the java tutorials anyhow. . .
protected void initGame() {
scene = new Node("Scene graph node");
buildTerrain();
scene.attachChild(tb); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<doesn't recognize
//update the scene graph for rendering
scene.updateGeometricState(0.0f, true);
scene.updateRenderState();
}
/**
* will be called if the resolution changes
*
*/
private void buildTerrain(){
// Generate a random terrain Data
MidPointHeightMap heightMap = new MidPointHeightMap(64, 1f);
// Scale the data
Vector3f terrainScale = new Vector3f(20, 0.5f, 20);
// create a terrainblock
TerrainBlock tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0));
tb.setModelBound(new BoundingBox());
tb.updateModelBound();