> And yet an other question:
> Is there a way to speed up texture loading?�

If you look into the code of TextureLoader you can see something like
thread.sleep(100) in the loop where the image is loaded. This takes a lot of
time. At this place you can use the image loader from Justin Couch for
example, it is very fast, doesn't use an observer-mechansim (->no component
is needed), but is platform dependent. Daniel Selman compiled the neccessary
libs. Look at his latest messages if you are interested.

> If I import a textured scene it takes minutes to load it.
> Is this because my textures are not power of 2?

Hmm, I don't know.

> Or creates the loader MIP levels if no special option is set?

No, Miplevels are only created when using GENERATE_MIPMAP. The generating
process for scaling the images also uses the observer-mechansim. This takes
a lot of time, too.

> Or is this a typical problem of Java3D?

Someone said that the PixelGrabber in TextureLoader takes a lot of time. I
wanted to test this, by using Justins image loaders and still use the
PixelGrabber, but I didn't have the time yet.

Hope this helps a bit

Chris


>
> > -----Original Message-----
> > From: Discussion list for Java 3D API
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Wewerka
> > Sent: Dienstag, 11. Januar 2000 09:27
> > To: [EMAIL PROTECTED]
> > Subject: [JAVA3D] Re : [JAVA3D] flat VRML-Textures
> >
> >
> > I think, that's not really a bug, Thomas.
> >
> > The VRML-Loader uses the default TextureAttributes which uses the
> > REPLACE-Mode.
> > The only thing you have to do is:
> > Search the shape via getNamedObjecs() for example and set the
> > TextureAttributes to MODULATE.
> >
> > Regards
> > Chris Wewerka
> >
> > >
> > > > Hi,
> > > > when I import models via the VRML-Loader textured objects are drawn
> > > correct
> > > > with textures, but are not shaded. They appear flat.
> > > > Untextured objects are shaded correctly.
> > > > What's wrong?
> > > > Do I have to set a special option or flag? Or is this a bug?
> > > >
> > > > Thanks.
> > > > Thomas.
> > > >
> > > > Thomas Bendig
> > > > [EMAIL PROTECTED]
> > > > http://www.echtzeit.de
> > > >
> > > >
> > >
> > ==================================================================
> > =========
> > > > 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".
> >
>
>
===========================================================================
> 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".

Reply via email to