Author Topic: repeating textures  (Read 2940 times)

Offline acorn98

  • byte
  • *
  • Posts: 46
    • View Profile
repeating textures
« 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..

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11747
    • View Profile
    • http://www.jpct.net
Re: repeating textures
« Reply #1 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.

Offline acorn98

  • byte
  • *
  • Posts: 46
    • View Profile
repeating textures
« Reply #2 on: January 05, 2004, 02:58:44 am »
... now works perfectly.  thanks!!