spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / 3d / lesson107

Lesson 107 - Designing Web 3D Interfaces - Part 3

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

In this project, the 3D rendering window covers only the top half of the entire applet space, and the bottom half of the applet is devoted to the interface. I rendered a top view of the 3D scene in MAX to use as the floorplan image. The slight bit of perspective reveals the locations of doors and windows.

Shout uses Java 1.1 because more recent versions of Java have yet to make it into the standard Web browsers. Java 1.1 provides pitifully weak 2D graphics tools, and I had to be rather creative to fashion even the simple triangular pointer. The applet receives mouse input and moves the pointer to the current cursor position. The arrow keys are used to rotate the pointer. Whatever happens to the 2D pointer is mapped to the camera in the 3D scene. Rotating the pointer rotates the camera heading. The location of the pointer in the 2D pixel space of the floorplan image determines the corresponding position of the camera in the 3D scene. There were a few little tricks, but it was basically as simple as that.

Architectural walk-throughs can be very misleading. In the real world, only about 50 degrees of arc is in focus and the remainder is captured by less discerning peripheral vision. In a 3D rendering, everything is in focus. If you set the camera field-of-view as wide as that of the human eye, you get considerable perspective distortion. If you limit it to 50 degrees or below, the distortion disappears, but you are not sensing the surrounding environment as you would in real life.

There's no solving this problem, at least without immersive headsets, so I decided to at least make the problem clear to the user. The guidelines extending from the pointer indicate the current field-of-view angle, which can be adjusted with the UP and DOWN arrow keys. I also created wireframe grids for the floor and ceiling to clarify the effects of perspective distortion. Check out the effect as you interactively change the field-of-view.

Architecture has its own graphical presentation standards, and I tried to create an appropriately professional "pen and colored pencil" look. This involved the use of vertex colors in MAX to create the color gradients on the walls. I superimposed wireframe versions of the walls, windows and doors on top of the solid versions to create the outlines. This scene building process required lots of experimentation.

The overall concept could easily be expanded to more ambitious contexts with multiple floors and alternative floorplans. I enjoyed this piece because it was a complete synthesis of interactive design, 3D graphics work and Java programming. The whole is more than the sum of the parts.

Next time, we'll look at the most entertaining project in the book – a 3D game.

To Return to Parts 1 and 2, Use Arrow Buttons

Previous Lesson / Table of Contents / Next Lesson


internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs

Created: December 4, 2000
Revised: December 4, 2000

URL: http://webreference.com/3d/lesson107/3.html