Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2006

Tip: Looking for answers? Try searching our database.

Java3d - modelling 3d map

Thread view: 
Dave - 09 Apr 2006 20:20 GMT
I want to create a 3d map so that you can see roads and elevation (i.e.
terrain... so you can see hills).  What objects should I use in the java3d
hierarchy to achieve this?

The package has a bunch of geometric objects such as Box, Cone, Cylinder and
Sphere... should I use a combination of these? Or is there some other
approach which will model terrain suitably?

Any advice would be appreciated.
Ingo R. Homann - 11 Apr 2006 08:49 GMT
Hi Dave,

> I want to create a 3d map so that you can see roads and elevation (i.e.
> terrain... so you can see hills).  What objects should I use in the java3d
[quoted text clipped - 5 lines]
>
> Any advice would be appreciated.

It has been a long time since I did anything with Java3D but I remember
that there was the possibility to define rectangles and polygons for
yourself without using the "highlevel"-objects Box, Cone, Cylinder and
Sphere. I think, a 'matrix' of rectangles or triangles (with texture)
would be apropriate for your purpose (view from top):

+-+-+-+-+
|/|/|/|/|
+-+-+-+-+
|/|/|/|/|
+-+-+-+-+
|/|/|/|/|
+-+-+-+-+

Ciao,
Ingo
nationdemon - 20 Apr 2006 14:35 GMT
Ingo R. Homann schrieb:

> Hi Dave,
>
[quoted text clipped - 24 lines]
> Ciao,
> Ingo

Best way is using Shape3D Objects with GeometryArrays or
IndexedTriangleArrays. It's a lil bit tricky but it seems - to me - to
be the easiest way to do what you wanna do. As you'll see if you'll
take a closer look the Box Object is build out of Shape3D objects too.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.