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

Pages: [1]
1
Support / Trouble running in OpenGL renderer
« on: May 09, 2012, 01:47:19 pm »
When I add:
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);
buffer.enableRenderer(IRenderer.RENDERER_OPENGL);

just after creafing my FrameBuffer, I get this error:
Quote
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
   at com.threed.jpct.GLHelper.findMode(Unknown Source)
   at com.threed.jpct.GLHelper.findMode(Unknown Source)
   at com.threed.jpct.GLHelper.init(Unknown Source)
   at com.threed.jpct.GLRenderer.init(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at com.threed.jpct.FrameBuffer.enableRenderer(Unknown Source)
   at org.orange451.game.gfx.Screen.<init>(Screen.java:36)
   at org.orange451.game.Launcher.<init>(Launcher.java:95)
   at org.orange451.game.Launcher.main(Launcher.java:25)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.opengl.Display
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   ... 10 more

Which other libraries (becides the jpct.jar) should I include in my buildpath to solve this issue?

2
Support / .setMesh(Object3D obj) doesn't carry the UV coords
« on: May 09, 2012, 03:54:07 am »
In a project I'm doing, I need to use the .setMesh() method on an Object3D object, and the paremeter passed into the .setMesh() is the mesh (.getMesh()) of another object3D object.
basically:
object2.setMesh(object1.getMesh());

However, when I applied a texture to object2, I found that object2's UV coords are all at 0,0 on the UV map.

Any ideas?

3
Support / Creating a polygon and UV mapping it
« on: December 10, 2011, 11:01:47 pm »
Hi!
I've recently gotten started with JPCT, and I was wondering if anyone could supply me with either an example or just some code of how to create a polygon, uv map it, and add it to the world.

Thanks!

Pages: [1]