Java Programing

May 4, 2007

CHAPTER 3 Getting started, Hello Java 3D! 3.1

Filed under: Java 3D Programming — webmaster @ 12:00 pm

Test your Java 3D installation by running the HelloUniverse Java 3D demo. First run from the command line by going to the relevant installation directory and then typing: java HelloUniverse You can test the Java 2 plug-in installation by double-clicking the HelloUniverse_plug-in.html file. Your web browser should launch, the Java 2 plug-in window will appear, and the HelloUniverse applet should start. Once the tests are running you can safely delete the c:program filesjavasoft directory. 3.1.3 Documentation Java 3D programming involves general Java programming, high-performance programming, 3D graphics algorithms, 2D graphics programming, UI design, and many other issues. A good reference library or collection of electronic bookmarks will save you a lot of time and help you to avoid some of the pitfalls that have befallen your predecessors. Though far from exhaustive, the list of references which follows should give you some indication of fruitful areas to start researching. Java 2 SDK JavaDoc and reference books Java 2 is a complex technology. If you are going to write good Java 3D code you are going to require the latest Java 2 documentation and some good reference books. Swing reference book If you are developing an application that uses Swing (JFC) for the UI you will want to get a good Swing reference book. These weighty tomes can save you a lot of time during development. A good place to start is Swing by Mathew Robinson and Pavel Vorobiev (http://www.manning.com/Robinson/index.html). Java 3D JavaDoc Of course you should ensure that you download the latest API documentation for Java 3D. Sun collateral Java 3D tutorial The free Java 3D tutorial from Sun makes a good reference for many introductory topics and for those that like a structured tutorial style book to get started. Find it at http://www.javasoft.com/products/java-media/3D/collateral/. J3D.ORG You should check the J3D.ORG web site (http://www.j3d.org/) for FAQs and free example code. Many of the questions and problems that you run into have been faced and answered by other Java 3D users. Many answers are posted on the J3D.ORG web site or in the interest email list archives. J3D.ORG also contains useful utility code, tutorials, and examples that have been contributed by the active Java 3D community. Java 3D interest email list You should subscribe to this excellent forum (http://archives.java.sun.com/archives/java3d-interest.html) for asking fellow developers questions. Before posting your questions, take the time to search the archives for similar questions and answers. Java 3D user interface reference Building Java 3D User Interfaces by Jon Barrilleaux from Manning Publications will be very useful if you are building a complex 3D user interface. Jon answers many of the questions you will run into as you try to use 3D overlays, and presents solutions for the common UI requirements. For more information, surf to http://www.manning.com/Barrilleaux/index.html. There are several other Java 3D books coming into print check the J3D.ORG web site for the latest information. 3D graphics reference books If you are new to 3D graphics in general, you may want to pick up a good textbook on the subject. A good reference will cover the general aspects of 3D projections, transformation matrices, clipping, lighting, and rendering. Computer Graphics: Principles and Practice in C by James D. Foley, et al. (Addison-Wesley, 1995) is considered by many to be the bible of computer-generated 3D graphics. Many other useful books are reviewed in appendix B. 31

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting