AT2 compression[Will be Improved]

Next-Gen Massive Virtual Texturing for Unity Pro

Re: AT2 compression

Postby fisherman » Wed Apr 29, 2015 5:38 pm

Sorry, I just found the "Compression Quality" setting in the Virtual Material's "Layers" panel. Please ignore my previous posting :D
fisherman
 
Posts: 17
Joined: Wed Mar 25, 2015 5:50 pm

Re: AT2 compression

Postby fisherman » Wed Apr 29, 2015 5:50 pm

Sorry, it's me again :) But my initial question seems to be valid. Changing the "Compression Quality" setting in the Virtual Material's normal map settings does not help, it makes things worse - it results in a black material after rebuilding. Changing the value back to its initial 85 does not help, the material remains black after rebuilding again.
fisherman
 
Posts: 17
Joined: Wed Mar 25, 2015 5:50 pm

Re: AT2 compression

Postby Ricardo Teixeira » Thu Apr 30, 2015 4:26 pm

Hello,

Can we test that material on our side? I can't really tell if you are experiencing some sort of issue or if it's just caused by the compression, it does look a bit odd.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: AT2 compression

Postby fisherman » Thu Apr 30, 2015 6:20 pm

Hi Ricardo,

after i got a black material while playing with the compression settings, I just deleted the virtual material and texture and created a new one. Now the "black material" issue is gone.

Do you want to test the material that shows the artefacts due to normal map compression? I tried it with a compression setting of 100 and the artefacts were gone, while chosing lower compression values results in more artefacts. If this is what you want to test, I can try to prepare a simple test case for you.

Thanks
Bernhard
fisherman
 
Posts: 17
Joined: Wed Mar 25, 2015 5:50 pm

Re: AT2 compression

Postby Ricardo Teixeira » Thu Apr 30, 2015 6:37 pm

Hello,

Happy to know the black material issue is gone. Yes, we would love to test an example just to be sure it's not an unknown/specific compression problem.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: AT2 compression

Postby fisherman » Thu Apr 30, 2015 7:25 pm

Hi Ricardo,

these normal map artefacts are well visible within a certain Smoothness range and light and camera angle, so I prepared a small scene showing the effect.

Start with a new Unity 5 project, import the AT2 package and the attached MaterialTest package. In the "resources" Folder, build the virtual texture, double click the Scene named "scene001" and press Play.

As you said, I am not sure if this is an issue or just a compression corner case. To avoid it, I have to disable compression for the normal map. Of course I would prefer to use some compression as I am targeting tablet devices.

materialtest.jpg
materialtest.jpg (38.39 KiB) Viewed 5690 times
Attachments
MaterialTest.unitypackage
(38.55 KiB) Downloaded 480 times
fisherman
 
Posts: 17
Joined: Wed Mar 25, 2015 5:50 pm

Re: AT2 compression

Postby Ricardo Teixeira » Fri May 01, 2015 10:29 pm

Thanks, I will get back to you asap with additional information.
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: AT2 compression

Postby Diogo Teixeira » Sat May 02, 2015 3:06 pm

Hi fisherman,

This is definitely a compression corner case. Both figuratively and literally.

I found that the normal map you sent over is non-power-of-two and our resampling seems to have a small precision problem, causing discontinuities which are also visible when using lossless or no compression. I'll get this fixed.

Adding to that, our lossy compressor can't handle hard normal map edges that well. I'm going to patch the current dev version to allow different compression types per layer, so we can optionally use Lossless only on the normal layer. We'll have to improve the Lossy compressor regardless, but it'll take a bit longer.

If you're interested we can send over an updated trial once these change are in.

--- edit

Just to clarify:
Even in the current version, if you switch to power-of-two textures and use Lossy, at max or near-max quality (95-100) only in the Normal Map layer, you get more acceptable good results and better compression rates than Lossless.

Image
We can do better, however, and we will.
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: AT2 compression

Postby fisherman » Sat May 02, 2015 11:37 pm

Hi Ricardo,

thanks for your thorough analysis. I wrote a long reply, but apparently my session expired so everything was gone when I hit "Submit". As a short summary, using only Power of two maps is absolutely fie for me - in fact all my maps are 4K square, I just created the non-Power Of Two map for the quick sample.

I will be happy to continue testing future versions with my current projcet. I am eagerly waiting for the day you will announce availabiltiy of a more or less mobile-ready version though - my testing helps me to get used to AT2, but I can't use/see the results on the target platform, so to make some progress I have to run two separate project workflows, one with AT2 and one without.

Thanks,
Bernhard
fisherman
 
Posts: 17
Joined: Wed Mar 25, 2015 5:50 pm

Re: AT2 compression

Postby Ricardo Teixeira » Sun May 03, 2015 8:31 pm

No problem, thanks for getting back to us and feel free to get in touch if you run into any additional issues. We will keep you posted on any new updates and fixes, Mobile support is not far off. ;)

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Next

Return to Amplify Texture 2 - Development Builds

Who is online

Users browsing this forum: No registered users and 2 guests

cron