Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tiantian20007

Pages: [1]
1
Support / Re: Normal map texture unexpectedly get compressed
« on: August 04, 2017, 11:44:24 am »
Thx a lot! My code is based on the custom shader sample, and I found the code:

Texture.defaultTo4bpp(true);

Change it to:

Texture.defaultTo4bpp(false);

and problem solved!

2
Support / Re: Normal map texture unexpectedly get compressed
« on: August 04, 2017, 11:01:20 am »
Add the bad.png.

3
Support / Normal map texture unexpectedly get compressed
« on: August 04, 2017, 10:58:15 am »
I'm doing basic normal map shading, but the result is quite strange.
So I attached the normal map directly to my model as the basic color and found it unexpectedly got compressed.
You can see the image bad.png in the attachment. The color seems sudden change and not smooth.
But the original texture is quite smooth as you can see the image good.png in the attachment.

Is there a way to avoid texture compression?
I already did:
normalTexture.setTextureCompression(false);
but not work.

Pages: [1]