討論區: 開發者論壇 (Thread #43114)

Unit testing discussion (2020-10-17 07:13 by quiret #86018)

This weekend I have decided to start massive unit testing of file formats that magic-rw does process. One of the key file formats are native texture RW streams. These are very complicated 2D image data encodings that come in either working or damaged state. The goal of our framework is to accept the biggest subset of both damaged and proper files while rejecting all others with good reason.

To create unit tests for RenderWare streams a special tool has been created that can write RenderWare chunks. You can download the first test version here:
https://osdn.net/projects/eirsamples/downloads/73815/rwchunk-writer.zip/

I will share more details after getting started with the unit tests. It is the most urgent blocking factor for a new Magic.TXD release.

Re: Unit testing discussion (2020-11-11 06:09 by quiret #86146)

Over the course of the last few weeks I have been creating unit tests for Direct3D 8 and Direct3D 9 native textures. It is important to note that I did target my tests for the Intel HD Graphics 620 graphics card. The commercially used RenderWare Direct3D 8/9 implementation does suffer from certain loader quirks that bind correct loading of textures to internal workings of graphics drivers. Yes, it does violate the documentation at a critical part but if you model the loader while having a certain class of graphics cards in mind I think it can work?

Anyway, enough of my rant. Here you can download .zip archives that contain native texture unit tests for both driver types:

https://magic-rw.osdn.jp/unit_tests/rwtex.unittests.d3d8.zip

https://magic-rw.osdn.jp/unit_tests/rwtex.unittests.d3d9.zip

They do not come in TXD files but in rwtex files. This is a smaller, lesser known RenderWare format that was introduced by me years ago in a GTAForums topic.
回覆: #86018