Search found 321 matches

by gunn
Mon 28. Dec 2015, 12:05
Forum: Advanced Development
Topic: Remove hidden geometry
Replies: 1
Views: 846

Re: Remove hidden geometry

This sounds like a difficult problem in geometry processing. I'm not aware of any general purpose algorithm to achieve this goal, short of rendering the scene. If you can identify a convex, closed surface in the scene, then it's relatively easy to identify vertices that lie within this surface, and ...
by gunn
Fri 4. Sep 2015, 16:51
Forum: Programming Help
Topic: Right Square Frustum
Replies: 1
Views: 643

Re: Right Square Frustum

I'm pretty sure the most efficient implementation would be an IndexedFaceSet. You could take the cube as defined in the tutorial here and just change four of the coordinates to convert it into the desired right square frustrum.
by gunn
Tue 26. May 2015, 21:25
Forum: Bugs
Topic: Inspecting colors in Navigator broken?
Replies: 0
Views: 578

Inspecting colors in Navigator broken?

Hi. I've just upgraded my Java Version to 1.8.45-14 and ran the introductory tutorials as webstarts to make sure things are still working. Fortunately, the webstarts work -- despite the heightened security settings of the Java VM. However, when I opened up the root appearance in the Navigator (right...
by gunn
Sun 14. Sep 2014, 19:58
Forum: General jReality Discussion
Topic: Side by stereo for 3D Beamers
Replies: 0
Views: 619

Side by stereo for 3D Beamers

Has anyone had any experience using jReality as a source for "side by side stereo" to a 3D-capable beamer? I would expect that using "cross eye" stereo mode in jReality would provide the right kind of video signal for "side by side stereo" but wonder if the result would not appear stretched out hori...
by gunn
Fri 15. Aug 2014, 15:12
Forum: Programming Help
Topic: A problem on Linux
Replies: 2
Views: 842

Re: A problem on Linux

I would make sure that you have the most recent possible OpenGL driver installed on your Linux machine.
by gunn
Fri 15. Aug 2014, 15:08
Forum: Programming Help
Topic: VRML97
Replies: 1
Views: 635

Re: VRML97

I'm not sure if this is relevant, but there is a VRML2 writer for jReality, but not a VRML2 reader. The VRML2 writer was added in order to be able to ship jReality files to the 3d printing facility in the same building as the math department (3D Labor at TU-Berlin). It would be nice to have a VRML2 ...
by gunn
Sat 2. Aug 2014, 12:55
Forum: Programming Help
Topic: Can jReality implement Anaglyph?
Replies: 6
Views: 1053

Re: Can jReality implement Anaglyph?

Regarding anaglyph stereo and your code: It works for me. To make the effect more visible, I set the diffuse color for polygons and lines to white, and I also doubled the eye separation of the stereo camera. The extra code looks like this: rootNode.setAppearance(new Appearance()); rootNode.getAppear...
by gunn
Tue 29. Jul 2014, 14:44
Forum: Advanced Development
Topic: jReality and JavaFX
Replies: 1
Views: 1161

Re: jReality and JavaFX

Sorry about the delaying in answering.

As far as I know, none of the jReality development team has used the JavaFX package. I checked the JOGL user forum and found this thread which indicates there is a known problem combining JavaFX and JOGL.
by gunn
Tue 29. Jul 2014, 14:00
Forum: Programming Help
Topic: Can jReality implement Anaglyph?
Replies: 6
Views: 1053

Re: Can jReality implement Anaglyph?

The JOGL backend of jReality supports anaglyph stereo (red/cyan, red/green, and red/cyan). It's unfortunately not treated in a standard tutorial. Here's how to access it: 1. The class de.jreality.scene.Camera has a method setStereo(boolean b). You have to call this method with the argument true, on ...
by gunn
Sun 8. Dec 2013, 15:11
Forum: Bugs
Topic: Problem with GUI display using Java 7, Mac OS 10.8
Replies: 2
Views: 1207

Problem with GUI display using Java 7, Mac OS 10.8

I've recently noticed that my webstarts no longer function correctly on my Macbook Pro laptop since I started running Version 7.45 of Oracle Java. The "left slot" of the jrworkspace plugin system doesn't display (or it displays a fraction of a second and is then overwritten incorrectly by the jogl G...
by gunn
Mon 28. Oct 2013, 13:50
Forum: Bugs
Topic: Jogl Viewer Texture Bug
Replies: 1
Views: 1117

Re: Jogl Viewer Texture Bug

I have had some problems related to textures on my relatively new Macbook Pro recently which I solved by backing out changes to the jreality jogl package to mid-summer. Please try that first. Then if you still have the problem, please try to isolate example code that displays the problem. I'm not se...
by gunn
Tue 20. Aug 2013, 21:53
Forum: Feature Requests
Topic: Intersection of two polyhedra
Replies: 2
Views: 1962

Re: Intersection of two polyhedra

As a core developer that has a pretty good overview of the existing code base ... I am afraid I have disappointing news. I know of no such method for intersection and/or union of two indexed face sets w/o boundary. I think you'd have a better chance of implementing something like this using the half...
by gunn
Sat 27. Jul 2013, 06:28
Forum: Feature Requests
Topic: Errors when failing to set appearance attributes correctly
Replies: 4
Views: 1192

Re: Errors when failing to set appearance attributes correct

Here's what I had in mind. I've edited the existing getAppearance() to try to convert to the desired type. public Object getAttribute(String key, Class type) { startReader(); try { Object val=getAttribute(key); if (val==DEFAULT||type.isInstance(val)) return val; // try to convert to desired type if ...
by gunn
Tue 23. Jul 2013, 21:50
Forum: Feature Requests
Topic: Errors when failing to set appearance attributes correctly
Replies: 4
Views: 1192

Re: Errors when failing to set appearance attributes correct

This is a very unfortunate bug, I agree. As you have discovered, if you use "2.0" instead of "2" it works. It's one of those bugs which I have learned to work-around but after looking into the code for Appearance I think it might be fixable. To be precise, in Appearance's getAttribute() method, one ...
by gunn
Wed 17. Jul 2013, 10:54
Forum: Programming Help
Topic: best way to display pointclouds
Replies: 3
Views: 1156

Re: best way to display pointclouds

The fastest standard way is to use a PointSetFactory to create an instance of PointSet which you can then put into a scene graph component. See this tutorial for how to do that. For rendering purposes make sure that the Appearance attribute CommonAttributes.SPHERES_DRAW is set to false. Use the attr...