www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: nicolas french on November 01, 2003, 04:29:47 pm

Title: texture
Post by: nicolas french on November 01, 2003, 04:29:47 pm
i'm trying to write an applet which looks like your homepage applet.
My Sphere primitive rotates but the texture doesn't!
Do you have an idea where it comes from?
Title: texture
Post by: EgonOlsen on November 03, 2003, 05:30:35 pm
What does the texture do instead? Maybe you are using environment mapping for the sphere. What you should do is to either project a texture onto the sphere using Object3D.calcTextureWrapSpherical() or Object3D.calcTextureWrap() or use the sphere object i'm using for the demo. It's in ASC-format and can be found here: http://www.jpct.net/terra.ask The suffix is ask instead of asc because older Netscape-browsers are having some problem with applets loading asc-named files.
Hope this helps.