Update FAQ regarding S3TC patent

This is the place to discuss the Wiki contents, forum issues, themes and to propose site-related features and ideas.
User avatar
Thunderforge
Posts: 262
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

Update FAQ regarding S3TC patent

Post by Thunderforge » 24 Dec 2017, 04:47

The OpenMW has an FAQ regarding the S3TC patent
When does the S3TC patent expire, when it does can we play Morrowind then?

The patent expires on “Oct 2, 2017” but it can be renewed before then. If it does expire, then OpenMW will feel comfortable enough to allow code into OpenMW for decoding/decompressing textures on the fly for systems that do not support it, such as the Raspberry Pi.
October 2, 2017 has come and gone, and it was indeed expired. In fact, discussion has already occurred about how this impacts OpenMW. I think this FAQ should be updated or deleted entirely.

User avatar
lgromanowski
Site Admin
Posts: 1167
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Github profile: https://github.com/lgromanowski
Contact:

Re: Update FAQ regarding S3TC patent

Post by lgromanowski » 27 Dec 2017, 20:33

Thunderforge wrote:
24 Dec 2017, 04:47
The OpenMW has an FAQ regarding the S3TC patent
When does the S3TC patent expire, when it does can we play Morrowind then?

The patent expires on “Oct 2, 2017” but it can be renewed before then. If it does expire, then OpenMW will feel comfortable enough to allow code into OpenMW for decoding/decompressing textures on the fly for systems that do not support it, such as the Raspberry Pi.
October 2, 2017 has come and gone, and it was indeed expired. In fact, discussion has already occurred about how this impacts OpenMW. I think this FAQ should be updated or deleted entirely.
I'm also in favour of deleting this point, but lets wait what psi26a, raevol, and others think about it.
best regards,
Lukasz

User avatar
Thunderforge
Posts: 262
Joined: 06 Jun 2017, 05:57
Github profile: https://github.com/Thunderforge

Re: Update FAQ regarding S3TC patent

Post by Thunderforge » 28 Dec 2017, 04:50

Looks like the S3TC patent is also talked about in the "Can I play Morrowind with OpenMW on other platforms like the Raspberry Pi?" section, so that will have to be revised as well (probably not deleted though).

User avatar
raevol
Posts: 2597
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: Update FAQ regarding S3TC patent

Post by raevol » 28 Dec 2017, 10:00

I'm in favor of deleting it, this is definitely @psi29a 's baby though.

User avatar
lysol
Posts: 823
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: Update FAQ regarding S3TC patent

Post by lysol » 28 Dec 2017, 15:57

Wasn't the S3TC decoding/whatever implemented into OSG after the patent expired?
Normal mapped texture replacers, exclusive for OpenMW:
My Nexus page

User avatar
psi29a
Posts: 3594
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Update FAQ regarding S3TC patent

Post by psi29a » 28 Dec 2017, 19:28

We can always have a blurb that it no longer effects us, that the patent hasn't been renewed. Give tips on how to get s3tc support in various distros?

User avatar
raevol
Posts: 2597
Joined: 07 Aug 2011, 01:12
Location: Caldera

Re: Update FAQ regarding S3TC patent

Post by raevol » 28 Dec 2017, 23:06

psi29a wrote:
28 Dec 2017, 19:28
We can always have a blurb that it no longer effects us, that the patent hasn't been renewed. Give tips on how to get s3tc support in various distros?
That's not a bad idea. Could you draft a new bit of text for it? Sorry I'm volunteering you haha.

User avatar
psi29a
Posts: 3594
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Update FAQ regarding S3TC patent

Post by psi29a » 29 Dec 2017, 17:13

The S3TC patent is expired, but we're still dealing with the after effect. To enable support for S3TC using the FOSS Xorg video drivers/modules on Ubuntu or Debian, please install the libtxc-dxtn-s2tc package. If you use the binary drivers from Nvidia or AMD, this has no effect.

Please note that there is hardware that does not support S3TC, such as the Raspberry Pi (1, 2 and 3) as of this writing. Even with the package installed, the hardware, VC4, does not support decoding S3TC encoded textures and will give you a pink textures as a result. There is work being done in OSG to allow software decoding of S3TC encoded textures at run-time before uploading to the GPU, but it is not yet ready for release.
Is this OK? Please correct me if I'm wrong about the run-time decoding of S3TC textures... but I thought that was where OSG was heading.

User avatar
AnyOldName3
Posts: 722
Joined: 26 Nov 2015, 03:25

Re: Update FAQ regarding S3TC patent

Post by AnyOldName3 » 30 Dec 2017, 05:12

OSG does it, but it's not yet made it into a release simply because they've not done one since the feature was introduced (so it'll only be available if OpenMW is built using a git revision of OSG). Scrawl's OSG On Steroids fork has it, too, though, so up-to-date OpenMW packages made since the patent expiry should support software decoding. This relies on the package maintainer keeping their OSG On Steroids builds up to date, and they don't exactly have releases (although the version number increases sometimes to stay in sync with the mainline OSG 3.4 branch).

When a recent enough OSG build is used, creating a certain environment variable whose specific name and value I can't remember will enable software S3TC decoding in OpenMW.
AnyOldName3, Master of Shadows

User avatar
psi29a
Posts: 3594
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Update FAQ regarding S3TC patent

Post by psi29a » 25 Mar 2018, 18:37

Has this made it into an OSG version yet (3.4.1?) or in our OSG fork yet? Does anyone happen to have the specific commit or set of commits that implements this?

Post Reply

Who is online

Users browsing this forum: Amenophis and 2 guests