Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - einherjer

Pages: [1]
1
Support / Re: Texturing problem
« on: April 27, 2010, 06:48:30 pm »
FIXED:

Code: [Select]
private final String[] tName = { "glass01", "roof01", "stone03", "wall01", "wood01" };
tManager = TextureManager.getInstance();
for( int i = 0; i < tName.length; i++ ) {
tManager.addTexture( tName[i]+".png", new Texture( "models/map/"+tName[i]+".png" ) );
}

Works fine. JPCT is so cool :D

I got another question... What about directional lighting?
I mean without shadows. Just global object shading, the same effect that the point lights create.

2
Support / Texturing problem
« on: April 27, 2010, 02:56:03 pm »
Hello guys..
My model comes with 5 different texture files, RGBA png-s + lightmapping texture.
How should code it so that all textures go on the "right place"?
One more question.. Why is my model rotated 180 degrees? (I had to rotate model.rotateX(3.14f); )
Code: [Select]
Object3D[] modeldata = Loader.loadOBJ("models/map/Home01.obj", "models/map/Home01.mtl", 0.01f);
model = modeldata[0];
model.rotateX(3.14f);
model.build();
world.addObject(model);
world.getCamera().setPosition(new SimpleVector(0,6,-15));


Pages: [1]