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 - guiloic

Pages: 1 [2]
16
Support / oldStyle3DSLoader
« on: April 23, 2006, 11:24:49 am »
Thank you !

17
Support / Rotating blade...
« on: 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...
« on: 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 :

Quote
ERROR: 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.

Code: [Select]
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
« on: 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
« on: 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
« on: March 12, 2006, 06:14:32 pm »

22
Support / Apply texture to ground
« on: 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
« on: March 12, 2006, 11:56:25 am »
Thank you very much :)

Code: [Select]
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
« on: 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 :

Code: [Select]

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.

Pages: 1 [2]