Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
Free

Personal License

1 application Binary restricted distribution Non-commercial use only Attribution required
$9

Developer License

Unlimited projects Source and binary distribution 1 year support
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

  • Released: Jul 15, 2011
    Last Update: Jul 14, 2011
  • Language: Java
  • Category: User Interface
  • Time / costs savings: 120h / $7200 *
(2 ratings)

Observer3D

Observer3D
Developed by Ralph Chapin, Released Jul 15, 2011

Use the mouse to move over Java 3D landscapes.

Java

Tags: 3d , behavior , code , example

Observer3D moves the view over terrain in Java 3D 1.5.2 based on mouse movements. It is designed for use with open ground (as opposed to deep space, air, underwater, caverns, and other indoor spaces). It was written originally for a fast-paced game, and so had to be highly responsive and intuitive to enable the user to focus on and control the action. (In other words, it had to let the player focus on the action rather than on the view controls.) It replaced com.sun.j3d.utils.behaviors.vp.OrbitBehavior when the user was working with a landscape and its contents. It extends javax.media.j3d.Behavior.

The viewing angle is limited to a 90 degree vertical rotation, from horizontal to straight down. The view's vertical position is always positive (above ground). A left button drag moves the view left and right and forward and back. A right button drag moves the view up, down, left, and right on a hemisphere around the point on the ground being observed. A left button drag with the control key pressed swivels the view up, down, left, and right without moving the viewer. The mouse wheel zooms in and out. With the control key down, it takes the view straight up and down without changing the view angles.

The result is highly intuitive motion and a stable view.

A listener class is provided with mouse actions to allow the code using Observer3D to react to clicks and mouse movement. A method is provided to identify objects in the scene that have been clicked on or that the mouse is hovering over. There is also a method to locate the ground that is visible in the 3D view.

A sample program is included with the source code that demonstrates mouse clicks, labels on objects the mouse is hovering over, and pop-up menus. It has a 2D map with the area visible in the 3D view outlined in orange. It also demonstrates the ease of maneuvering over the terrain. (This example would be a quick way for a beginner to get started with 3D programming, but be sure to get hold of Java 3D 1.5.2 first.)

Observer3D requires Java 3D, version 1.5.2. It is thread safe. It is fully Javadoc'ed.

View all 2 reviews »

User Reviews

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.