Thanks, Egon - good tip. Will consider, but first I have to tackle the issue of porting my main app to Win7 - see my post in the support section on memory issues. And then finding a way to export these structures to a standard 3D file format..
By the way, a modified version of this was used in a press conference by Chanel to support a launch of a new cosmetics product in middle of last year. This is supposed to improve the firmness of the skin by enhancing the structural elements of skin cells, which are believed to be based on the tensegrity principle. The application was used together with some physical models to show how this works to the journalists.
What about the other way around? I am looking for a way to export jpct objects into a standard 3D file format, like Collada, 3ds, or skp. Has this been requested before?
Hi, I am moving my application to my new Windows 7 64 bit system and have memory problems when using the HW renderer (sw rendering works fine). I am thinking this may have to do with 32bit libs. The error I am getting is after creating the HW FrameBuffer (which doesn't show anything except the background in the specified color):
Loading Texture...karoXY.jpg Loading Texture...karoYZ.jpg Loading Texture...karoXZ.jpg Loading Texture...karobw.jpg Loading Texture...envmap-alu.jpg Java version is: 1.6.0_14 -> support for BufferedImage Version helper for 1.2+ initialized! -> using BufferedImage Software renderer (OpenGL mode) initialized Software renderer disposed Using LWJGL's AWTGLCanvas Adding Lightsource: 0 Driver is: RDPDD/null on NVIDIA Corporation / GeForce GT 220/PCI/SSE2 GL_ARB_texture_env_combine supported and used! FBO supported and used! OpenGL renderer initialized (using 4 texture stages) Hardware supports textures up to 8192*8192 in size! Additional visibility list (2) created with size: 4096 Additional visibility list (3) created with size: 4096 Additional visibility list (4) created with size: 4096 Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Bits.java:633) at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288) at com.threed.jpct.GLBase.convertTexture(Unknown Source) at com.threed.jpct.GLBase.setRenderTarget(Unknown Source) at com.threed.jpct.AWTGLRenderer.executeGL(Unknown Source) at com.threed.jpct.AWTJPCTCanvas.paintGL(Unknown Source) at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:288) at org.lwjgl.opengl.AWTGLCanvas.update(AWTGLCanvas.java:317) at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239) at sun.awt.RepaintArea.paint(RepaintArea.java:216) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:306) at java.awt.Component.dispatchEventImpl(Component.java:4706) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
The code runs OK in my old Windows XP environment. Any suggestions of what I could do? (I am using lwjgl 2.2.1 already)
Hello, I am trying to get curved surfaces appear reflective (as far as it's possible in jPCT, anyway). For a essentially black texture I was not able to achieve any highlights from point a light source, and also could not get a chrome effect. I tried specular reflections and environment mapping, but could not see any differences when switching these settings on or off Any ideas what I am doing wrong? Achim
no, not at all - I would be delighted. I also have an offline version of the applet that has expanded functionality, like optimizing the tensegrity structures according to various criteria, and picking struts or cables and changing their length using the mouse wheel. I could send you a screendump.
I am using jDeveloper 11.1.1 and was not able to achieve the right settings. For the compiler, I selected version 1.5 in the JDK compatibility setting, but this still produces the incompatible class version exception when trying to run with a 1.5 JRE (in "Libraries and Classpath"). This is why I kept the old applet version online, as a fallback. But if this doesn`t work either, I have to go searching.... Any ideas?
Achim
PS: I found out that I touched the old applet with a java 1.6 compiler. So for the time I reverted to the really old applet (which apart from the old rendering has some features missing). So the fall back should work now.
I converted my old Java applet simulating Tensegrity structures from pseudo 3D code to a proper 3D rendering using jPCT.
Check out http://complexity.xozzox.de/tensegrity.html, play around with it (there is some help below the applet, as well as an explanation what tensegrity structures actually are) and tell me what you think.