-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDS: unsupported fourcc #15
Comments
@nickbabcock |
A 111 FourCC is a legacy format. While a robust DDS reader would support legacy formats, it's not high on my priority list. I'm currently looking into supporting 808540228 (DX10) images. I have realized that a lot of the DX10 formats don't have analogous formats in WinForms. This means that while Pfim could decode these formats, it'd be up to the client to convert the format that can be meaningfully used, as Pfim is frontend and backend agnostic. I've made the WinForms sample viewer show a messagebox when a non-supported format is encountered. I'll update Pfim to 0.5 when I get through enough of the DDS files. I'm unsure if 0.5 will contain DX10 DDS files or BC6/7. It depends on the amount of work needed. After 0.5 is released I'll update the benchmarks with your suggestions. |
Curious, what if you will rewrite your WinForms example to WPF? It uses DX11 (since .NET 4.6, if I remember correctly). So I suppose any image that DX10/DX11-hardware is support will be rendered in Wpf picturebox. |
There are two example projects, one in WinForms (the default) and one in WPF (hasn't been updated to support the latest formats). The WPF project uses PixelFormats (instead of WinForm's |
@nickbabcock
And, I suppose, after bunch of fixes and some formats support enhancements, it should be v1.0, not v0.5 :) |
Then, if WPF is not an option... Well, may be this suggestion will be kinda "overkill", but since your library will be used for gamedev purposes for sure, I suggest you take a look to this repo - https://github.com/EnoughTea/dades/ - specifically take a look please on DadesOglExample which uses OpenGL to display dds as textures. |
Maybe. Ideally, I'd like there to be time to grow confidence. To me, 1.0 kinda signifies a proven product, yet I believe there will always be gaps in Pfim (from someone's perspective). By committing to a v1.0, I'm committing to not breaking the API. Adding another variant to the
Yeah it's very possible to create additional example projects (eg. create a webserver to display tga and dds images in the browser). But I'm not looking to flesh out fully featured tga and dds image viewers across all platforms 😄 |
@nickbabcock P.S. Plus it will be easier/handy to test - no need to depend on what pixel formats WinForms is support, it all be on videocard support, which is support a much more formats than WinForms can display. |
I've released Pfim 0.5. Still left to be done:
Since I don't have an estimate on these features, I decided to get a version out the door, as it contains important bug fixes too 👌 |
Nice! Congrats with release! Looking forward to these todos :)
…On Mar 18, 2018, 17:36, at 17:36, Nick Babcock ***@***.***> wrote:
I've released Pfim 0.5. Still left to be done:
- BC 6/7 DDS
- DX10 DDS
- Improved colormap abstraction
Since I don't have an estimate on these features, I decided to get a
version out the door, as it contains important bug fixes too 👌
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#15 (comment)
|
@nickbabcock |
I'm working out color spaces. Just thought I'd give an update. |
Yeah, Math.Net would be surplus.
Thanks for letting know! P.S. Hope to see BC7 support :) |
I hadn't thought about that before. I think that is a good idea. I'll need to track all the performance sensitive math operations and see what needs to be extracted!
DX10 is turning out more complicated than I thought 😆 |
Closing this in favor of the main thread on BC6/BC7: #16 |
System.ArgumentException: FourCC: 808540228 not supported.
at Pfim.Dds.Create(Stream stream) in d:_GIT\Csharp-nices\Pfim\src\Pfim\dds\Dds.cs:line 94
and
System.ArgumentException: FourCC: 111 not supported.
at Pfim.Dds.Create(Stream stream) in d:_GIT\Csharp-nices\Pfim\src\Pfim\dds\Dds.cs:line 94
Files (a lot): https://nofile.io/f/cXYHORMfcVq/fourcc.rar
The text was updated successfully, but these errors were encountered: