* Additional javadocs for com.jme3.renderer * Removed Camera.setDirection() * ImageBasedHeightMapGrid now uses AssetManager to find heightmaps git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7605 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
@ -0,0 +1,15 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.app.state</code> package provides |
||||||
|
{@link com.jme3.app.state.AppState app states}, |
||||||
|
an abstract way of handling application logic. |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,19 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.input.controls</code> package allows user code to listen |
||||||
|
to input events regardless of the type of input used. |
||||||
|
<p> |
||||||
|
Users will receive input in one of two forms, either |
||||||
|
{@link com.jme3.input.controls.AnalogListener analog input} or |
||||||
|
{@link com.jme3.input.controls.Action digital/action input}. |
||||||
|
|
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,14 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.input.dummy</code> package provides "dummy" or "null" |
||||||
|
implementations of the input interfaces. |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,13 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.input.event</code> package contains low-level input events. |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,53 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.math</code> package provides mathematic data structures |
||||||
|
and utilities which are used by the rest of the engine. |
||||||
|
The math package provides the following classes:<br> |
||||||
|
<h3>General purpose vectors</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.Vector2f} - 2D general purpose vector</li> |
||||||
|
<li>{@link com.jme3.math.Vector3f} - 3D general purpose vector</li> |
||||||
|
<li>{@link com.jme3.math.Vector4f} - 4D general purpose vector</li> |
||||||
|
</ul> |
||||||
|
<h3>Special purpose vectors</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.ColorRGBA} - Floating-point RGB color with alpha</li> |
||||||
|
<li>{@link com.jme3.math.Quaternion} - Specialized 4D data structure to represent rotation</li> |
||||||
|
</ul> |
||||||
|
<h3>Matrices</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.Matrix3f} - 3x3 matrix, usually used to represent rotation</li> |
||||||
|
<li>{@link com.jme3.math.Matrix4f} - 4x4 matrix, used as an efficient transform representation</li> |
||||||
|
</ul> |
||||||
|
<h3>Shapes</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.AbstractTriangle} - Abstract triangle. Data to be provided by implementation</li> |
||||||
|
<li>{@link com.jme3.math.Triangle} - Concrete implementation of AbstractTriangle with center and normal vectors</li> |
||||||
|
<li>{@link com.jme3.math.Line} - Infinite 3D line</li> |
||||||
|
<li>{@link com.jme3.math.LineSegment} - 3D line with start and end point</li> |
||||||
|
<li>{@link com.jme3.math.Plane} - 3D plane</li> |
||||||
|
<li>{@link com.jme3.math.Ray} - 3D ray</li> |
||||||
|
<li>{@link com.jme3.math.Rectangle} - 3D rectangle</li> |
||||||
|
<li>{@link com.jme3.math.Ring} - 3D ring</li> |
||||||
|
</ul> |
||||||
|
<h3>Curves</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.Spline} - 3D curve defined by control points and a function</li> |
||||||
|
</ul> |
||||||
|
<h3>Utility classes</h3> |
||||||
|
<ul> |
||||||
|
<li>{@link com.jme3.math.Transform} - Representation of a transform with translation, rotation, and scale</li> |
||||||
|
<li>{@link com.jme3.math.FastMath} - Contains static methods for floating-point math</li> |
||||||
|
<li>{@link com.jme3.math.CurveAndSurfaceMath} - Contains static methods specific to curve and surface math</li> |
||||||
|
<li>{@link com.jme3.math.Eigen3f} - Provides computation of eigenvectors given a matrix</li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,24 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.post</code> package provides utilities for |
||||||
|
render processing. |
||||||
|
<p> |
||||||
|
The {@link com.jme3.post.SceneProcessor} interface is used as the base interface |
||||||
|
for all render processing. The SceneProcessor contains hooks for various rendering |
||||||
|
events. |
||||||
|
<p> |
||||||
|
One use of render processing is post-processing, which is applying effects |
||||||
|
on an already-rendered scene. The engine's post-processing system is implemented |
||||||
|
in the {@link com.jme3.post.FilterPostProcessor} class, which contains a list |
||||||
|
of {@link com.jme3.post.Filter filters}. Each are invoked in order to apply |
||||||
|
various effects on the rendered scene. |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,38 @@ |
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
||||||
|
<html> |
||||||
|
|
||||||
|
<head> |
||||||
|
<title></title> |
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
|
||||||
|
The <code>com.jme3.renderer</code> package provides classes responsible for |
||||||
|
rendering. |
||||||
|
<p> |
||||||
|
The most critical classes are the {@link com.jme3.renderer.Renderer}, |
||||||
|
which is the low-level rendering implementation and is abstract, and the |
||||||
|
{@link com.jme3.renderer.RenderManager} class, which provides the high-level |
||||||
|
rendering logic on top of the <code>Renderer</code>. |
||||||
|
<p> |
||||||
|
To accompany rendering, several helper classes are available. |
||||||
|
<ul> |
||||||
|
<li>The {@link com.jme3.renderer.Camera} is used to specify the point-of-view |
||||||
|
from which scenes are rendered.</li> |
||||||
|
<li>The {@link com.jme3.renderer.ViewPort} is the |
||||||
|
aggregation of a Camera and a set of {@link com.jme3.scene.Spatial scenes} |
||||||
|
which are to be rendered, as well as additional info.</li> |
||||||
|
<li>The {@link com.jme3.renderer.Caps} class contains renderer capabilities |
||||||
|
which the user can query to find out what features are available in the |
||||||
|
rendering implementation. </li> |
||||||
|
<li>The {@link com.jme3.renderer.Statistics} class is updated in real time |
||||||
|
by the Renderer, and is used to find out various statistics about |
||||||
|
the rendering</li> |
||||||
|
<li>The {@link com.jme3.renderer.GLObjectManager} and {@link com.jme3.renderer.GLObject} classes |
||||||
|
provide a link between the renderer's native objects and Java's garbage collected objects, |
||||||
|
allowing the engine to track when the Java object counterpart is garbage collected |
||||||
|
and then delete the native object counterpart from the renderer.</li> |
||||||
|
</ul> |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 444 KiB |
Before Width: | Height: | Size: 437 KiB |
Before Width: | Height: | Size: 424 KiB |
Before Width: | Height: | Size: 358 KiB |
Before Width: | Height: | Size: 370 KiB |
Before Width: | Height: | Size: 415 KiB |
Before Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 420 KiB |
Before Width: | Height: | Size: 445 KiB |
Before Width: | Height: | Size: 395 KiB |
Before Width: | Height: | Size: 410 KiB |
Before Width: | Height: | Size: 414 KiB |
Before Width: | Height: | Size: 420 KiB |
Before Width: | Height: | Size: 442 KiB |
Before Width: | Height: | Size: 336 KiB |
Before Width: | Height: | Size: 444 KiB |
Before Width: | Height: | Size: 428 KiB |
Before Width: | Height: | Size: 374 KiB |
Before Width: | Height: | Size: 428 KiB |
Before Width: | Height: | Size: 420 KiB |
Before Width: | Height: | Size: 436 KiB |
Before Width: | Height: | Size: 450 KiB |
Before Width: | Height: | Size: 446 KiB |
Before Width: | Height: | Size: 436 KiB |
Before Width: | Height: | Size: 429 KiB |
Before Width: | Height: | Size: 416 KiB |
Before Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 432 KiB |
Before Width: | Height: | Size: 414 KiB |
Before Width: | Height: | Size: 424 KiB |
Before Width: | Height: | Size: 439 KiB |
Before Width: | Height: | Size: 426 KiB |
Before Width: | Height: | Size: 432 KiB |
Before Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 414 KiB |
Before Width: | Height: | Size: 422 KiB |
Before Width: | Height: | Size: 425 KiB |
Before Width: | Height: | Size: 424 KiB |
Before Width: | Height: | Size: 381 KiB |
@ -1,92 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright (c) 2009-2010 jMonkeyEngine |
|
||||||
* All rights reserved. |
|
||||||
* |
|
||||||
* Redistribution and use in source and binary forms, with or without |
|
||||||
* modification, are permitted provided that the following conditions are |
|
||||||
* met: |
|
||||||
* |
|
||||||
* * Redistributions of source code must retain the above copyright |
|
||||||
* notice, this list of conditions and the following disclaimer. |
|
||||||
* |
|
||||||
* * Redistributions 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 'jMonkeyEngine' nor the names of its contributors |
|
||||||
* may be used to endorse or promote products derived from this software |
|
||||||
* without specific prior written permission. |
|
||||||
* |
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
||||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
|
||||||
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
||||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
|
||||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
|
||||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
||||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
||||||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
||||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
||||||
*/ |
|
||||||
|
|
||||||
package jme3test.texture; |
|
||||||
|
|
||||||
import com.jme3.app.SimpleApplication; |
|
||||||
import com.jme3.asset.TextureKey; |
|
||||||
import com.jme3.font.BitmapFont; |
|
||||||
import com.jme3.font.BitmapText; |
|
||||||
import com.jme3.material.Material; |
|
||||||
import com.jme3.math.Vector3f; |
|
||||||
import com.jme3.scene.Geometry; |
|
||||||
import com.jme3.scene.shape.Quad; |
|
||||||
import com.jme3.texture.Texture; |
|
||||||
|
|
||||||
public class TestNormalLatc extends SimpleApplication { |
|
||||||
|
|
||||||
private Quad quadMesh; |
|
||||||
|
|
||||||
public static void main(String[] args){ |
|
||||||
TestNormalLatc app = new TestNormalLatc(); |
|
||||||
app.start(); |
|
||||||
} |
|
||||||
|
|
||||||
public Geometry createQuad(float side, String texName, boolean latc){ |
|
||||||
Geometry quad = new Geometry("Textured Quad", quadMesh); |
|
||||||
|
|
||||||
TextureKey key = new TextureKey(texName, true); |
|
||||||
key.setGenerateMips(false); |
|
||||||
Texture tex = assetManager.loadTexture(key); |
|
||||||
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); |
|
||||||
mat.setTexture("ColorMap", tex); |
|
||||||
// mat.setBoolean("Normalize", true);
|
|
||||||
if (latc) |
|
||||||
mat.setBoolean("LATC", true); |
|
||||||
|
|
||||||
quad.setMaterial(mat); |
|
||||||
|
|
||||||
float aspect = tex.getImage().getWidth() / (float) tex.getImage().getHeight(); |
|
||||||
quad.setLocalScale(new Vector3f(aspect * 5, 5, 1)); |
|
||||||
quad.center(); |
|
||||||
quad.setLocalTranslation(quad.getLocalTranslation().x + quad.getLocalScale().x * side, 0, 0); |
|
||||||
|
|
||||||
return quad; |
|
||||||
} |
|
||||||
|
|
||||||
public void simpleInitApp() { |
|
||||||
BitmapFont font = assetManager.loadFont("Interface/Fonts/Default.fnt"); |
|
||||||
BitmapText txt = new BitmapText(font, false); |
|
||||||
txt.setText("Left: LATC, Middle: JPG, Right: DXT1nm"); |
|
||||||
txt.setLocalTranslation(0, txt.getLineHeight() * 2, 0); |
|
||||||
guiNode.attachChild(txt); |
|
||||||
|
|
||||||
// create a simple plane/quad
|
|
||||||
quadMesh = new Quad(1, 1); |
|
||||||
quadMesh.updateGeometry(1, 1, false); |
|
||||||
|
|
||||||
rootNode.attachChild(createQuad(-1f, "Textures/BumpMapTest/Dot3_latc.dds", true)); |
|
||||||
rootNode.attachChild(createQuad(0f, "Textures/BumpMapTest/Dot3.jpg", false)); |
|
||||||
rootNode.attachChild(createQuad(1f, "Textures/BumpMapTest/Dot3_dxt1.dds", false)); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|