问题标签 [pvrtc]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1767 浏览

iphone - 如何在 iPhone 上使用压缩纹理?

是否有任何教程可以教我如何在我的程序中使用 mipmapping?我已经知道如何生成 mipmap,但我想了解如何在我的程序中读取、加载和使用 pvr 文件。

0 投票
2 回答
4356 浏览

iphone - 在 OS X 上查看 iPhone 的 PVRTC 图像

我需要从 OS X 上的 iPhone 应用程序 (*.pvr) 查看一些 PVRTC 压缩纹理。

有查看器或格式转换器吗?

0 投票
4 回答
7643 浏览

image-processing - PVRTC 压缩增加 PNG 的文件大小

对于 iPhone 游戏开发,出于性能考虑,我从 PNG 格式切换到 PVRTC 格式。但是 PVRTC 压缩创建的文件比 PNG 文件大得多。所以 140 KB (1024x1024) 的 PNG 在 PVRTC 格式中膨胀到 512 KB 或更多。我在某处读到 50 KB 的 PNG 文件被压缩到大约10KB,就我而言,它是相反的..

发生这种情况的任何原因以及我如何避免这种情况..如果 PVRTC 压缩盲目地进行 4bpp 转换 (1024x1024x0.5) 而与 PNG 中的透明度无关,那么我们在这里实现的压缩是什么..

我的游戏中有 100 张这些 1024x1024 的图像,因为有很多角色每个都在做一些复杂的动画。所以在每张图像 512KB 的速度下,我的应用程序将获得超过 50MB ..这对我的客户来说是不可接受的..( PNG,我本可以让我的应用程序达到 10MB)..

0 投票
2 回答
2634 浏览

image - PVRTC 格式会影响图像质量

对于 iPhone 游戏开发,出于性能考虑,我从 PNG 格式切换到 PVRTC 格式。但是 PVRTC 压缩正在破坏图像的质量。我正在为角色动画使用带有透明度的 spritesheets。而且 pvrtc 使靠近透明度的角色周围的边缘看起来很泥泞。

我读到 pvrtc 不能处理边缘和所有..但是有解决方案吗?我们能不能对这些图像做点什么,至少角色周围不会有这些泥泞的界限……

桑卡尔

0 投票
1 回答
496 浏览

bits - color depth bits?

(Quick version: jump to paragraph next to the last one - the one beginning with "But")

I was happy in my ignorance believing that PVRTC images were 4 or 2 bits per channel. That sounded plausible. It would give 4+4+4+4 (16 bit) or 2+2+2+2 (8 bit) textures, that would have 2^16 (65536) and 2^8 (256) color depth respectively. But reading through some documents about PVRTC, I suddenly realized that it said 4 bpp (and 2 bpp), i.e. 4 bits per pixel. Confusion and madness entered my world.

What?! 4 bits? Per pixel? But that's just 1 bit per channel! (And don't even get me started on the 2 bit one, that one was far too weird for my brain to grasp at the moment.) Some moments into this agonizing reality, I came to understand this wasn't so real after all. Apparently, when saying 4 bpp, it's referring to the compression, and not the color depth. Phew, I wasn't not mad, after all.

But then I started to wonder: what color depth do these images have then, after decompression? I tried to look this information up, but apparently it's not considered important to mention (or I'm just bad at finding info).

The fact that PVRTC compressed images don't seem give any visible artifacts in OpenGLES with the pixel format RGBA4444 would suggest they're 16 bit (using 32 bit png images with the pixel format RGBA4444 in OpenGLES on the iPhone gives very visible artifacts).

0 投票
1 回答
1272 浏览

iphone - 是否可以在 UIImages 中使用 PVRTVC 纹理?

我在内存中有很多 UIImages 时遇到了一些问题,所以我想知道是否有任何方法可以在 UIImages 中使用 PVRTC 图像而不是 PNG。

0 投票
2 回答
2138 浏览

ipad - OpenGL ES,如何渲染 PVR 纹理?

编辑:好的,对不起,我有一个简单的编程错误,有没有办法删除这个问题?

我有一些 PVR 文件的压缩纹理,但我似乎无法使用 OpenGL ES 在我的 iPad 应用程序中绘制它们。

我可以很好地绘制 PNG 文件,我知道 PVR 文件正在正确加载。我需要调用一些特殊的 OpenGL 绘制函数来绘制 PVR 文件吗?

编辑:我得到的只是一张白色的图像。

任何信息表示赞赏。

0 投票
1 回答
1227 浏览

macos - PVRTexTool,有没有办法一次在多个文件上运行它?

我正在使用 PVRTexTool 将 png 文件转换为 pvr 文件,但该工具似乎一次只能在一个文件上运行(不接受 *.png 作为文件名)。

有谁知道如何一次在一组文件上运行它?

在我所有的纹理上运行它真的很麻烦。

0 投票
3 回答
5948 浏览

iphone - 如何将 .pvr (PVRTC) 文件转换为 .png?

我是一名 iPhone 开发人员,我有一些 PVRTC 文件,但丢失了原始来源。现在,我正试图将它带到网络上,我想将它们转换成 PNG。

我怎么做?我试过 PVRTexTool,但无法找出正确的控件。

0 投票
1 回答
830 浏览

macos - osx 上的 pvrtc 压缩

我正在 MAC OSX 10.6.x 上开发 OpenGL 应用程序。我想使用 PVRTC 在 OpenGL 应用程序中压缩原始像素数据。是否有适用于 OSX 的 PVRTC 库可以帮助我?

提前感谢任何指示和感谢。