I do not use the DirectX version of Java3D, I only used the openGL version for both java3d 1.2 and 1.3 so shouldn't it be the same?
-Greg
Kelvin Chung wrote:
Greg Gimler wrote:
How are your textures being loaded? Who's code is being used to do it?
My textures are being loaded as follows:
Sphere planet; Appearance papp; TextureLoader t = new TextureLoader("models/earth.jpg", "RGB", this); if (t != null) papp.setTexture(t.getTexture());
TransparencyAttributes ta = new TransparencyAttributes(); ta.setTransparency(0.0f); papp.setTransparencyAttributes(ta);
Material m = new Material(gray, black, gray, white, 0.0f); m.setLightingEnable(true); papp.setMaterial(m);
// Should use ellipsoidal but for now just use a sphere with radius around Tradex planet = new Sphere(6377.627108f, Sphere.GENERATE_NORMALS | Sphere.GENERATE_TEXTURE_COORDS, 48, papp);
TransformGroup eorigin = new TransformGroup(); eorigin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); eorigin.setCapability(TransformGroup.ALLOW_TRANSFORM_READ); eorigin.setCapability(TransformGroup.ALLOW_TRANSFORM_EXTEND);
Transform3D erotx = new Transform3D(); erotx.rotX(Math.PI / 2); earthECForigin.setTransform(erotx);
originbg.addChild(eorigin); eorigin.addChild(earthECForigin); earthECForigin.addChild(planet);
Also note that I have 3 Canvas3Ds loaded into swing containers viewing into the same universe. I don't see how that would affect things but maybe that would give you more insight as to what might be causing a problem?
FWIW (I've lost the earlier email), but just because the card states that it supports a particular image size, does not imply that the drivers will handle it. For example you say the Quadro handles non-power of 2 textures. Java3D won't let you make use of that anyway (annoying because J3D shouldn't limit that sort of thing).
Agreed but why would this matter if it worked in java3D 1.2 with the same video card?
Note that J3D v1.2 use DirectX 7.0 and J3D v1.3.1 use DirectX 8.0 API., they may support different max. texture size even though same card is used. Besides, OpenGL version of J3D may support different texture size than DirectX version. It is all up to the driver and you have to query it through J3D Canvas3D max texture width/height property before use.
Current specification of Java3D only support texture size power of 2. See Texture2D specfication.
- Kelvin ------------------ Java 3D Team Sun Microsystems Inc.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
