Search found 57 matches

by ted
Fri 10. Aug 2012, 18:12
Forum: Programming Help
Topic: javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT
Replies: 10
Views: 4436

Re: javax.media.opengl.GL.glRenderbufferStorageMultisampleEX

Thanks for the input. I'll try changing the order of the jars in the path and classpath of MATAB in case there's an older jar earlier in MATLAB's library path or classpath that's messing things up... Beyond that, I'm not sure what else I might try. Dynamic libraries are often such a pain to deal wit...
by ted
Fri 10. Aug 2012, 03:18
Forum: Installation
Topic: Improving the Eclipse tutorial?
Replies: 19
Views: 3928

Re: Improving the Eclipse tutorial?

If you develop something similar for MATLAB, we'd love to have it, please post a tutorial code and we'll integrate it into the tutorial site. Working on that but need some help on one issue that seems to be related to JNI: see http://www3.math.tu-berlin.de/jreality/phpbb/viewtopic.php?f=3&t=623 Ple...
by ted
Fri 10. Aug 2012, 03:13
Forum: Programming Help
Topic: javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT
Replies: 10
Views: 4436

javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT

Any idea how to fix this or what it means or what it's trying to do? I'm trying to call JReality from MATLAB through a class that I wrote (below the error) Here's MATLAB session with the error. You can see that I set up the librarypath the way it sounds like it should be set up, but it seems it coul...
by ted
Thu 9. Aug 2012, 04:45
Forum: Bugs
Topic: closedCylinder ends remain untextured
Replies: 10
Views: 1876

closedCylinder ends remain untextured

closedCylinder caps are not textured, even when a texture matrix is specified. package throwaway; import static de.jreality.shader.CommonAttributes.POLYGON_SHADER; import static java.awt.Color.white; import static java.lang.Math.PI; import java.io.IOException; import de.jreality.geometry.Primitives;...
by ted
Wed 8. Aug 2012, 21:54
Forum: Feature Requests
Topic: link from BB back to jReality.de
Replies: 3
Views: 1059

link from BB back to jReality.de

Could the jReality.de title at the top of this page be easily turned into a link?

It would help ease navigation back and forth between the main site and the forums.
by ted
Wed 8. Aug 2012, 19:42
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4578

Re: GetCameraPathImage

Thanks for the quick response! I was able to remove the invokeLater() by replacing the frame.setVisible(false) with v.render(). The latter call guarantees that the JOGL renderer is initialized properly. It forces a render into the viewing component of the Viewer. Sounds simple eough, but I get a nul...
by ted
Wed 8. Aug 2012, 13:00
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4578

Re: GetCameraPathImage

After a lot of chopping down to isolate the required code, this is what I came up with: package de.jreality.ui.viewerapp; import java.awt.Component; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; import de.jreality.geometry.Pr...
by ted
Tue 7. Aug 2012, 21:47
Forum: Bugs
Topic: java.lang.NoSuchMethodException: when exporting image
Replies: 3
Views: 2472

Re: java.lang.NoSuchMethodException: when exporting image

OK I'll try that. Maybe the fix is to catch the exception and print out a message to that effect. Thanks. ### Looking at first glance there's a README file. It might be appropriate to just pop up a dialog that reads the README and displays it on exception - or just dump it to System.err where the sh...
by ted
Tue 7. Aug 2012, 20:38
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4578

Re: GetCameraPathImage

If you're using an instance of JRViewer, this method is available via the menu item "File->Export->Image...". FYI, it uses an OpenGL FrameBufferObject to implement the offscreen rendering, allowing antialiased images of up to 8K x 8K, at least on my machine. It sounds like you're interested in more...
by ted
Tue 7. Aug 2012, 11:31
Forum: Bugs
Topic: java.lang.NoSuchMethodException: when exporting image
Replies: 3
Views: 2472

java.lang.NoSuchMethodException: when exporting image

Using Apple.MacBookPro.OSX.SnowLeopard.Eclipse.Juno: jreality 5494 [http:fs.math....]>->Replace With->Latest from repository jreality>src-ui>de.jreality.ui.viewerapp>ViewerApp.java 5037>->Run As->1 Java Application View->Show bean shell [JRealityBeanShell]>self.setGeometry(Primitives.sphere(20)) Fil...
by ted
Mon 6. Aug 2012, 20:15
Forum: Installation
Topic: Improving the Eclipse tutorial?
Replies: 19
Views: 3928

Re: Improving the Eclipse tutorial?

Thanks Gunn - I'll take a closer look at that code in particular. Any general advice you can give about its idiosyncrasies will be helpful. To see how to use jReality to communicate with Mathematica see the example http://www3.math.tu-berlin.de/jreality/mediawiki/index.php/Use_JLink_to_read_from_Mat...
by ted
Sun 5. Aug 2012, 08:54
Forum: Bugs
Topic: Can only do full cylinders - Why not remove parameter?
Replies: 1
Views: 785

Can only do full cylinders - Why not remove parameter?

If anything other than Math.PI is specified in the thetamax parameter, it throws Exception in thread "main" java.lang.IllegalArgumentException: Can only do full cylinders at de.jreality.geometry.Primitives.closedCylinder(Primitives.java:484) at de.jreality.geometry.Primitives.closedCylinder(Primitiv...
by ted
Fri 3. Aug 2012, 11:51
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4578

GetCameraPathImage

JReality renders very nicely. Thanks for all your hard work in it. One thing it seems to lack: cameras taking individual pictures on demand. I propose adding a method BufferedImage viewer.GetCameraPathImage(SceneGraphPath cameraPath, int width,int height) or BufferedImage scene.GetCameraPathImage(Sc...
by ted
Fri 3. Aug 2012, 05:29
Forum: Programming Help
Topic: Cumulative transform between two nodes?
Replies: 3
Views: 1531

Re: Cumulative transform between two nodes?

I just ran across these two methods that retrieve the path, given a node or a name. static List<SceneGraphPath> SceneGraphUtility.getPathsBetween(SceneGraphComponent begin, SceneGraphNode end) static List<SceneGraphPath> SceneGraphUtility.getPathsToNamedNodes(SceneGraphComponent root, String name) W...
by ted
Fri 3. Aug 2012, 04:18
Forum: Programming Help
Topic: Proper way to remove a component
Replies: 1
Views: 974

Re: Proper way to remove a component

No guarantees, but you could do a test to check for memory leaks by monitoring freeMemory() 1. check a = freeMemory() 2. construct your structure 3. check b = freeMemory() 4. remove your structure 5. call gc() // not guaranteed to do anything, unfortunately 6. Check c = freeMemory() 7. Repeat until ...