Search found 61 matches

by Joe
Thu 15. Oct 2015, 11:39
Forum: Advanced Development
Topic: Remove hidden geometry
Replies: 1
Views: 848

Remove hidden geometry

Hello, is there a built in possibility to remove all points, lines and faces, which cannot been seen from outside? I am searching a way to reduce a geometry to its surface. If there's no built in possibility, has somebody ideas or examples how to do it? A first step could be to remove all SceneGraph...
by Joe
Sun 11. Sep 2011, 20:34
Forum: Programming Help
Topic: Lighting broken in PDF export
Replies: 3
Views: 2906

Re: Lighting broken in PDF export

Thanks, I got it running. I had to remove //indexedFaceSetFactory.setFaceColors(colorArray); and add appearance.setAttribute(CommonAttributes.DIFFUSE_COLOR, Color.GREEN); for each SceneGraphComponent. What do I have to do, if a SceneGraphComponents has triangles with different colors? Do I have to s...
by Joe
Sun 11. Sep 2011, 19:57
Forum: Bugs
Topic: NullPointerException: de.jreality.writer.u3d.U3DSceneUtility
Replies: 2
Views: 1224

Re: NullPointerException: de.jreality.writer.u3d.U3DSceneUti

I used the released source code from 2011-08-04. I should first check the SVN before reporting a bug. Sorry.
by Joe
Wed 7. Sep 2011, 16:16
Forum: Programming Help
Topic: Export In pdf3D
Replies: 13
Views: 3552

Re: Export In pdf3D

I have created a new topic with example code, so an answer to the above question isn't necessary (at this location).
http://www3.math.tu-berlin.de/jreality/ ... ?f=3&t=566
by Joe
Wed 7. Sep 2011, 16:15
Forum: Programming Help
Topic: Lighting broken in PDF export
Replies: 3
Views: 2906

Lighting broken in PDF export

Hi, after exporting a SceneGraphComponent into a PDF file, the lighting is broken. The displayed scene is correct (first image), but in the PDF file (second image), the whole geometry is black. Correct lighting in JReality: http://img832.imageshack.us/img832/8355/jreality.jpg Resulting PDF file: htt...
by Joe
Mon 5. Sep 2011, 20:19
Forum: Programming Help
Topic: Export In pdf3D
Replies: 13
Views: 3552

Re: Export In pdf3D

Hi, I also have a problem with U3D in PDF files, since the new Adobe Reader. The geometry is displayed as expected in JReality: http://img64.imageshack.us/img64/5719/viewere.jpg The export to PDF resultet in a totally black scene. After updating the Javascript, only the normals seems to be missing (...
by Joe
Sun 4. Sep 2011, 19:14
Forum: Bugs
Topic: NullPointerException: de.jreality.writer.u3d.U3DSceneUtility
Replies: 2
Views: 1224

NullPointerException: de.jreality.writer.u3d.U3DSceneUtility

Hi, in ... public static SceneGraphComponent getSkyBox(JrScene scene) { Appearance rootApp = scene.getSceneRoot().getAppearance(); Object skyBoxAttribute = rootApp.getAttribute(SKY_BOX); if (rootApp == null || skyBoxAttribute == INHERITED) { return null; } ... ... you check for "rootApp == null", af...
by Joe
Thu 7. Apr 2011, 21:40
Forum: Programming Help
Topic: Auto-generate edge colors from face colors?
Replies: 1
Views: 641

Auto-generate edge colors from face colors?

Hello, I have created a set of faces. To allow switching to a wrieframe representation, I have added a "indexedFaceSetFactory.setGenerateEdgesFromFaces(true);". But when I switch from colored faces to wireframe (via Appearance), all lines are blue, the colors are lost. I think, I have to call also "...
by Joe
Wed 6. Apr 2011, 22:13
Forum: Programming Help
Topic: How to treat normals when transforming the vertices
Replies: 2
Views: 582

Re: How to treat normals when transforming the vertices

Thanks, it works perfectly.
by Joe
Wed 6. Apr 2011, 08:21
Forum: Programming Help
Topic: How to treat normals when transforming the vertices
Replies: 2
Views: 582

How to treat normals when transforming the vertices

Hello, I have created geometry with normals. The smooth-shading works fine. Now, in some cases, I have to transform the vertices with a Matrix4d, before inserting them into the IndexedFaceSetFactory. The smooth-shading is broken. While rotating the geometry, strange shadows appear on the surface. Ev...
by Joe
Sun 18. Apr 2010, 07:41
Forum: Programming Help
Topic: Switch viewer in example "ViewerFromScratch.java"
Replies: 5
Views: 2104

Re: Switch viewer in example "ViewerFromScratch.java"

Hi Stefan, thanks. I was able to switch from ViewerApp to JRViewer. But one bug reappears, which has already been solved here: http://www3.math.tu-berlin.de/jreality/phpbb/viewtopic.php?f=3&t=78 The VieweApp class provides a method "dispose()", which allows to clean up the memory. JRViewer doesn't h...
by Joe
Sun 11. Apr 2010, 11:59
Forum: Programming Help
Topic: Switch viewer in example "ViewerFromScratch.java"
Replies: 5
Views: 2104

Re: Switch viewer in example "ViewerFromScratch.java"

Hi Stefan, thanks for your answer. I tried to use JRViewer, but I got a new problem. Every time when I run the code below, a new JRViewer window pops up. But I would like to integrate only the viewing component into my own viewer. Here's my code: JRViewer jrViewer = new JRViewer(); // Add the View-P...
by Joe
Thu 8. Apr 2010, 20:34
Forum: Programming Help
Topic: Switch viewer in example "ViewerFromScratch.java"
Replies: 5
Views: 2104

Switch viewer in example "ViewerFromScratch.java"

Hello, because ViewerApp has been set to deprecated a long time ago, I tried to update my code and started playing around with http://www3.math.tu-berlin.de/jreality/tutorial/src/de/jreality/tutorial/viewer/ViewerFromScratch.java If I would like to switch the viewer (JOGL or softviewer) at runtime, ...
by Joe
Sat 16. Jan 2010, 21:54
Forum: Bugs
Topic: U3D writer renders lines always as tubes
Replies: 8
Views: 3892

Re: U3D writer renders lines always as tubes

Hi Sechel,
with the release of 2010-01-12, the lines are still not rendered anymore. The colors of surfaces aren't supported. What's the status of your announced improvements?

Best regards, Joe
by Joe
Wed 16. Dec 2009, 21:45
Forum: Bugs
Topic: U3D writer renders lines always as tubes
Replies: 8
Views: 3892

Re: U3D writer renders lines always as tubes

Hi Sechel,
what's the current status? With the last and the current release, no lines are rendered any more. Also the colors of surfaces still seem to be unsupported.

Are you still working on the new features?

Thanks