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

Pages: 1 ... 100 101 [102]
1516
Support / Texture Mapping
« on: August 08, 2006, 07:33:12 pm »
My x-wing is being loaded from a 3ds file. Upon loading it, the texture files are listed on the command prompt. Is it supposed to load texture-mapped, or am I supposed to do something else.

The 2-part wings, on Egon's suggestion, were loaded separately, and I've even tried getting the instance to Texture Manager and adding the wings' top texture. The following code is what I tried. Am I doing something wrong? Or am I supposed to call something during the rendering process?

   TextureManager manager = TextureManager.getInstance();
   Texture wingTop = new Texture("./WolfXWing/WINGTOP.JPG");
   manager.addTexture("WINGTOP", wingTop);

1517
Support / Object3D.animate(float)
« on: August 07, 2006, 12:58:20 am »
Thanks. I went with b and it works great. Also, I want to thank you for the great work you did with the engine. Please don't ever discontinue it!

Now, for the texture-mapping...

1518
Support / Object3D.animate(float)
« on: August 06, 2006, 11:59:09 am »
No, of course not. How would you change it so that I get a thirty-frame interpolation of the x-wing opening its wings?

I'm sure it seems obvious to you but the one thing I've learned in life is that once we learn something we forget what it is we didn't understand about it in the first place. I've observed this many times with my college professors as with myself.

1519
Support / Another Question
« on: August 06, 2006, 08:14:44 am »
The following code is supposed to make a 30-frame animation of the X-Wing opening its wings. Only, obviously, it doesn't or I wouldn't be here. :-) What's wrong with it? Any help is appreciated.


   Animation wingAnimation = new Animation(30);
   Object3D[] parts = Loader.load3DS("./WolfXWing/xwing2.3ds", .001f);
   Object3D xWingOpen = Object3D.mergeObjects(parts[0], parts[1]);
   for (int i = 2; i < parts.length; i++)
         xWingOpen.mergeObjects(xWingOpen, parts);
   xWing.build();
   xWingOpen.build();
   wingAnimation.createSubSequence("Closed");
   wingAnimation.addKeyFrame(xWing.getMesh().cloneMesh(true));
   wingAnimation.createSubSequence("Open");
   wingAnimation.addKeyFrame(xWingOpen.getMesh());
   wingAnimation.setInterpolationMethod(Animation.LINEAR);
   xWing.setAnimationSequence(wingAnimation);

1520
Support / Object3D.animate(float)
« on: August 05, 2006, 09:16:50 pm »
Oh, that clears it up. Thanks a lot.

1521
Support / Object3D.animate(float)
« on: August 04, 2006, 11:46:37 pm »
My X-Wing is supposed to open its wings completely at the end of its animation, but when I call animate(1f), nothing happens. I've tried rebuilding the model, but nothing happens.  Thanks for any help.

By the way, the file consists of 37 model pieces, all merged into a simple Object3D. The following code merges them:

   Object3D[] objects = Loader.load3DS("./WolfXWing/xwing.3ds", .001f);
   xWing = Object3D.mergeObjects(objects[0], objects[1]);
   for (int i = 2; i < objects.length; i++)
         xWing = Object3D.mergeObjects(xWing, objects);

1522
Support / can you provide support for ase format?
« on: August 04, 2006, 11:22:58 pm »
I wrote my own .obj reader which just reads the geometry with no texture data if you want. I have to make it work with JPCT but that should only take me a few minutes once I get used to JPCT.

1523
Support / Tutorials or Help
« on: August 04, 2006, 06:52:52 am »
Thank you both, particularly Melssj5 for pointing out the Config class. It helped a lot.

1524
Support / Tutorials or Help
« on: August 02, 2006, 11:58:55 pm »
Hello. I wanted to start writing programs with JPCT but I need some sort of getting started tutorial. Does anyone know of one.

I am a very good Java programmer, and I did write a program that draws an X-Wing with JPCT and moves the camera around by just reading tha API docs, but I'm not great at 3D graphics programming and a bunch of weird things are happening. The X-Wing isn't onscreen when I start the program, and it disappeard very fast as I zoom out. I've tried increasing FOV but that didn't help.

Also, I'm sure my code has some redundancies because, as I said, I wrote it by just reading the APIs.

Pages: 1 ... 100 101 [102]