Author Topic: How to set or change tiling on an object  (Read 1786 times)

Offline Melssj5

  • double
  • *****
  • Posts: 715
    • View Profile
How to set or change tiling on an object
« on: August 28, 2008, 08:07:48 pm »
Hi, i am working on a app to view some houses from inside and outside, the idea is that the user is able to change dinamicly the texture of floor, walls, etc.

Now my problem is:
 - When I use a texture like wood, it has to be applies on some way, but if I use another one like

or




then I must adjust the tiling on somehow to make fit a determined amount of those textures in a squared meter.

The first pic may be displayed in a distribution from 2x2

but the second one may be only one of those for each squared meter.

Any ideas, any suggestion about how to work with this kind of project.
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: How to set or change tiling on an object
« Reply #1 on: August 28, 2008, 08:47:51 pm »
Somewhere in the forums is a class that allows dynamic tiling ...i can't find it because of this f******g bug in the search function... >:(
But maybe you can. The basic idea is to take the PolygonManager and adjust the texture coordinates.