游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2944|回复: 9

关于游戏资源使用JPEG,,请教

[复制链接]

1

主题

24

帖子

24

积分

注册会员

Rank: 2

积分
24
发表于 2005-9-1 17:05:00 | 显示全部楼层 |阅读模式
不知道效率怎样,和BMP相比,到底损失多少效率? [em24]

13

主题

101

帖子

101

积分

注册会员

Rank: 2

积分
101
发表于 2005-9-1 17:13:00 | 显示全部楼层

Re:关于游戏资源使用JPEG,,请教

你把一个bmp另存为jpg,就知道了,应该比较大

18

主题

279

帖子

279

积分

中级会员

Rank: 3Rank: 3

积分
279
QQ
发表于 2005-9-1 18:51:00 | 显示全部楼层

Re: 关于游戏资源使用JPEG,,请教

冒昧问一句[em1]
损失效率?指什么方面?
听说过JPEG难做透明纹理的(没法设ColorKey),还会影响效率吗?

4

主题

65

帖子

65

积分

注册会员

Rank: 2

积分
65
QQ
发表于 2005-9-1 19:48:00 | 显示全部楼层

Re: Re: 关于游戏资源使用JPEG,,请教

bombbear: Re: 关于游戏资源使用JPEG,,请教

冒昧问一句[em1]
损失效率?指什么方面?
听说过JPEG难做透明纹理的(没法设ColorKey),还会影响效率吗?

jpeg使用的为有损压缩算法
.JPEG
JPEG stands for the Joint Photographic Experts Group. It is referred as a “joint”
group because this committee is sanctioned by the CCITT and the ISO, two
prominent international standards groups. JPEG refers both to the committee and
their work—a compression standard that defines a method for compressing
photographic images. Images compressed with the JPEG algorithm undergo a
“lossy” compression. The amount of compression can be varied, with a resulting
loss or gain in resolution. Most of the JPEG-like algorithms in use today rely on
powerful dedicated processors to perform compression and decompression.
Software-only techniques on general purpose desktop processors are still fairly
slow. JPEG compression can achieve impressive compression ratios, reducing the
storage required by images to less than 10% of the size of the original with only
very slight loss of resolution. By sacrificing more resolution, you can compress
images to 95% or more using JPEG.
呵呵 昨天刚刚浏览了一本有关压缩的书. [em13] [em13]

132

主题

1341

帖子

1341

积分

金牌会员

Rank: 6Rank: 6

积分
1341
发表于 2005-9-1 20:23:00 | 显示全部楼层

Re:关于游戏资源使用JPEG,,请教

压缩当然是有损的,......
有的bmp还能保存Alpha通道,用jpeg是用质量换空间,用bmp是用空间换质量

4

主题

65

帖子

65

积分

注册会员

Rank: 2

积分
65
QQ
发表于 2005-9-2 09:01:00 | 显示全部楼层

Re: Re:关于游戏资源使用JPEG,,请教

hdm2968: Re:关于游戏资源使用JPEG,,请教

压缩当然是有损的,......
有的bmp还能保存Alpha通道,用jpeg是用质量换空间,用bmp是用空间换质量

压缩分为有损和无损两种.不是所有的都为有损的.
保存alpha用tga好了. [em2]

15

主题

1268

帖子

1268

积分

金牌会员

Rank: 6Rank: 6

积分
1268
发表于 2005-9-2 10:30:00 | 显示全部楼层

Re:关于游戏资源使用JPEG,,请教

用DDS内嵌DXT系列,最小的4位每单元,最大8位每单元

18

主题

279

帖子

279

积分

中级会员

Rank: 3Rank: 3

积分
279
QQ
发表于 2005-9-2 10:42:00 | 显示全部楼层

Re:关于游戏资源使用JPEG,,请教

可上面说的与[B]效率[/B]有什么关系呢?
我想楼主可能是想说[B]影响效果[/B]。

有几点需要说明:
1、使用的图象类型有关[B]效率[/B]的方面是读取与转换。
BMP不需转换,但体积庞大,读取费时;JPEG转换费时,但相比BMP读取要快速的多。
考虑到内存<->硬盘,内存<->CPU之间的工作速度差距,选择小的文件体积将更有效率。
2、
JPEG使用的为有损压缩算法

这是JPEG[B]以前的[/B]定义了,按照JPEG2000标准,JPEG2000可以支持无损和有损两种压缩方式,至少支持灰度、真彩色、带ALPHA通道三个类型的图象。

15

主题

1268

帖子

1268

积分

金牌会员

Rank: 6Rank: 6

积分
1268
发表于 2005-9-2 11:39:00 | 显示全部楼层

Re:关于游戏资源使用JPEG,,请教

BMP,最近发现很多游戏用

18

主题

279

帖子

279

积分

中级会员

Rank: 3Rank: 3

积分
279
QQ
发表于 2005-9-5 14:42:00 | 显示全部楼层

Re: 关于游戏资源使用JPEG,,请教

找到一个好东西:ECW JPEG2000 SDK
对于GPL使用者免费!
对于使用[B]500M以下[/B]的[B]商业和非商业[/B]使用者免费!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-27 16:56

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表