Hi i have a problem… I want to have some textures on my walls but it only seems to stretch the texture and i want to have it tiled… Is it because I use boxes for walls or is it something else?? Please help me…
sorry don’t have an answer but… you may want to ask this in the java3D forum if this is a java3D specific question.
You really should ask Java3D-specific questions in the appropriate forums, but your problem is of general nature: Your texture coordinates are wrong. How do you set your texture coordinates? If you specify a quad to be [0,0]-[2,1] size and your texture coordinates span the whole quad once, i.e. [0,0]-[1,1], your texture will appear stretched, 2:1 in this case. Adjust your texture coordinates (and the repeat mode of the texture coordinates) to match your quad.
HTH
Wolfgang