Hi Abed,

I think you may have one or two problems with your texture:

        1) I'm not sure that a .bw file is supported by Java.  .bw sounds like
        SGI black and white image format. The VRML loader will use
        java.awt.Toolkit.createImage() to load the image into Java, but I don't
        think that .bw files are supported by this function. You may need to
        convert this to file to a GIF, JPG, etc. using PBM or some other tool.
        
        2) The URL format may not be parsable by the URL classes.  See Rick's
        message.
        
Doug




> Date: Fri, 15 Jan 1999 14:38:59 -0700
> From: "Abed M. Hammoud" <[EMAIL PROTECTED]>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: Java3D Interest <[EMAIL PROTECTED]>
> Subject: [java3d] Vrml97Viewer and texture.
> Content-Transfer-Encoding: 7bit
> 
> Hello,
> 
> 
> Is the VRML97Viewer capable of loading a VRML file with
> the following node:
> 
>     DEF test Transform {
>       children        Shape {
>       appearance      Appearance {
>         material      DEF _DefMat_Step3 Material {
>           ambientIntensity    0.2
>           diffuseColor        0.8 0.8 0.8
>           specularColor       0 0 0
>           emissiveColor       0 0 0
>           shininess   0.2
>           transparency        0
>         }
> 
>         texture       ImageTexture {
>           url "file:h:/WRL/petriapproach/celtic.3.bw"
>         }
> 
>       }
> 
> I am having a lot of problems and I am wondering if the texture
> syntax is not supported by the Vrml97Viewer.
> 
> Any comments please.
> 
> - Abed
> 
> -- 
> Abed M. Hammoud, D.Sc.                          [EMAIL PROTECTED]
> IntellX L.L.C.                                  Office: (303) 469-7383
> Colorado, USA                                 http://www.anatomic.com/abed
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to