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 ... 113 114 [115] 116
1711
Support / Texture Mapping
« on: August 10, 2006, 07:19:52 pm »
It is possible that the Loader class would flip some faces upon importing them, but there are no flipped faces on the file itself. I even tried flipping them wrong in an attempt to get them right, but it didn't work. I don't think this is the problem, but thanks for the suggestion.

1712
Support / Texture Mapping
« on: August 10, 2006, 06:42:32 pm »
No, I got it the first time around. Did you manage to texture map all of it?

I did the whole thing step by step, including reassigning the JPEGs on MAX, so I'll find it very strange if you managed to do it by that line alone.

1713
Support / Texture Mapping
« on: August 10, 2006, 05:59:04 am »
Done. Any insights would be appreciated.

1714
Support / Texture Mapping
« on: August 10, 2006, 05:23:05 am »
Software renderer.

And who's "us?"

1715
Support / Texture Mapping
« on: August 10, 2006, 04:08:36 am »
No, it's not the file names. And the texture coordinates are all right. And I'm not getting any out-of-the-ordinary messages (just the usual "resizing to 256 pixels ones, but that's for all of the textures and most of them work).

And the untextured parts render as flat and grey.

1716
Support / Texture Mapping
« on: August 09, 2006, 06:07:13 am »
Some parts of the model aren't coming out textured. I went so far as to load the file as an instance of awt/Image, drawing the image to the screen (which worked), and insantiating Texture from the Image instance. But the texture still won't load.

1717
Support / Texture Mapping
« on: August 09, 2006, 12:19:46 am »
Do you mean that instead of naming it "WINGTOP" I would have to name it "WINGTOP.JPG?" It worked, now, which I'm taking to mean that the textures have to be added before loading the mesh. Or is there another way? Thanks a lot for all your help so far.

1718
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);

1719
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...

1720
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.

1721
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);

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

1723
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);

1724
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.

1725
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.

Pages: 1 ... 113 114 [115] 116