From bc76235e31633f9a23216b663780c4d2878d347b Mon Sep 17 00:00:00 2001 From: jada Date: Tue, 24 Apr 2007 18:55:58 +0000 Subject: Use By_REFERENCE and Y_UP options for Texture. --- .../org/jdesktop/j3d/examples/background/BackgroundGeometry.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/classes/org/jdesktop/j3d/examples/background') diff --git a/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java b/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java index bd4f7ca..e05bac3 100644 --- a/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java +++ b/src/classes/org/jdesktop/j3d/examples/background/BackgroundGeometry.java @@ -83,15 +83,18 @@ public class BackgroundGeometry extends javax.swing.JFrame { bg.setApplicationBounds(bounds); BranchGroup backGeoBranch = new BranchGroup(); Sphere sphereObj = new Sphere(1.0f, Sphere.GENERATE_NORMALS | - Sphere.GENERATE_NORMALS_INWARD | - Sphere.GENERATE_TEXTURE_COORDS, 45); + Sphere.GENERATE_NORMALS_INWARD | + Sphere.GENERATE_TEXTURE_COORDS | + Sphere.GENERATE_TEXTURE_COORDS_Y_UP, 45); Appearance backgroundApp = sphereObj.getAppearance(); backGeoBranch.addChild(sphereObj); bg.setGeometry(backGeoBranch); objTrans.addChild(bg); TextureLoader tex = new TextureLoader(bgImage, - new String("RGB"), this); + new String("RGB"), + TextureLoader.BY_REFERENCE | TextureLoader.Y_UP, + this); if (tex != null) backgroundApp.setTexture(tex.getTexture()); -- cgit v1.2.3