www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: Melssj5 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 (http://www.mundosims.com.ar/Archivos/Pisos/TS2/BALDOSA%20-13-.png)
or
(http://www.sunaipa.com/BLOG/Ilustra/baldosa.jpeg)
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.
-
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.