Search found 321 matches

by gunn
Wed 22. Aug 2012, 17:55
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4558

Re: GetCameraPathImage

Essentially what you say is correct. The offscreen rendering in the JOGL backend is, as noted already in the posts in this thread, tied to the window component associated to the instance of de.jreality.jogl.AbstractViewer. This is due to the nature of the rendering process in JOGL. Rendering occurs ...
by gunn
Sun 19. Aug 2012, 13:16
Forum: Bugs
Topic: skybox mirrored?
Replies: 3
Views: 957

Re: skybox mirrored?

If I look at a textured sphere from outside, and compare it to what a I see from inside, the images will appear to be reflected WRT each other. For example, text that is readable when viewed from outside will appear "backwards" when viewed from inside, since this is the same as if I am inside a stor...
by gunn
Fri 17. Aug 2012, 10:54
Forum: Programming Help
Topic: javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT
Replies: 10
Views: 4436

Re: javax.media.opengl.GL.glRenderbufferStorageMultisampleEX

Here's something you can do to make sure that you are loading the jars which you think you are loading. Insert somewhere at the beginning of your code: String cp = System.getProperty("java.class.path").replace(':', '\n'); System.err.println("cp = "+cp); For example, you could check which jogl.jar an...
by gunn
Sun 12. Aug 2012, 10:11
Forum: Bugs
Topic: closedCylinder ends remain untextured
Replies: 10
Views: 1864

Re: closedCylinder ends remain untextured

If you get around to doing more on this, please post a patch. I don't anticipate having time for further work on this.
by gunn
Fri 10. Aug 2012, 07:47
Forum: Programming Help
Topic: javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT
Replies: 10
Views: 4436

Re: javax.media.opengl.GL.glRenderbufferStorageMultisampleEX

Could it be that it's not a jni problem? The error message you are receiving is also consistent, in my experience, with loading an old jogl.jar, one that does not have the method javax.media.opengl.GL.glRenderbufferStorageMultisampleEXT(IIIII)V Another fact in favor of this interpretation is that th...
by gunn
Thu 9. Aug 2012, 14:00
Forum: Bugs
Topic: closedCylinder ends remain untextured
Replies: 10
Views: 1864

Re: closedCylinder ends remain untextured

The caps don't have any texture coordinates. It turns out I happen to have some old code to create disks with texture coordinates, either polar or rectangular. This can be easily adapted to produce the desired effect for the caps. I show how below. cappedCyl-02.png Note however that the transition f...
by gunn
Wed 8. Aug 2012, 14:40
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4558

Re: GetCameraPathImage

Correction regarding offscreen rendering with SoftViewer: there is a method renderOffscreen(int width, int height) in the viewer, which returns a BufferedImage. However, for some reason, the actual call to render() (line 453) is commented out in the version in the repository. Try un-commenting this ...
by gunn
Wed 8. Aug 2012, 14:02
Forum: Bugs
Topic: java.lang.NoSuchMethodException: when exporting image
Replies: 3
Views: 2467

Re: java.lang.NoSuchMethodException: when exporting image

Thanks, Ted. I've inserted the patch into ViewerApp.java and checked it into the repository.
by gunn
Wed 8. Aug 2012, 13:47
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4558

Re: GetCameraPathImage

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. Ideally one would be able to do offscreen renderer without having a...
by gunn
Tue 7. Aug 2012, 20:43
Forum: Bugs
Topic: java.lang.NoSuchMethodException: when exporting image
Replies: 3
Views: 2467

Re: java.lang.NoSuchMethodException: when exporting image

The message "Possibly no jogl libraries in java.library.path!" usually means you don't have the JOGL backend active, and hence are using the software backend, which doesn't support off-screen rendering. The problem is that the jogl.jar file is being loaded but the necessary native libraries are not ...
by gunn
Tue 7. Aug 2012, 09:37
Forum: Programming Help
Topic: Cleanest way to get Buffered Image without GUI?
Replies: 2
Views: 2156

Re: Cleanest way to get Buffered Image without GUI?

I missed this post while I was on vacation. I think I addressed the issue of off-screen rendering yesterday, in this thread: http://www3.math.tu-berlin.de/jreality/ ... ?f=8&t=618. Please post again if this isn't sufficient.
by gunn
Mon 6. Aug 2012, 12:11
Forum: Feature Requests
Topic: GetCameraPathImage
Replies: 17
Views: 4558

Re: GetCameraPathImage

I touched on this briefly in a reply I posted this morning to another thread you've initiated, but I'll repeat the relevant part here. There is no tutorial on off-screen rendering but the feature is supported and how to use it can be studied in the class de.jreality.ui.viewerapp.actions.file.ExportI...
by gunn
Mon 6. Aug 2012, 11:57
Forum: Bugs
Topic: Can only do full cylinders - Why not remove parameter?
Replies: 1
Views: 782

Re: Can only do full cylinders - Why not remove parameter?

The thetamax parameter is interpreted correctly for the Renderman backend (Primitives.java, line 475): ifs.setGeometryAttributes(CommonAttributes.RMAN_PROXY_COMMAND, "Cylinder "+r+" "+zmin+" "+zmax+" "+180.0/Math.PI * thetamax); but not by default for the other backends. Your suggestion is probably ...
by gunn
Mon 6. Aug 2012, 10:41
Forum: Installation
Topic: Improving the Eclipse tutorial?
Replies: 19
Views: 3927

Re: Improving the Eclipse tutorial?

Hi Ted, This is in response to your next-to-last post: Thanks. Now I just need to look around for examples of setting material, texture mapping, background images, writing to an offscreen BufferedImage that I can return to a caller in another language (MATLAB), and porting my existing Java3D code to...
by gunn
Thu 28. Jun 2012, 17:12
Forum: Programming Help
Topic: Bad Rendering Result with the Jogl-Viewer
Replies: 12
Views: 2918

Re: Bad Rendering Result with the Jogl-Viewer

Try replacing the class ViewerContentLoader with the following code. The results are quite surprising. The car's parts are properly colored, there are no more random black polygons. The question remains, why the geometry has to be merged into a single geometry (with over 300,000 polygons!) in order ...