flutter_cube icon indicating copy to clipboard operation
flutter_cube copied to clipboard

Higher res texture

Open jovanovski opened this issue 5 years ago • 3 comments

I took the planet example, and provided a higher res picture for the texture, but when I zoom in, the same pixelation occurs on the same level. What am I doing wrong?

jovanovski avatar Apr 04 '20 22:04 jovanovski

I found that the encodeImageFromPixels function in some devices will return an image size smaller than you specified, this function in mesh.dart's packingTexture. I'm not sure if this is the reason.

zesage avatar Apr 06 '20 06:04 zesage

Hmm could be... I guess this isn't the best package meant to use if you need really high detailed textures? (possibly memory issues)

jovanovski avatar Apr 06 '20 10:04 jovanovski

Right. The packingTexture will pack all to one raw texture. What is the resolution of your texture? Try to remove the "_stars" object to take a look.

zesage avatar Apr 06 '20 17:04 zesage