Hi,

What you do say does make sense, I was still
accessing the textures as files, not URLs. However now
I had sorted this I'm still having a little trouble!

I can access textures that are loaded within the main
class, however I have other classes that need to load
textures, when I try to do this I can't reference a
variable form my main to my other classes. Something
about non-static to static problem...

I have also tried direclty accessing the textures from
the other classes, but this gives permission faults!

Does anyone have any ideas?

I know the above probably doesn't make much sense!

Simply, I am trying to load multiple textures into a
scene, from multiple classes.

Cheers
KP

 --- Karsten Fries <[EMAIL PROTECTED]> wrote: >
Hi Karl,
>
> - make sure you don't silently catch an Exception;
> the exception could give you
> a hint of what is going wrong
> - assure the permissions for accessing the image
> files are set properly,
> otherwise you wan't get access to them.
> - assure you load them from the appropriate url with
> appropriate protocol (e.g.
> http://myserver:8080/applet/image0.jpg), also note
> that if you access them via
> file://... your applet won't allow the access,
> because of security reasons
> (anyway this would really work from another computer
> than yours).
> - you can also try to compose the url yourself to be
> able to control it in an
> improved fashion: you can access the codebase or
> documentbase URL from the
> applet context of your applet. (something like:
> applet.getAppletContext().getDocumentBase...();) and
> build your image url from
> it.
>
> i hope that at least one of the above applies to
> your problem...
>
> cheers,
> Karsten
>
>
>
> Karl Parry wrote:
>
> > I am struggling to allow textures within my 3D
> applet
> > within my browser.
> >
> > I have looked at other applets containing
> textures,
> > but the HTML code is no different. Do I need to
> place
> > the textures anywhere different, at the moment
> they
> > are in the same folder as the class file, and html
> > file.
> >
> > I think the only problem with my applet is the
> fact
> > that the textures are not loading. Does anyone
> have
> > any thoughts? I'd really appreciate any ideas,
> cheers
> >
> > KP
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> >
> >
>
===========================================================================
> > 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".

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

===========================================================================
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