Main Menu
Menu

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.

Show posts Menu

Messages - guiloic

#16
Support / oldStyle3DSLoader
April 23, 2006, 11:24:49 AM
Thank you !
#17
Support / Rotating blade...
April 17, 2006, 07:03:46 PM
Thank you very much. But now I didn't use Animation, I prefer use child and rotate it directly... it's easier !
#18
Support / Rotating blade...
April 17, 2006, 02:20:01 PM
I've a problem ;( I try to rotate the blade of my helicopter... but it's difficult...

I have tried to use Animation, but I've this error :

QuoteERROR: The sizes of the Animation's Meshes (68) and the object's Mesh (1445) don't match!

I can't understand where is the problem.

public Helicopter(float coordX, float coordY, float coordZ) {
super(coordX, coordY, coordZ);
Object3D objs[] = Loader.load3DS("models" + File.separatorChar
+ "helicopter.3ds", 7f);
this.model = objs[0];

for (int i = 1; i < objs.length; i++)
this.model = Object3D.mergeObjects(this.model, objs[i]);

Texture tex = new Texture("models" + File.separatorChar + "gunmap.png");
TextureManager.getInstance().addTexture("gunmap", tex);

this.model.setTexture("gunmap");

this.model.build();
this.model.getMesh().compress();
this.model.translate((float)(coordX*pbm), -1 * (float)(coordY*pbm), (float)(coordZ*pbm));

Object3D[] animArray = new Object3D[8];
for(int i=0;i<animArray.length;i++) {
objs[0].rotateY((float)Math.PI / animArray.length);
Object3D obj = objs[0].cloneObject();
obj.rotateMesh();
animArray[i] = obj;
}

Animation anim=new Animation(animArray.length);
anim.createSubSequence("rotating blade");
for (int i=0; i<animArray.length; i++) {
  animArray[i].build();
  anim.addKeyFrame(animArray[i].getMesh());
}
this.model.setAnimationSequence(anim);

}


I'm sorry....
#19
Support / oldStyle3DSLoader
April 16, 2006, 07:39:55 PM
This problem occurs only on some configurations (but I'm sure that the same jpct library). On my Pc that run very well and I don't need to change anything. It's strange... I use the hardware renderer maybe it's a lwjgl problem.

Say me if you want to check the 3ds file. I have packaged my project on www.devat.org/pilotage.
#20
Support / oldStyle3DSLoader
April 11, 2006, 12:48:48 PM
hello there !
I have a problem in the console launching my app because the model i use is
not colored : it is black !
The error is :
                       try Config.oldStyle3DSLoader = true
This attribute is not in the API.
What to do ?
Thanks a lot.
#21
Support / Apply texture to ground
March 12, 2006, 06:14:32 PM
#22
Support / Apply texture to ground
March 12, 2006, 12:37:50 PM
I've a problem with texturing the ground. A texture is 256*256 but my 3DS is very very bigger....

What does I do ?
#23
Support / Textured 3DS model
March 12, 2006, 11:56:25 AM
Thank you very much :)

Object3D objs[] = Loader.load3DS("models" + File.separatorChar
+ "balloon.3ds", 1.5f);
this.model = objs[0];

for(int i=1; i<objs.length; i++) {
this.model = Object3D.mergeObjects(this.model, objs[i]);
objs[i].build();
}

this.model.rotateX(-3.14f / 2.0f);
this.model.build();
#24
Support / Textured 3DS model
March 11, 2006, 08:41:59 PM
I'm trying to use a textured 3DS model but as result I've a dark stain...

here is my code :


Object3D[] objs = Loader.load3DS("models" + File.separatorChar + "balloon.3ds", 1);
this.model = objs[0];
for(int i=1; i<objs.length; i++)
this.model.addChild(objs[i]);
model.build();


I have the same result in software and in hardware mode.