Places to find sample scene models

Hi,



I am struggling in finding a scene model for my project. (something like town.zip provided by jmonkey). I want to develop a outdoor scene with 3 or 4 human characters. (a scene like few people are gathering around bus stand.)



If you guys know please direct me to some URLs to find such scene models, human character models. It would be a great help for me.



PS :This is not a commercial product. Just an academic project, English learning practice simulator. I am stuck in this modeling part these days as I am new to this subject area.



Thanks.

there are a lot of free to use models around the internet.

googling free 3D models should do it.

but you could consider using makeHuman free application (base on blender) http://sites.google.com/site/makehumandocs/Home

Thank you Nehon for your response. Really appreciate your advise on following problem as well.



I just followed the Hello Animation tutorial in the JME3 tutorial set. It was working fine for me. After that I added an OgreXml mesh to the Models folder and wanted to animate that instead of default Oto.mesh.xml. But I am getting a NullPointerException when it is starting. Please find the code block used to load this model and the exception thrown pasted at the end.



This cityboy 3D model I downloaded from the Google Sketchup Warehouse and I converted that into cityboy.mesh.xml using a Google Sketchup export plug-in.

Is that the cause to this error? Do I have missed something?


private void createPlayer() {
player = (Node) assetManager.loadModel("Models/cityboy/cityboy.mesh.xml");
player.setLocalScale(0.25f);
player.rotate(0, FastMath.HALF_PI, 0);
rootNode.attachChild(player);
control = player.getControl(AnimControl.class);
control.addListener(this); // Exception is thrown on this line.
channel = control.createChannel();
channel.setAnim("stand"); //Dodge,Walk, stand, pull, push
}
INFO: Child (cityboy-ogremesh) attached to this node (Root Node)
Mar 19, 2011 6:35:01 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at jkd.lrn.WiseOto.createPlayer(WiseOto.java:109)
at jkd.lrn.WiseOto.simpleInitApp(WiseOto.java:43)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)
at java.lang.Thread.run(Thread.java:662)

You should have a skeleton.xml file next to your mesh.xml file?

Ogre xml works like this : the mesh is in the mesh.xml (with vertex/bone weight data) and a skeleton.xml file that contains rig and animation data.

The sketchup exporter should have exported a skeleton.xml along with the mesh.xml file.

Thanks Nehon, for your direction.

Hi!



try something like this …



place your character in the assets, Models dir



sorry the mess … i’m testing several things … so …


AnimChannel channel_walk;
public void Loadboneco(){
AnimControl playerControl; // you need one controller per model

//Node player1 = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml"); // load a model
//Node player1 = (Node) assetManager.loadModel("Models/Ninja/Ninja.mesh.xml"); // load a model
Node player1 = (Node) assetManager.loadModel("Models/Sinbad/Sinbad.mesh.xml"); // load a model

//player1.setLocalScale(0.2f);

//player.setPhysicsLocation(new Vector3f(0, 10, 0));
playerControl = player1.getControl(AnimControl.class); // get control over this model
player1.setLocalTranslation(0, 5, 0) ;

//playerControl.addListener(this); // add listener
//playerControl.addListener(actionListener);
channel_walk = playerControl.createChannel();

//channel_walk.setAnim("Dodge");
//channel_walk.setAnim("pull");
//channel_walk.setAnim("stand");
//channel_walk.setAnim("push");

//Dance
channel_walk.setAnim("Dance");


//channel_walk.setAnim("Attack1");
/*
channel_walk.setAnim("Attack2");
channel_walk.setAnim("Attack3");
channel_walk.setAnim("Backflip");
channel_walk.setAnim("Block");
channel_walk.setAnim("Climb");
channel_walk.setAnim("Crouch");
channel_walk.setAnim("Death1");
channel_walk.setAnim("Death2");
channel_walk.setAnim("HighJump");
channel_walk.setAnim("Idle1");
channel_walk.setAnim("Idle2");
channel_walk.setAnim("Idle3");
channel_walk.setAnim("Jump");
channel_walk.setAnim("JumpNoHeight");
channel_walk.setAnim("Kick");
channel_walk.setAnim("SideKick");
channel_walk.setAnim("Spin");
channel_walk.setAnim("Stealth");
channel_walk.setAnim("Walk");
*/

inputManager.addMapping("Walk", new KeyTrigger(KeyInput.KEY_SPACE));
inputManager.addListener(actionListener, "Walk");

rootNode.attachChild(player1);

}


private ActionListener actionListener = new ActionListener() {
public void onAction(String name, boolean keyPressed, float tpf) {
if (name.equals("Walk") && !keyPressed) {

if (!channel_walk.getAnimationName().equals("Walk")) {
channel_walk.setLoopMode(LoopMode.Loop);
channel_walk.setAnim("DrawSwords", 0.50f);
//channel_walk.setAnim("Jump");
}
}
}
};