Search found 11 matches
- Tue 24. Apr 2012, 10:44
- Forum: Programming Help
- Topic: QuadMeshFactory generateEdgesFromFaces problem
- Replies: 1
- Views: 760
QuadMeshFactory generateEdgesFromFaces problem
Hi guys, I am using the QuadMeshFactory to generate the geometry shown in the following pictures. aircraft_regular.jpeg The problem is that I would like to display the mesh lines (similar to wireframe, but with the faces still showing), but when I use the methods factory .setGenerateEdgesFromFaces(t...
- Tue 27. Mar 2012, 09:07
- Forum: Programming Help
- Topic: Skew near edges of SceneGraph
- Replies: 6
- Views: 1556
Re: Skew near edges of SceneGraph
Code: Select all
camera.setPerspective(false);
- Sat 24. Mar 2012, 23:34
- Forum: Programming Help
- Topic: Skew near edges of SceneGraph
- Replies: 6
- Views: 1556
Re: Skew near edges of SceneGraph
Thanks, can anyone point me towards the tool that I should be using for translation??
- Sun 18. Mar 2012, 23:50
- Forum: Programming Help
- Topic: Skew near edges of SceneGraph
- Replies: 6
- Views: 1556
Re: Skew near edges of SceneGraph
Are you sure that the effect you are observing is a mistake? Your comments about the sphere helped me understand why this is happening. Apparently it is not a mistake, just a result of perspective rendering. What I should have asked was "Is there a way to eliminate the skew that occurs?" or somethi...
- Sat 17. Mar 2012, 05:51
- Forum: Programming Help
- Topic: Skew near edges of SceneGraph
- Replies: 6
- Views: 1556
Skew near edges of SceneGraph
I have encountered a problem that exists both in the tutorials, as well as in my own application. The problem is that when objects are drug near the edge of the SceneGraph, they are skewed (see images below). centered_square.png skewed_square.png The screenshot above comes from the CubeUnwrapped.jav...
- Sun 7. Aug 2011, 00:11
- Forum: Programming Help
- Topic: Background Color Gradient
- Replies: 3
- Views: 1005
Re: Background Color Gradient
Thanks, thanks exactly what I was looking for.
- Fri 5. Aug 2011, 05:40
- Forum: Programming Help
- Topic: Background Color Gradient
- Replies: 3
- Views: 1005
Background Color Gradient
Hi, I was wondering if I can get an example of how to set the background to a gradient of colors. I have tried the following unsuccessfully. Thanks in advance. ap.setAttribute(CommonAttributes.BACKGROUND_COLOR, new ColorGradient( new Color[] { Color.blue, Color.cyan, Color.green} )); ap.setAttribute...
- Sat 30. Jul 2011, 05:29
- Forum: Programming Help
- Topic: when does rotate tool activate?
- Replies: 5
- Views: 1342
Re: when does rotate tool activate?
Could you post a snippet of the code that you used... I tried the code below, but I am pretty sure I'm sending it the wrong path. Thanks in advance.
Code: Select all
ToolSystem.getToolSystemForViewer(v.getViewer()).setEmptyPickPath(v.getViewer().getCameraPath());
- Mon 25. Jul 2011, 04:08
- Forum: Programming Help
- Topic: Embedding jReality in a Java Application
- Replies: 6
- Views: 1656
Re: Embedding jReality in a Java Application
For others browsing the forum, this is how you can add a viewer to an internal frame. /* * Created on Jan 12, 2010 * */ package de.jreality.tutorial.plugin; import java.awt.GridLayout; import javax.swing.JDesktopPane; import javax.swing.JFrame; import javax.swing.JInternalFrame; import javax.swing.J...
- Mon 25. Jul 2011, 00:39
- Forum: Programming Help
- Topic: Embedding jReality in a Java Application
- Replies: 6
- Views: 1656
Re: Embedding jReality in a Java Application
I have been able to add the viewing component to a JPanel "DrawPanel" within a JInternalFrame (see code below), but the ViewerApp is still displayed (see attached picture). public class DrawPanel extends JPanel { public DrawPanel(){ //this.setBackground(Color.WHITE); //SceneGraphComponent sgc = Scen...
- Sun 24. Jul 2011, 03:57
- Forum: Programming Help
- Topic: Embedding jReality in a Java Application
- Replies: 6
- Views: 1656
Re: Embedding jReality in a Java Application
I am also trying to embed a viewer into a JInternalFrame, but have been unsuccessful thus far. Could you share some of the code that you used to add the viewer to the internal frame? Thanks