Search found 321 matches

by gunn
Wed 27. Jun 2012, 20:24
Forum: Programming Help
Topic: Bad Rendering Result with the Jogl-Viewer
Replies: 12
Views: 2918

Re: Bad Rendering Result with the Jogl-Viewer

You can send it to gunn [@] math.tu-berlin.de.
by gunn
Sun 24. Jun 2012, 14:41
Forum: Programming Help
Topic: Bad Rendering Result with the Jogl-Viewer
Replies: 12
Views: 2918

Re: Bad Rendering Result with the Jogl-Viewer

This behavior in the JOGL backend is not correct; even if the normals of some faces are flipped with respect to others, the default behavior is to shade all faces, back- and front-facing, the same. So it will be good to get a copy of this data and see why this is not being rendered as it should. In ...
by gunn
Tue 5. Jun 2012, 21:03
Forum: Programming Help
Topic: Evaulating solid geometry
Replies: 1
Views: 989

Re: Evaulating solid geometry

What if there are several pieces of geometry with the same (x,y) coordinates but different z? Do you want only the "first" one? Then you'll also need to define what you mean by "first". Or you can get a whole list. Look at the class de.jreality.scene.pick.AABBPickSystem. It can be used to calculate ...
by gunn
Thu 31. May 2012, 14:45
Forum: Backends
Topic: Offscreen rendering in JOGL backend now uses FBO's
Replies: 0
Views: 1475

Offscreen rendering in JOGL backend now uses FBO's

I've just upgraded the JOGL backend so that offscreen rendering now uses GL frame buffer objects (FBO's) instead of pbuffers. The advantages are: it uses the same context as the one the viewer uses (so many funny bugs are avoided), it anti-aliases (4x4 linear subsampling), it can do big pictures w/o...
by gunn
Thu 31. May 2012, 12:03
Forum: Advanced Development
Topic: Multiple Views in One Window
Replies: 2
Views: 2138

Re: Multiple Views in One Window

Here's another idea. Use an instance of GLJPanelViewer, which is a subclass of JPanel. You can then add the viewing components of other viewers. I've worked out a simple example. Begin with the tutorial example de.jreality.tutorial.GLJPanelViewerExample and add the following code at the end: System....
by gunn
Thu 31. May 2012, 10:28
Forum: Advanced Development
Topic: Multiple Views in One Window
Replies: 2
Views: 2138

Re: Multiple Views in One Window

First, have you considered using undecorated frames to display the different views? They have no border and can be placed arbitrarily, to simulate the effect you are looking for. If you're still interested in pursuing the JOGL backend modification, read on: It should be possible to "extend" the JOGL...
by gunn
Thu 26. Apr 2012, 21:35
Forum: Programming Help
Topic: QuadMeshFactory generateEdgesFromFaces problem
Replies: 1
Views: 762

Re: QuadMeshFactory generateEdgesFromFaces problem

It looks like the coordinates of your scene may be quite small. In that case, I would suggest you try to adjust the appearance attributes TUBE_RADIUS and POINT_RADIUS to be .001 (for example) instead of .1. Also, you may need to set VERTEX_DRAW to be true in order to see the vertices. Finally, I'd e...
by gunn
Tue 27. Mar 2012, 20:40
Forum: Programming Help
Topic: Skew near edges of SceneGraph
Replies: 6
Views: 1564

Re: Skew near edges of SceneGraph

Cool! 8) I didn't think about that :o: A non-perspective camera is essentially "infinitely far away", and a rotation around an infinitely distant point can't be anything else but a translation! That fixes the problem without having to write a new tool at all. :D
by gunn
Tue 27. Mar 2012, 08:34
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

As I mentioned in a previous post, when I suggested saving a "screenshot" in jReality rather than an "image": the main advantage, as I understand it, of using offscreen rendering is the ability to specify arbitrary sizes. If, in fact, as you suggest, it's possible to set the canvas size arbitrarily ...
by gunn
Fri 23. Mar 2012, 21:53
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

One more idea on offscreen rendering: if the problem is in the display list (glCallList()) you can disable display lists by the following call to the top-level appearance ap:

Code: Select all

		ap.setAttribute(CommonAttributes.ANY_DISPLAY_LISTS, false);
by gunn
Thu 22. Mar 2012, 21:47
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

If the offscreen rendering doesn't work, have you tried the screenshot option? It's accessible under the menu item "File->Export->Screenshot". As the name implies, it saves a copy of the current JOGL viewing component. That means you can't make save images larger than your display, whereas offscreen...
by gunn
Thu 22. Mar 2012, 15:34
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

The offscreen rendering feature of the JOGL backend in jReality is one which I use quite a lot, so I'm a little surprised to hear that it's causing problems. I've even been working to improve the quality of the anti-aliasing, which is currently not working when you save the alpha channel. You can pe...
by gunn
Thu 22. Mar 2012, 12:36
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

Just to make sure we understand each other: Please confirm that you get the following printout to stderr (of course with different values) before the program exits: setting global aa factor to 4.0 Tile size x = 1212 Tile sizey = 900 Image size = 3636:2700 Allocating new pbuffer Also, the call the ca...
by gunn
Wed 21. Mar 2012, 22:18
Forum: Bugs
Topic: Offscreen Rendering exits suddenly
Replies: 16
Views: 4289

Re: Offscreen Rendering exits suddenly

Neo, Some suggestions, and questions: Try rendering w/o alpha. Does it print anything to stderr like "Tile size = ..." or "Allocating pbuffer" before exiting? What kind of system are you rendering on? How big an image were you rendering? If you have the source code (i.e., are a developer), you could...
by gunn
Mon 19. Mar 2012, 09:45
Forum: Programming Help
Topic: Skew near edges of SceneGraph
Replies: 6
Views: 1564

Re: Skew near edges of SceneGraph

(Am I losing my mind, or did the images in the original post change over-night? I remember a blue icosahedron, for example.) Anyway, the pictures that are there now helped me to see that there is something else going on here. The drag tool that is built in to jReality is not a translate tool, but ra...