Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / March 2004

Tip: Looking for answers? Try searching our database.

problem with loading texture

Thread view: 
hfszeto - 23 Mar 2004 11:35 GMT
Hi,

I am wondering if somebody can help me with this problem -
I've tried to set a the texture within an instance of the Appearance class
for a Java3D object by using this:

Appearance floorApp=new Appearance();
TextureLoader loader=new TextureLoader("blue4.jpg",this);
floorApp.setTexture(loader.getTexture());

but when I run the Applet, there is no texture loaded on the object - just
a plain solid color that curiously enough matches closely to the main
color of the texture (The texture I used was a chequered patch of
alternating light and dark blue colours, and the solid color I ended up
seem to be the blend of the two). Could anyone tell me if I had done
something wrong?
JK - 26 Mar 2004 10:08 GMT
Have you set the texture coordinates in the geometry of the shape?

JK.

> Hi,
>
[quoted text clipped - 12 lines]
> seem to be the blend of the two). Could anyone tell me if I had done
> something wrong?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.