Jump to content
Sign in to follow this  
wyman_hd

Trying to upscale textures to 4k results in black textures

Recommended Posts

So i was trying to upgrade the standard definition textures of the Coolsky DC-9 to 4k using an AI upscaler. And it works fine, the textures themselves look beautiful. However, the textures refuse to appear in P3D. The native resolution of the textures is 1024 x 1024 and i upscaled it to 4096 x 4096. I exported it as a .jpg from the original texture using Photoshop, upscale the textures, (because the program i use cannot upscale .DDS files) then put it into photoshop and then export it back as a .DDS. And it works fine, but it will appear black in P3D. I have a 1080p monitor, but I'm improving the texture resolution, so I won't necessarily need a 4K monitor (at least i don't think). The only way to fix this is to change the resolution BACK to 1024 x 1024 then it will appear. I don't need to "downscale" the textures, i just have to change the texture size. I upscaled the normal maps and bump maps as well, but it still shows as black in P3D.

**EDIT**
Sorry, it has been fixed. It was at the wrong resolution, so i put it back to 4096 x 4096 and it works !

Edited by arwasairl

Share this post


Link to post

Try this

open the dds in Photoshop, do image > image size then 4096

Share this post


Link to post

That will result in a blurry picture without upscaling. The whole point of upscaling is to improve the quality.

Share this post


Link to post
6 hours ago, arwasairl said:

That will result in a blurry picture without upscaling. The whole point of upscaling is to improve the quality.

Upscaling a texture from 1024 to 4096 won’t make it more defined because your starting with a small texture sheet. You can get away with down scaling from 4096 to 1024 because your already starting with a higher definition texture sheet. Upscaling can’t magically add definition that wasn’t there before. That would be like trying to upscale a video that was shot in 720 and upscaling it to 1080, it will just end up looking blurry and pixelated.

You can also think of taking a photo that was printed as a 4x6 and blowing it up to the size of an 8x10. Sure the 8x10 will be larger but it won’t be as sharp as the original 4x6.

  • Like 1

Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
5 hours ago, cmpbellsjc said:

You can also think of taking a photo that was printed as a 4x6 and blowing it up to the size of an 8x10. Sure the 8x10 will be larger but it won’t be as sharp as the original 4x6.

Yes, in general this is true but, there's a new generation of AI-based upscalers, that really do wonders when enlarging low res images, for example:

https://topazlabs.com/gigapixel-ai/

  • Upvote 1

Share this post


Link to post
9 hours ago, cmpbellsjc said:

Upscaling a texture from 1024 to 4096 won’t make it more defined because your starting with a small texture sheet. 

Here's a side-by-side comparison of a Delta texture for the DC-9 and using an AI upscaler to upscale it.
NtNMMGC.jpg

Sure, the new one is not perfect, but it makes the edges less blurry. 
I'm not trying to blow up a texture, rather using AI to try to approximate definitions, making the texture resolution appear larger.

Edited by arwasairl

Share this post


Link to post
11 hours ago, virtuali said:

Yes, in general this is true but, there's a new generation of AI-based upscalers, that really do wonders when enlarging low res images, for example:

https://topazlabs.com/gigapixel-ai/

Interesting, I had no idea. I was wondering where the extra pixels would come from without redrawing a new texture sheet.


Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
8 hours ago, cmpbellsjc said:

Interesting, I had no idea. I was wondering where the extra pixels would come from without redrawing a new texture sheet.

From the "training" which was made over a very large set of photographs, with as many as possible real world examples, taken in the most varied situations.

I read the theory behind it, and It's really fascinating: the AI is not taking "pieces" of other images, but it has learned HOW an image lose its quality when it's downsized, or how and how much quality is lost with compression so, when upscaling, it tries to apply that knowledge gained through training, to the actual situation.

Here, a very popular open source project, which is very suitable for improving older games textures, based on the same principles:

https://www.theverge.com/2019/4/18/18311287/ai-upscaling-algorithms-video-games-mods-modding-esrgan-gigapixel

Edited by virtuali

Share this post


Link to post
On 9/12/2019 at 7:06 AM, cmpbellsjc said:

Upscaling can’t magically add definition that wasn’t there before. That would be like trying to upscale a video that was shot in 720 and upscaling it to 1080, it will just end up looking blurry and pixelated.

Odd, then, that my normal Blu-Ray HD films look abosolutely fabulous on my large screen using a 4K projector which upscales. It does a marvellous job of refining the detail. 

Even bog-standard non-HD DVD films and TV shows look good too, but of course not with as much sharp detail.

I think there are a number of very clever algorithms at work, and, in the video media world, there are several different technologies doing the same thing, some possibly better than others.

Of course, even the usually applied anti-aliassing methods are visually sharpening edges which otherwise become jagged due to the textures being displayed at larger than their pre-defined sizes, in terms of pixels.

Pete

 


Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...