DXTn 纹理支持,没有“启用 S3TC...”选项

Her*_*ler 5 nvidia graphics drivers

我遇到了与此处所述相同的问题。

我正在寻找对 DXTn 纹理的支持。我worldwind在终端中运行并收到以下错误消息:

Aug 22, 2012 5:28:12 PM gov.nasa.worldwind.layers.TextureTile initializeTexture
SEVERE: Exception attempting to read texture file
javax.media.opengl.GLException: DXTn compressed textures not supported by this graphics card
Run Code Online (Sandbox Code Playgroud)

我从这里尝试了建议的解决方案

sudo apt-get install driconf
driconf
Run Code Online (Sandbox Code Playgroud)

在“图像质量”下,将“启用 S3TC ...”更改为是。节省。


driconf解决方案没有解决问题。“图像质量”选项卡中没有“启用 S3TC...”选项。

我想我正在使用 Nouveau 驱动程序,我想知道是否应该切换到 Nvidia 驱动程序?

  • 电脑:Dell Precision M6400
  • 处理器:Intel® Core™2 Duo CPU T9550 @ 2.66GHz × 2 Ubuntu:12.0.4 LTS
  • 显卡:NVIDIA Quadro FX 2700M
  • 图形: NV94 上的镓 0.4

有任何想法吗?

Ser*_*gey 3

看看: http: //en.wikipedia.org/wiki/S3_Texture_Compression

虽然 S3 Graphics 不再是图形加速器市场的竞争对手,但使用 S3TC 技术(例如在游戏机和显卡中)仍需征收许可费。S3TC 的专利限制状态及其在软件中的广泛使用(尽管有非限制替代方案)导致事实上要求 OpenGL 驱动程序支持它,并为开源实现带来了主要障碍

这就解释了为什么Nouveau驱动程序不支持它。我猜你需要切换到二进制 NVidia 驱动程序。


Cam*_*mpa 2

否则:

..并告诉WorldWind不要使用 S3 纹理压缩(.dds格式),而是使用 PNG 默认纹理格式。

您可以下载源代码(现在是 SDK 2.0):

wget http://builds.worldwind.arc.nasa.gov/worldwind-releases/2.0/builds/worldwind-2.0.0.zip
unzip worldwind-2.0.0.zip -d worldwind-2.0.0
Run Code Online (Sandbox Code Playgroud)

然后将更改应用到此处此处列出的源文件。

由于这些链接有点过时,您还应该进行一些更改,以便在 WW 2.0 版本上正常工作(请参阅附录)。

之后,您可以重新构建新的worldwind.jar

wget http://builds.worldwind.arc.nasa.gov/worldwind-releases/2.0/builds/worldwind-2.0.0.zip
unzip worldwind-2.0.0.zip -d worldwind-2.0.0
Run Code Online (Sandbox Code Playgroud)

我亲自通过运行Netbeans的 SDK 进行了验证。

cd worldwind-2.0.0/
ant worldwind.jarfile # or simply `ant'
Run Code Online (Sandbox Code Playgroud)

华泰

附录:SDK 2.0 补丁

$ sudo lshw -C video | egrep "product|driver"
   product: RV635/M86 [Mobility Radeon HD 3670]
   configuration: driver=radeon latency=0
Run Code Online (Sandbox Code Playgroud)