starandserpent / java-TerraServer

Terra - Voxel octree of chunks, made for Rituals of the old
MIT License
18 stars 2 forks source link

Texture mapping is not working properly #42

Closed Pilvinen closed 5 years ago

Pilvinen commented 5 years ago

https://i.snag.gy/D9f3Gs.jpg

This is a really close closeup on the texture on one block. The pixels are visibly stretched.

https://i.snag.gy/jhfNB1.jpg

This is a really close closeup from further away, again, on one block. You can see the texture repeating. It should not repeat on this level. If I'd had estimate, I would say that the texture is repeating on one 25x25x25 cm block hundreds or even thousands of times.

This the cause behind the strange looking textures we've been having. The problem would have been obvious by using test textures, like I suggested.

https://i.snag.gy/XvpaY7.jpg

Here's what the image actually should look like up close.

https://i.snag.gy/W1NirT.jpg

Here I replaced the textures with test textures and zoomed in really close. You get the idea.

Pawlost commented 5 years ago

I fixed textures calculation