www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: acorn98 on January 05, 2004, 12:04:51 am

Title: repeating textures
Post by: acorn98 on January 05, 2004, 12:04:51 am
hi,

I've got a 3ds file with loads of textured objects, where the textures repeat, like tiles. It works great using the fps demo, with no problems.

I've now converted the app to run as an applet, but suddenly all my textures only appear once on each object - they're no longer tiling. The rest of the untextured area shows a repeated one-pixel edge from the texture. I know the 3ds file is fine, because it renders correctly in the non-applet version.

I suspect there's some property or other i need to set on my loaded objects, but I can't find anything in the API docs.

Any suggestions/pointers greatly appreciated..
Title: Re: repeating textures
Post by: EgonOlsen on January 05, 2004, 12:26:51 am
Quote from: "acorn98"
but I can't find anything in the API docs.
But there is... :wink: :

Quote
Texture coordinates are supported, but texture tiling is supported only by the OpenGL- and the SoftGL-renderer. The legacy renderer doesn't support it and will clamp the coordinates instead.


I assume that you haven't changed the renderer in the applet version and are using the (default) legacy software, which doesn't support tiling.
Change to the software renderer in OpenGL mode and things should work fine again.

Hope this helps.
Title: repeating textures
Post by: acorn98 on January 05, 2004, 02:58:44 am
... now works perfectly.  thanks!!