java3d

所属分类:Java编程
开发工具:Java
文件大小:1334KB
下载次数:34
上传日期:2011-10-29 22:31:06
上 传 者maidini
说明:  java 3d的若干个例子,有的代码需要修改包名才能编译通过。图片等资源在resources目录中
(Java 3d examples)

文件列表:
java3d\src\classes\com\j3d\examples\alternate_appearance\AlternateAppearanceBoundsTest.java (9778, 2007-02-09)
java3d\src\classes\com\j3d\examples\alternate_appearance\AlternateAppearanceScopeTest.java (11097, 2007-02-09)
java3d\src\classes\com\j3d\examples\alternate_appearance\SphereGroup.java (4123, 2007-02-09)
java3d\src\classes\com\j3d\examples\appearance\AppearanceMixed.form (1914, 2006-02-16)
java3d\src\classes\com\j3d\examples\appearance\AppearanceMixed.java (15455, 2007-02-09)
java3d\src\classes\com\j3d\examples\appearance\AppearanceTest.form (1913, 2006-02-16)
java3d\src\classes\com\j3d\examples\appearance\AppearanceTest.java (11975, 2007-02-09)
java3d\src\classes\com\j3d\examples\appearance\Tetrahedron.java (3856, 2007-02-09)
java3d\src\classes\com\j3d\examples\applet3d\Applet3D.form (4226, 2007-08-01)
java3d\src\classes\com\j3d\examples\applet3d\Applet3D.html (1364, 2007-07-31)
java3d\src\classes\com\j3d\examples\applet3d\Applet3D.java (9755, 2007-08-01)
java3d\src\classes\com\j3d\examples\background\BackgroundGeometry.form (1980, 2006-02-16)
java3d\src\classes\com\j3d\examples\background\BackgroundGeometry.java (9811, 2007-04-24)
java3d\src\classes\com\j3d\examples\cg_shader\multitex_fp.cg (2313, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\ObjLoadCg.form (1908, 2006-02-15)
java3d\src\classes\com\j3d\examples\cg_shader\ObjLoadCg.java (13371, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\SamplerTestCg.form (1912, 2006-02-24)
java3d\src\classes\com\j3d\examples\cg_shader\SamplerTestCg.java (9264, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\simple_fp.cg (2553, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\simple_vp.cg (6160, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\SphereCg.form (1907, 2006-02-15)
java3d\src\classes\com\j3d\examples\cg_shader\SphereCg.java (12317, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\VertexAttrTestCg.form (12975, 2006-03-02)
java3d\src\classes\com\j3d\examples\cg_shader\VertexAttrTestCg.java (15916, 2007-02-09)
java3d\src\classes\com\j3d\examples\cg_shader\vertexshader_vp.cg (2574, 2007-02-09)
java3d\src\classes\com\j3d\examples\collision\Box.java (3597, 2007-02-09)
java3d\src\classes\com\j3d\examples\collision\CollisionDetector.java (3173, 2007-02-09)
java3d\src\classes\com\j3d\examples\collision\TickTockCollision.form (1916, 2006-02-16)
java3d\src\classes\com\j3d\examples\collision\TickTockCollision.java (9016, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\ConfigObjLoad.java (10598, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x1-behavior.cfg (6822, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x1-stereo.cfg (4392, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x1-vr.cfg (9447, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x1-window.cfg (3578, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x1.cfg (4135, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x2-flat.cfg (5729, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x2-rot30.cfg (3933, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x3-cave-vr.cfg (10367, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x3-cave.cfg (7737, 2007-02-09)
java3d\src\classes\com\j3d\examples\configured_universe\j3d1x3-rot45.cfg (4391, 2007-02-09)
... ...

/* * $RCSfile: README.txt,v $ * * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistribution of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistribution in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * Neither the name of Sun Microsystems, Inc. or the names of * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * This software is provided "AS IS," without a warranty of any * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY * EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL * NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF * USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR * ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, * CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND * REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR * INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * * You acknowledge that this software is not designed, licensed or * intended for use in the design, construction, operation or * maintenance of any nuclear facility. * * $Revision: 1.2 $ * $Date: 2007/02/09 17:21:43 $ * $State: Exp $ */ Release Notes for the Lightwave 3D Java3D Loader ------------------------------------------------ Updated May 13, 19*** These release notes are intended to document the known working and non-working features of the loader. This is important because the loader implements an important subset of Lightwave functionality, but it definitely skips many major features of Lightwave files. Please read these notes to make sure that the features you need are actually implemented. Or if you see differences between Lightwave display of your file and the Java3D version of that file, take a look at these notes to see what might not be working properly. Testing the Loader ------------------ The application in this directory (Viewer) is intended to be a very basic test application for loading/viewing Lightwave 3D models. To use the program, type: java Viewer where is the name of a valid Lightwave 3D scene file that is reachable from the current directory. There is a very basic test file included in this directory called ballcone.lws. To load/view that file, type: java Viewer ballcone.lws Note that Lightwave scene files (*.lws) embed the pathnames to object files (*.lwo) within them, and that object files have pathnames to image files (for textures) embedded in them. Whatever those pathnames are in those files must be valid for the directory in which you are running the application that loads the scene file. For example, if I was loading in a scene file that referred to an object file called "data/object.lwo", then the file "object.lwo" should be located in a subdirectory of this current directory called "data". Summary of Loader ----------------- The Lw3d loader was intended to implement a major subset of the features in Lightwave 3D that would be used for realtime 3D animations. That is, any features (such as Bones and other high-end rendering options) which would require significant rendering time were simply not doable. These more advanced features are intended to be rendered off-line, saving each frame separately and later compositing them together into an animation. But Java3D is a realtime 3D rendering system, so these type of animations just do not map into a Java3D viewer very well. Another category of non-implemented items are those that we simply have not yet gotten to. There are a few known features of Lightwave files that would work well through Java3D but just haven't been implemented in the loader yet. Although there are a lot of features that are not yet implemented, the basics of Lightwave 3D functionality (scene creation, animating objects/lights/cameras, different surface properties) all work pretty much as expected. So try it out and let us know non-documented items that didn't work properly. Details of Non-Implemented Features ----------------------------------- This list is probably not comprehensive, but hopefully points out most of the features or areas where the implementation is incomplete (or not there at all). Limitations of Scene Files (*.lws) ---------------------------------- 1) Bones/Skeleton Bones functionality is not implemented at all. Unfortunately, this great feature of Lightwave 3D is not currently implementable in the loader because the processing time that it would take to compute frames based on Bones data would be far more than a real-time rendering system can afford. The loader may, at some future point, provide a mechanism to read in frames of geometry that were saved from Lightwave Bones descriptions. That is, there are plug-ins available for Lightwave 3D that allow you to save out files with Bones information as a series of files with pre-calculated geometry for each frame; eventually we would like the Lightwave 3D loader to support those files. Workaround: None; the best and only workaround is to find a different method of animating your objects. 2) Spline paths Spline paths will be interpreted as linear piecewise paths instead, traveling between each control point specified for the spline. Workaround: Specify linear paths. If your path looks too hard-jointed through the loader, specify more keyframes for the path to smooth it out. 3) Object Scaling Scaling objects in the scene (versus the object files) is currently ignored. Workaround: scale the objects in their individual object files. 4) Shadows Shadows options are ignored in the loader. Workaround: None. 5) Envelopes Most envelopes are ignored. There are a couple of exceptions to this, such as light intensity envelopes, but even those features have not been completely implemented and tested. Workaround: None. 6) Camera effects All advanced-rendering camera effects are ignored in the loader. This includes the following items in Lightwave 3D files: - Lens Flare - F-stop - Focal Distance - Blur Length - Dissolves - Glow - Zoom - Intensity Falloff - Antialiasing Workaround: None. 7) Inverse Kinematics IK options such as Goal Objects and Anchors are ignored. Workaround: Animate objects directly instead of indirectly via IK. 8) Morphs All morph options are ignored. Workaround: None. 9) Display properties Lightwave allows you to specify surface properties for different rendering modes (e.g., wireframe color). All of these parameters are ignored and the full properties of any item are used at all times. Workaround: None. 10) Various Surface Properties Various minor surface properties are currently ignored, including: - Polygon size - Dissolves - Clip map - Unaffected by fog - Edge parameters Workaround: None. 11) Lights The following items are currently ignored for Light objects: - Target objects - Flare parameters - Shadow options Workaround: None for flares or shadows. For targeting problems, animate the light directly (versus indirectly through using Target). 12) Camera Targeting The Target option for Camera objects is currently ignored by the loader. Workaround: Animate the camera directly (versus indirectly through using Target). 13) Effects Most effects (from the Effects dialog box in the layout program) are ignored, save for fog (which should accept all parameters) and backdrop colors (solid backdrops only - gradient backdrops are ignored). Workaround: None. 14) Render Options Most options from the Render dialog box are ignored - most of these pertain to saving the animation in any case (something that doesn't happen through the Loader). Workaround: None. Limitations of Object Files (*.lwo) ----------------------------------- 1) MetaNURBS Geometry stored in MetaNURBS format will be ignored by the loader. Workaround: pre-tessellate your MetaNURBS surfaces and save your geometry (object) files in that format. 2) Layered Object Files There is currently no support for the "Layered Object File Format" of Lightwave 3D. Workaround: None. 3) Reflectivity There is no way to reproduce the reflective properties of surfaces through Java3D, so any reflectivity settings in Lightwave object files will be ignored. Workaround: None. 4) Refraction Refractive properties of surfaces are ignored. Workaround: None. 5) Edge Transparency Edge transparency properties are ignored. Workaround. None. 6) Texture types Texture mapping is currently somewhat limited in the loader. The following types of texture mapping effects should work: - Diffuse (the texture modifies the Diffuse aspects of the surface) - Color (the texture modifies the Color properties of the surface). Textures that attempt to modify other parameters of the surface will be ignored. Also, the following texture types should work: - Planar Image Map - Spherical Image Map - Cylindrical Image Map Other kinds of mappings will not work (including Marble, Grid, Dots, etc.) Some Texture parameters will not work. The following should work correctly: - size - center Advanced texture parameters such as falloff and velocity will be ignored. Summary: There are so many texture mapping parameters in Lightwave 3D that it's difficult to produce a list of all of the items that won't work properly. In a nutshell, basic decal-type (color modifying) or brightness (diffuse modifying) textures that are mapped as planes, spheres, or cylinders should work correctly. Anything else will probably not work. Workaround: Use the basics. 7) Plug-ins There is currently no support for any plug-in capabilities. For example, if there are plug-in shaders specified for your file, those shaders will be ignored. Workaround: None. 8) Image Sequences There is no support for image sequences - textures must be static files. Workaround: None.

近期下载者

相关文件


收藏者