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.


Topics - AGP

Pages: 1 ... 14 15 [16]
226
Feedback / Suggestions for Next Release
« on: August 16, 2006, 10:27:33 pm »
Apart from better lighting controls (already promised in the docs), how about a Camera.follow(Object3D)? Could either start its own thread, or take the Object3D's current position plus the camera's delta from it once. That would be cool.

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

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

229
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 ... 14 15 [16]