You can also play with the scale yourself
 
 
 
    Appearance app = new Appearance();
    Transfrom3D  tr = new Transform3D( );
    tr.setScale( new Vector3d( 8.0, 8.0, 1.0 ) );
 
    TextureAttributes ta = new TextureAttributes( );
    ta.setTextureMode( TextureAttributes.MODULATE );
    ta.setPerspectiveCorrectionMode( TextureAttributes.NICEST );
    ta.setTextureTransform( tr );
    app.setTextureAttributes( ta );
 
 
Play with the third line tr.setScale to see different results.
 
Ahmed
-----Original Message-----
From: Koen Vanderloock [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 10:25 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Tiled Textures

Hi,
 
Does anyone have an idea how to tile a texture ?  Java3D only expands the picture instead of tiling it.
 
Hope you can help,
Thx,
 
Koen

Reply via email to