http://www.vr-fx.com/3d_work/Terraforming/show.html

This site runs just fine for me.  I have Windoze98, JDK1.2.2, and Java3D1.2.
It appears your problem is with Windoze2000.

Reynold
www.reynolddemarcojr.com



-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Ahmed Shakil
Sent: Tue, March 14, 2000 4:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Help! Bug in TextureLoader?


Hey I have went to your site but it doesnt even show anything. just says
applet loaded. I also have some wierd problems with the Java3D beta release
when working with textures. I dont if it is because I am using windows2000.
but it does not load all the textures

http://www.vr-fx.com/3d_work/Terraforming/show.html

this site works with the j3d 1.1 release version
but not with j3d1.2 beta

Raffi, if u email me your full java source. I can look it up on my machine

Ahmed

-----Original Message-----
From: Kasparian, Raffi J. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 14, 2000 11:29 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Help! Bug in TextureLoader?


I have uploaded the 3D-tutorial applet EarthApp (slightly modified) to the
internet but I can't get it to load the image file, earth.jpg. I have tried
using the relative path for the image file (option 1) as well as the
absolute path (option 2). I have also tried creating a URL from the absolute
path (option 3). None of these work in appletviewer or Internet Explorer 5.
To my astonishment, however, if I use appletviewer and there is a copy of
earth.jpg in my current local directory, option 1 works! I didn't think
applets had automatic permission to read files on the local host computer!
Be that as it may, I need the applet to use the image file located on the
internet so that anyone can run it -- not just someone who happens to have a
personal copy of earth.jpg.

The code that attempts to load the image follows. Go ahead and run the
applet at http://www.erols.com/quantime/earthApp/EarthApp.html and see if
you get any better results. I would sure like to know what's going on!

Please, does anyone know a way to load an image into a texture that works?

Thanks, Raffi

My html file, image file and class file are all in the same folder:
http://www.erols.com/quantime/earthApp/EarthApp.html
http://www.erols.com/quantime/earthApp/earth.jpg
http://www.erols.com/quantime/earthApp/EarthApp.class

/********************************/

String filename = null;
URL url = null;
TextureLoader loader = null;
ImageComponent2D image = null;
try{            //OPTION 1
        filename = "earth.jpg";
        loader = new TextureLoader( filename, this );
        ImageComponent2D tempImage = loader.getImage();
        System.out.println( "option 1 succeeded." );
        image = tempImage;
}catch( Exception e ){
        System.out.println( "option 1  failed." );
        e.printStackTrace();
}
try{            //OPTION 2
        filename = "http://www.erols.com/quantime/earthApp/earth.jpg";
        loader = new TextureLoader( filename, this );
        ImageComponent2D tempImage = loader.getImage();
        System.out.println( "option 2 succeeded." );
        image = tempImage;
}catch( Exception e ){
        System.out.println( "option 2 failed" );
        e.printStackTrace();
}
try{            //OPTION 3
        url = new URL( "http://www.erols.com/quantime/earthApp/earth.jpg" );
        loader = new TextureLoader( url, this );
        ImageComponent2D tempImage = loader.getImage();
        System.out.println( "option 3 succeeded." );
        image = tempImage;
}catch( Exception e ){
        System.out.println( "option 3 failed" );
        e.printStackTrace();
}

===========================================================================
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".
BEGIN:VCARD
VERSION:2.1
N:DeMarco Jr;Reynold;;Mr.
FN:Reynold DeMarco Jr
NICKNAME:Reynold
ORG:same;none
TITLE:same
TEL;WORK;VOICE:(617) 437-9465
TEL;HOME;VOICE:(617) 437-9465
TEL;CELL;VOICE:none
TEL;PAGER;VOICE:none
TEL;WORK;FAX:none
TEL;HOME;FAX:none
ADR;WORK:;none;P.O. Box 3584;Boston;Massachusetts;02101;United States
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:none=0D=0AP.O. Box 3584=0D=0ABoston, Massachusetts 02101=0D=0AUnited States
ADR;HOME:;;P.O. Box 3584;Boston;Massachusetts;02101;United States
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:P.O. Box 3584=0D=0ABoston, Massachusetts 02101=0D=0AUnited States
X-WAB-GENDER:2
URL:http://www.handtech.com/tcweb/reynolddemarcojr
URL:http://www.reynolddemarcojr.com
BDAY:19990127
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20000124T231212Z
END:VCARD

Reply via email to