FA> BUT.. i think i found the REAL answer to this problem
FA> we need to provide absolute positioning in java3d code for pictures and
FA> other files.

FA> for instance, in my case:

FA> TextureLoader bgtex1 = new TextureLoader(new string("
FA> c:\\jbuilder3\\myprojects\\theGame\\blue.jpg"),new String("RGB"),this);

The best solution is to use URLs, both 4 local and distant
run. The 'baseUrl' can be constructed during runtime, depending on how
the application has been run (as an application or as an applet).

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
FA> hello
FA> i was very much concerned about bringing textures in browser. but i used to
FA> receive the message that:
FA> unable to load image.

FA> i searched alot on interest group, and what i found was that this is a
FA> java3d-problem, because, trees compiles up eariler then the image to get
FA> loaded.
FA> it was suggested, that we shd make a loop, to wait, until the image loads
FA> completely, and then allow the tree to compile.


FA> BUT.. i think i found the REAL answer to this problem
FA> we need to provide absolute positioning in java3d code for pictures and
FA> other files.

FA> for instance, in my case:

FA> TextureLoader bgtex1 = new TextureLoader(new string("
FA> c:\\jbuilder3\\myprojects\\theGame\\blue.jpg"),new String("RGB"),this);

FA> this really worked.
FA> and now i can view textures even, when i run my java3d application in
FA> browser.

FA> (for running the applet on webserver, u wud require to add complete address
FA> like  "http://ntws026/java3d/images/blue.jpg" )


FA> Fahad

FA> ===========================================================================
FA> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
FA> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
FA> [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".

Reply via email to