nvpro-samples / nvtt_samples Goto Github PK
View Code? Open in Web Editor NEWNVIDIA Texture Tools samples for compression, image processing, and decompression.
License: Apache License 2.0
NVIDIA Texture Tools samples for compression, image processing, and decompression.
License: Apache License 2.0
I wanted to modify the game Witcher 3, and faced with the fact that some textures dds format does not open. Perhaps the implementation of the image itself is proprietary, and to you should not be a claim. But at least the program should report that it does not support this type of images. And not a stupid pop up. (When you try to open goes noise on the speakers).
There are textures in the link:
Texture 'alnus.dds' (Diffuse) opens without problems (NVTT is probably the only software that opens it)
Texture 'alnus_n.dds' (Normal Map) and 'alnus_s.dds' (Specular) do not open, the program crashes when trying to open them. Maybe it has something to do with sRGB modes ? It is possible that another program that pulls textures from the game, breaks the texture.
https://drive.google.com/drive/folders/1Esy2ZBMjccM790nux28qR2l5eomjL9g7?usp=sharing
In file nvtt_samples/compress/compress.cpp std::path is used wrongly
See line 410
output = input.replace_extension("dds");
replace_extension modifies the @input and as a result the program doesn't work with non-explicit output file:
Replacing the line with:
output = input;
output.replace_extension("dds");
fixes the issue
I used the compress code to compress a png file. After I got the dds file I put it into photoshop which has got plugin nvidia-texture-tools-exporter and found that some alpha channels were wrong.
This is the original png file. It is round-bordered.
This is the dds image, which I have transferred to png format with photoshop.
the arguments are
-astc_ldr_6x6 3011000_best.png
It looks like that every 6 by 6 block share the same alpha channel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.