Again Thank every body.
I do more examples, i explain this example and there result.
I modified CarTest, and i use my models, in this example mi model do NOT set Texture, because i think that the problem is a model, but.
I modified my code, and i use cartest terrain model (terascene.3ds). and do not set textures
, becouse i have a problem in code.
As well as this examples, i tried two more examples. In first example i add field.calcTextureWrap():
textureManager.addTexture("metal", new Texture(new FileInputStream("/home/miguel/perfectday_project/JPCTExm/textures/rocks.jpg")));
model = Loader.load3DS(new FileInputStream("/home/miguel/perfectday_project/blender_model/obj_export/montanya2.3ds"), 1);
Object3D field = model[0];
field.calcTextureWrap();
field.setTexture("metal");
field.setEnvmapped(Object3D.ENVMAP_DISABLED);
field.setCenter(SimpleVector.ORIGIN);
field.rotateX((float) (Math.PI /-2));
int size = (int) field.getScale();
System.out.println("SCALE:"+field.getScale());
field.setOrigin(SimpleVector.ORIGIN);
field.build();
worldx.addObject(field);
this code does not set Texture. In Secon code:
textureManager.addTexture("metal", new Texture(new FileInputStream("/home/miguel/perfectday_project/JPCTExm/textures/rocks.jpg")));
model = Loader.load3DS(new FileInputStream("/home/miguel/perfectday_project/blender_model/obj_export/montanya2.3ds"), 1);
Object3D field = model[0];
field.calcTextureWrapSpherical();
field.setTexture("metal");
field.setEnvmapped(Object3D.ENVMAP_DISABLED);
field.setCenter(SimpleVector.ORIGIN);
field.rotateX((float) (Math.PI /-2));
int size = (int) field.getScale();
System.out.println("SCALE:"+field.getScale());
field.setOrigin(SimpleVector.ORIGIN);
field.build();
worldx.addObject(field);
in this code set Texture but they are dont show ver well
I use Blender to model created. But i new Blender used, and i dont know if i exporting my model well. How do i exporting model to set uv cordinates? i need exporting in .obj o .3ds.
Thank every body for help me.