Home » Archived » GEF3D » GEF3D and 3d view
|
Re: GEF3D and 3d view [message #782238 is a reply to message #782210] |
Mon, 23 January 2012 11:47 |
|
Hi,
On 23.01.12 11:49, Federico Pozzoni wrote:
> hi, 've to adding, to my model, a new view in wich i can show some java 3d image like a 3D drawing of a building or a simple 3d map and i've been directed on GEF3D
> can i do those sort of things with GEF3D??
GEF3D is NOT Java3D! But you can "draw" 3D images with GEF3D, of course.
However, the focus of GEF3D is not to simply draw 3D images, but to edit
arbitrary models (the "M" if the MVC pattern) in a 3D scene. In general,
if GEF would be a good framework for you, but if you need 3D
additionally, then GEF3D is the right choice for you.
At the moment, GEF3D can draw primitive 3D shapes such as cubes or
spheres. Additionally, you have direct access to some OpenGL methods in
order to implement you own shapes. Also, if you have existing 3D
drawings to be imported into GEF3D (using some 3D file format), you will
have to implement the importer yourself as GEF3D does not provide any
importers at the moment. So, drawing is not a real strength of GEF3D.
But GEF3D provides a lot of functionality for picking (i.e., selecting)
elements, and all the editing functionality provided by GEF (e.g.,
drawing feedback figures for moving things around etc.). Also, the
camera is quite handy, and even camera tracks are supported (e.g., for
zooming on selected elements).
> if so, i've a problem when i try to import the .psf file
You need Subclipse to be installed for the psf file to work. However, I
have only recently moved GEF from SVN to Git. Instead of importing GEF3D
using the psf file, I recommend to import the following projects
org.eclipse.draw3d.geometry
org.eclipse.draw3d.graphics3d
org.eclipse.draw3d.lwjgl
org.eclipse.draw3d.ui
org.eclipse.draw3d
org.eclipse.gef3d
org.eclipse.gef3d.ext
If your model is based on EMF, also install
org.eclipse.gef3d.ext.emf
If you have an existing GMF editor to be ported to 3D, you also need
org.eclipse.gef3d.gmf
from the new GEF3D repository at
git://git.eclipse.org/gitroot/gef3d/org.eclipse.gef3d.git
using EGit.
You will also need the LWJGL plugin. As the official version at
http://lwjgl.org/update is buggy, you can install the latest versioin
from my personal LWJGL update site at
http://jevopi.de/updatesite/org.lwjgl.updatesite
Cheers,
Jens
|
|
| | | |
Re: GEF3D and 3d view [message #782831 is a reply to message #782709] |
Tue, 24 January 2012 14:37 |
|
The basic structure of models visualized by GEF3D, as GEF, are graphs.
Thus, visualizing (and editing) some kind of topological map would be a
very good use case for GEF3D, at least if the map is more or less some
kind of graph.
Still, I'm not sure what your 3d representation of the building looks
like. If it is a simple geometric shape (e.g., a cuboid) with a photo
texture, this would be no problem. It is possible to retrieve and use
positions on an arbitrary planes (usually triangles). Thus you could
define so called "anchors" at some points of the 3d building. However,
this would be more or less only for visualization.
Of course, you could use more complex shapes (as you can use the OpenGL
methods), up to CAD-like drawings. Depending on the number of vertices
and the complexity of the 3D model of the building, this might get
rather complex (for both, rendering and programming the shape). Frankly,
GEF3D is not made for CAD applications. But coarse grained CAD models
would be no problem, I suppose.
Cheers,
Jens
On 24.01.12 10:17, Federico Pozzoni wrote:
> the idea is to have:
> - one side with the tool of creation of the topological map - on the
> other side the 3d rappresentation of the building to which the
> topological refer,
> i've to be able to select some of the main points on the 3d building
> maps and read their coordinates
|
|
|
Goto Forum:
Current Time: Thu Apr 25 12:03:40 GMT 2024
Powered by FUDForum. Page generated in 0.03880 seconds
|