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

Pages: [1]
Support / TextureManager.flush()
« on: July 16, 2008, 06:19:58 pm »
Why is it, that I get a NullPointerException when rendering and having flushed the texture manager beforehand. I even add new textures to the texture manager after calling TextureManager.flush(), but when I call world.renderScene(...) I get a NullPointerException which originates at "com.threed.jpct.Object3D.render(Unknown Source)". Things work fine, when I don't flush the texture manager...unfortunately I would soon run out of memory when not being able to flush the useless textures out.

Did I get something wrong with TextureManager.flush() ?

Support / Mixed up vertex indices
« on: July 01, 2008, 01:28:43 pm »

Is there any way I can make jPCT preserve the vertex indices as I load a file? I've created a 3ds file containing 3 models and I need to do some transformations on them that depend on special vertices in the models. My problem is that the models are displayed correctly, but the vertex indices don't match my 3ds file. So e.g. when I want to access vertex #57 in model #3 I don't get the expected vertex. I'm using a GenericVertexController for accessing the vertices by the way.

I'd appreciate any help. Thanks!


Support / Same 3ds object with different textures
« on: May 19, 2008, 07:10:27 pm »
Hey! A question concerning texturing:

I'm loading a textured 3ds model and it's respective textures. So far everything works fine and the model is displayed correctly. Now I'm running into problems, since I want to use the same model again in the scene, but with a different texture attached to it. Is there any way I can alter the names of the textures referenced by the 3ds model, so I can add another texture to the TextureManager without replacing my old one.

Appreciate any help!


Support / Model import produces strange results
« on: May 08, 2008, 06:31:05 pm »
Hey there!

I'm new to jPCT and just trying to get into the basics. Therefore I just tried to adapt the Hello-World example, that comes with the API, so that it loads and shows an external model instead of the box, usually displayed. I got myself a high poly model of an elephant (which can be found here: and imported it using the following code:

Code: [Select]
char c=File.separatorChar;
Object3D [] buffer = Loader.loadOBJ("models" + c + "elepham.obj", null, 0.05f);
elephant = buffer[0];



So far, so good. Everything compiles well and I can run the example, but the output is totally weird, as you might see in the image. What's wrong here? Is it possible, that the normals get screwed up somewhere? I have to use Software-Rendering, could this be the reason? I'm really stuck here, so I appreciate every kind of advice! Thanks!


Pages: [1]