Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GEF3D » GEF3D and 3d view
GEF3D and 3d view [message #782210] Mon, 23 January 2012 10:49 Go to next message
Federico Pozzoni is currently offline Federico PozzoniFriend
Messages: 16
Registered: December 2011
Junior Member
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??
if so, i've a problem when i try to import the .psf file
index.php/fa/6829/0/
  • Attachment: error.bmp
    (Size: 653.63KB, Downloaded 1577 times)
Re: GEF3D and 3d view [message #782238 is a reply to message #782210] Mon, 23 January 2012 11:47 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
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 #782275 is a reply to message #782238] Mon, 23 January 2012 12:48 Go to previous messageGo to next message
Federico Pozzoni is currently offline Federico PozzoniFriend
Messages: 16
Registered: December 2011
Junior Member
i'll be more precise on define what i've to do with those instruments; basically i need something that allow me to see some 3d image and see the coordinates of some points like the coordinates of the 8 vertices of the cube etc etc
Re: GEF3D and 3d view [message #782283 is a reply to message #782275] Mon, 23 January 2012 13:01 Go to previous messageGo to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
What kind of "3D images" do you have? What do these images look like?
Re: GEF3D and 3d view [message #782709 is a reply to message #782283] Tue, 24 January 2012 09:17 Go to previous messageGo to next message
Federico Pozzoni is currently offline Federico PozzoniFriend
Messages: 16
Registered: December 2011
Junior Member
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
Re: GEF3D and 3d view [message #782831 is a reply to message #782709] Tue, 24 January 2012 14:37 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
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
Previous Topic:Expand GraphNode Zest
Next Topic:3D-fication of 2D-GMF based editor
Goto Forum:
  


Current Time: Fri Mar 29 05:01:41 GMT 2024

Powered by FUDForum. Page generated in 0.07819 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top