短线是银1一8集pdf博差价操作是怎样的

图形学(14)
DDS是DirectDrawSurface的缩写,它是DirectX纹理压缩(DirectX TextureCompression,简称DXTC)的产物。
DXTC减少了纹理内存消耗的50%甚至更多,有3种DXTC的格式可供使用,分别是DXT1,DXT3和DXT5。
DXT1 压缩比例:1:8
压缩比最高,它只有1BitAlpha,Alpha通道信息几乎完全丧失。一般将不带Alpha通道的图片压缩成这种格式。如WorldWind用的卫星图片
DXT3 压缩比例:1:4
使用了4BitAlpha,可以有16个Alpha值,可很好地用于alpha通道锐利、对比强烈的半透和镂空材质。
DXT5 压缩比例:1:4
使用了线形插值的4BitAlpha,特别适合Alpha通道柔和的材质,比如高光掩码材质。
dds格式分为2个部分:
2、dxt压缩数据
dds的头文件信息如下:
typedef struct _DDCOLORKEY
&&&&uint32&&&&&&dwColorSpaceL&&&// lowboundary of color space that is to
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//be treated as Color
Key, inclusive
&&&&uint32&&&&&&dwColorSpaceH&&// highboundary of color space that is
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//to be treated as
Color Key, inclusive
} DDCOLORKEY;
typedef struct _DDSCAPS2
&&&&uint32&&&&&&dwC&&&&&&&&// capabilities of surface wanted
&&&&uint32&&&&&&dwCaps2;
&&&&uint32&&&&&&dwCaps3;
&&&&&&&&uint32&&&&&&dwCaps4;
&&&&&&&&uint32&&&&&&dwVolumeD
&&&&}DUMMYUNIONNAMEN(1);
} DDSCAPS2;
typedef struct _DDPIXELFORMAT
&&&&uint32&&&&&&dwS&&&&&&&&&&&&&&&&// size of structure
&&&&uint32&&&&&&dwF&&&&&&&&&&&&&&&&//pixel format flags
&&&&uint32&&&&&&dwFourCC;&&&&&&&&&&&&&&// (FOURCC code)
&&&&&&&&uint32&&dwRGBBitC&&&&&&&&&&//how many bits per pixel
&&&&&&&&uint32&&dwYUVBitC&&&&&&&&&&//how many bits per pixel
&&&&&&&&uint32&&dwZBufferBitD&&&&&&//how many total bits/pixel in z buffer (including any stencilbits)
&&&&&&&&uint32&&dwAlphaBitD&&&&&&&&//how many bits for alpha channels
&&&&&&&&uint32&&dwLuminanceBitC&&&&//how many bits per pixel
&&&&&&&&uint32&&dwBumpBitC&&&&&&&&// how many bits per &buxel&, total
&&&&&&&&uint32&&dwPrivateFormatBitC// Bits per pixel of private driverformats. Only valid in texture
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//format list and
if DDPF_D3DFORMAT is set
&&&&}DUMMYUNIONNAMEN(1);
&&&&&&&&uint32&&dwRBitM&&&&&&&&&&&&// mask for red bit
&&&&&&&&uint32&&dwYBitM&&&&&&&&&&&&// mask for Y bits
&&&&&&&&uint32&&dwStencilBitD&&&&&&//how many stencil bits (note: dwZBufferBitDepth-dwStencilBitDepth istotal Z-only bits)
&&&&&&&&uint32&&dwLuminanceBitM&&&&// mask for luminance bits
&&&&&&&&uint32&&dwBumpDuBitM&&&&&&&&//mask for bump map U delta bits
&&&&&&&&uint32&&dwO&&&&&&&&&&// DDPF_D3DFORMAT Operations
&&&&}DUMMYUNIONNAMEN(2);
&&&&&&&&uint32&&dwGBitM&&&&&&&&&&&&// mask for green bits
&&&&&&&&uint32&&dwUBitM&&&&&&&&&&&&// mask for U bits
&&&&&&&&uint32&&dwZBitM&&&&&&&&&&&&// mask for Z bits
&&&&&&&&uint32&&dwBumpDvBitM&&&&&&&&//mask for bump map V delta bits
&&&&&&&&struct
&&&&&&&&&&&&uint16&&&&wFlipMST&&&&&&// Multisample methods supported via flip for this D3DFORMAT
&&&&&&&&&&&&uint16&&&&wBltMST&&&&&&&&//Multisample methods supported via blt for this D3DFORMAT
&&&&&&&&}MultiSampleC
&&&&}DUMMYUNIONNAMEN(3);
&&&&&&&&uint32&&dwBBitM&&&&&&&&&&&&// mask for blue bits
&&&&&&&&uint32&&dwVBitM&&&&&&&&&&&&// mask for V bits
&&&&&&&&uint32&&dwStencilBitM&&&&&&// mask for stencil bits
&&&&&&&&uint32&&dwBumpLuminanceBitM // mask for luminance in bump map
&&&&}DUMMYUNIONNAMEN(4);
&&&&&&&&uint32&&dwRGBAlphaBitM&&&&&&//mask for alpha channel
&&&&&&&&uint32&&dwYUVAlphaBitM&&&&&&//mask for alpha channel
&&&&&&&&uint32&&dwLuminanceAlphaBitM// mask for alpha channel
&&&&&&&&uint32&&dwRGBZBitM&&&&&&&&&&//mask for Z channel
&&&&&&&&uint32&&dwYUVZBitM&&&&&&&&&&//mask for Z channel
&&&&}DUMMYUNIONNAMEN(5);
} DDPIXELFORMAT;
typedef struct _DDSURFACEDESC2
&&&&uint32&&&&&&&&&&&&&&dwS&&&&&&&&&&&&&&&&// size of the DDSURFACEDESC structure
&&&&uint32&&&&&&&&&&&&&&dwF&&&&&&&&&&&&&&&&//determines what fields are valid
&&&&uint32&&&&&&&&&&&&&&dwH&&&&&&&&&&&&&&// height of surface to be created
&&&&uint32&&&&&&&&&&&&&&dwW&&&&&&&&&&&&&&&&//width of input surface
&&&&&&&&int32&&&&&&&&&&&&lP&&&&&&&&&&&&&&&&// distance to start of next
line (return value only)
&&&&&&&&uint32&&&&&&&&&&dwLinearS&&&&&&&&&&// Formless late-allocated optimized surface size
&&&&}DUMMYUNIONNAMEN(1);
&&&&&&&&uint32&&&&&&&&&&dwBackBufferC&&&&&&//number of back buffers requested
&&&&&&&&uint32&&&&&&&&&&dwD&&&&&&&&&&&&&&&&//the depth if this is a volume texture
&&&&}DUMMYUNIONNAMEN(5);
&&&&&&&&uint32&&&&&&&&&&dwMipMapC&&&&&&&&&&//number of mip-map levels requestde
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//dwZBufferBitDepth
removed, use ddpfPixelFormat one instead
&&&&&&&&uint32&&&&&&&&&&dwRefreshR&&&&&&&&&&//refresh rate (used when display mode is described)
&&&&&&&&uint32&&&&&&&&&&dwSrcVBH&&&&&&&&&&//The source used in VB::Optimize
&&&&}DUMMYUNIONNAMEN(2);
&&&&uint32&&&&&&&&&&&&&&dwAlphaBitD&&&&&&&&//depth of alpha buffer requested
&&&&uint32&&&&&&&&&&&&&&dwR&&&&&&&&&&&&// reserved
&&&&void*&&&&&&&&&&&&&&lpS&&&&&&&&&&&&&&//pointer to the associated surface memory
&&&&&&&&DDCOLORKEY&&&&&&ddckCKDestO&&&&&&//color key for destination overlay use
&&&&&&&&uint32&&&&&&&&&&dwEmptyFaceC&&&&&&// Physical color for empty cubemap faces
&&&&}DUMMYUNIONNAMEN(3);
&&&&DDCOLORKEY&&&&&&&&&&ddckCKDestB&&&&&&&&&&//color key for destination blt use
&&&&DDCOLORKEY&&&&&&&&&&ddckCKSrcO&&&&&&// color key for source overlay use
&&&&DDCOLORKEY&&&&&&&&&&ddckCKSrcB&&&&&&&&&&// color key for source blt use
&&&&&&&&DDPIXELFORMAT&&ddpfPixelF&&&&&&&&//pixel format description of the surface
&&&&&&&&uint32&&&&&&&&&&dwFVF;&&&&&&&&&&&&&&&&&&//vertex format description of
vertex buffers
&&&&}DUMMYUNIONNAMEN(4);
&&&&DDSCAPS2&&&&&&&&&&&&ddsC&&&&&&&&&&&&&&&&//direct draw surface capabilities
&&&&uint32&&&&&&&&&&&&&&dwTextureS&&&&&&&&// stage in multitexture cascade
} DDSURFACEDESC2;
struct DDS_IMAGE_DATA
&&&&int&&&&
&&&&unsignedint&&&
&&&&int&&&&&&numMipM
&&&&unsignedchar *//这个是压缩的图像信息文件,glCompressedTexImage2DARB就是加载这个。
上文来自:http://blog.csdn.net/tiandyoin/article/details/
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:558398次
积分:11041
积分:11041
排名:第1111名
原创:325篇
转载:1519篇
评论:14条
(10)(8)(13)(34)(21)(39)(29)(55)(85)(145)(124)(126)(85)(60)(61)(115)(100)(139)(48)(41)(116)(86)(126)(125)(51)(13)(14)3216人阅读
DDS是DirectDrawSurface的缩写,它是DirectX纹理压缩(DirectX TextureCompression,简称DXTC)的产物。
DXTC减少了纹理内存消耗的50%甚至更多,有3种DXTC的格式可供使用,分别是DXT1,DXT3和DXT5。
DXT1 压缩比例:1:8
压缩比最高,它只有1BitAlpha,Alpha通道信息几乎完全丧失。一般将不带Alpha通道的图片压缩成这种格式。如WorldWind用的卫星图片
DXT3 压缩比例:1:4
使用了4BitAlpha,可以有16个Alpha值,可很好地用于alpha通道锐利、对比强烈的半透和镂空材质。
DXT5 压缩比例:1:4
使用了线形插值的4BitAlpha,特别适合Alpha通道柔和的材质,比如高光掩码材质。
dds格式分为2个部分:
2、dxt压缩数据
dds的头文件信息如下:
typedef struct _DDCOLORKEY
&&&&uint32&&&&&&dwColorSpaceL&& // lowboundary of color space that is to
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//be treated as Color
Key, inclusive
&&&&uint32&&&&&&dwColorSpaceH&&// highboundary of color space that is
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//to be treated as
Color Key, inclusive
} DDCOLORKEY;
typedef struct _DDSCAPS2
&&&&uint32&&&&&&dwC&&&&&&&&// capabilities of surface wanted
&&&&uint32&&&&&&dwCaps2;
&&&&uint32&&&&&&dwCaps3;
&&&&&&&&uint32&&&&&&dwCaps4;
&&&&&&&&uint32&&&&&&dwVolumeD
&&&&}DUMMYUNIONNAMEN(1);
} DDSCAPS2;
typedef struct _DDPIXELFORMAT
&&&&uint32&&&&&&dwS&&&&&&&&&&&&&&&&// size of structure
&&&&uint32&&&&&&dwF&&&&&&&&&&&&&&&&//pixel format flags
&&&&uint32&&&&&&dwFourCC;&&&&&&&&&&&&&&// (FOURCC code)
&&&&&&&&uint32&&dwRGBBitC&&&&&&&&&&//how many bits per pixel
&&&&&&&&uint32&&dwYUVBitC&&&&&&&&&&//how many bits per pixel
&&&&&&&&uint32&&dwZBufferBitD&&&&&&//how many total bits/pixel in z buffer (including any stencilbits)
&&&&&&&&uint32&&dwAlphaBitD&&&&&&&&//how many bits for alpha channels
&&&&&&&&uint32&&dwLuminanceBitC&&&&//how many bits per pixel
&&&&&&&&uint32&&dwBumpBitC&&&&&&&&// how many bits per &buxel&, total
&&&&&&&&uint32&&dwPrivateFormatBitC// Bits per pixel of private driverformats. Only valid in texture
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//format list and
if DDPF_D3DFORMAT is set
&&&&}DUMMYUNIONNAMEN(1);
&&&&&&&&uint32&&dwRBitM&&&&&&&&&&&&// mask for red bit
&&&&&&&&uint32&&dwYBitM&&&&&&&&&&&&// mask for Y bits
&&&&&&&&uint32&&dwStencilBitD&&&&&&//how many stencil bits (note: dwZBufferBitDepth-dwStencilBitDepth istotal Z-only bits)
&&&&&&&&uint32&&dwLuminanceBitM&&&&// mask for luminance bits
&&&&&&&&uint32&&dwBumpDuBitM&&&&&&&&//mask for bump map U delta bits
&&&&&&&&uint32&&dwO&&&&&&&&&&// DDPF_D3DFORMAT Operations
&&&&}DUMMYUNIONNAMEN(2);
&&&&&&&&uint32&&dwGBitM&&&&&&&&&&&&// mask for green bits
&&&&&&&&uint32&&dwUBitM&&&&&&&&&&&&// mask for U bits
&&&&&&&&uint32&&dwZBitM&&&&&&&&&&&&// mask for Z bits
&&&&&&&&uint32&&dwBumpDvBitM&&&&&&&&//mask for bump map V delta bits
&&&&&&&&struct
&&&&&&&&&&&&uint16&&&&wFlipMST&&&&&&// Multisample methods supported via flip for this D3DFORMAT
&&&&&&&&&&&&uint16&&&&wBltMST&&&&&&&&//Multisample methods supported via blt for this D3DFORMAT
&&&&&&&&}MultiSampleC
&&&&}DUMMYUNIONNAMEN(3);
&&&&&&&&uint32&&dwBBitM&&&&&&&&&&&&// mask for blue bits
&&&&&&&&uint32&&dwVBitM&&&&&&&&&&&&// mask for V bits
&&&&&&&&uint32&&dwStencilBitM&&&&&&// mask for stencil bits
&&&&&&&&uint32&&dwBumpLuminanceBitM // mask for luminance in bump map
&&&&}DUMMYUNIONNAMEN(4);
&&&&&&&&uint32&&dwRGBAlphaBitM&&&&&&//mask for alpha channel
&&&&&&&&uint32&&dwYUVAlphaBitM&&&&&&//mask for alpha channel
&&&&&&&&uint32&&dwLuminanceAlphaBitM// mask for alpha channel
&&&&&&&&uint32&&dwRGBZBitM&&&&&&&&&&//mask for Z channel
&&&&&&&&uint32&&dwYUVZBitM&&&&&&&&&&//mask for Z channel
&&&&}DUMMYUNIONNAMEN(5);
} DDPIXELFORMAT;
typedef struct _DDSURFACEDESC2
&&&&uint32&&&&&&&&&&&&&&dwS&&&&&&&&&&&&&&&&// size of the DDSURFACEDESC structure
&&&&uint32&&&&&&&&&&&&&&dwF&&&&&&&&&&&&&&&&//determines what fields are valid
&&&&uint32&&&&&&&&&&&&&&dwH&&&&&&&&&&&&&&// height of surface to be created
&&&&uint32&&&&&&&&&&&&&&dwW&&&&&&&&&&&&&&&&//width of input surface
&&&&&&&&int32&&&&&&&&&&&&lP&&&&&&&&&&&&&&&&// distance to start of next
line (return value only)
&&&&&&&&uint32&&&&&&&&&&dwLinearS&&&&&&&&&&// Formless late-allocated optimized surface size
&&&&}DUMMYUNIONNAMEN(1);
&&&&&&&&uint32&&&&&&&&&&dwBackBufferC&&&&&&//number of back buffers requested
&&&&&&&&uint32&&&&&&&&&&dwD&&&&&&&&&&&&&&&&//the depth if this is a volume texture
&&&&}DUMMYUNIONNAMEN(5);
&&&&&&&&uint32&&&&&&&&&&dwMipMapC&&&&&&&&&&//number of mip-map levels requestde
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//dwZBufferBitDepth
removed, use ddpfPixelFormat one instead
&&&&&&&&uint32&&&&&&&&&&dwRefreshR&&&&&&&&&&//refresh rate (used when display mode is described)
&&&&&&&&uint32&&&&&&&&&&dwSrcVBH&&&&&&&&&&//The source used in VB::Optimize
&&&&}DUMMYUNIONNAMEN(2);
&&&&uint32&&&&&&&&&&&&&&dwAlphaBitD&&&&&&&&//depth of alpha buffer requested
&&&&uint32&&&&&&&&&&&&&&dwR&&&&&&&&&&&&// reserved
&&&&void*&&&&&&&&&&&&&&lpS&&&&&&&&&&&&&&//pointer to the associated surface memory
&&&&&&&&DDCOLORKEY&&&&&&ddckCKDestO&&&&&&//color key for destination overlay use
&&&&&&&&uint32&&&&&&&&&&dwEmptyFaceC&&&&&&// Physical color for empty cubemap faces
&&&&}DUMMYUNIONNAMEN(3);
&&&&DDCOLORKEY&&&&&&&&&&ddckCKDestB&&&&&&&&&&//color key for destination blt use
&&&&DDCOLORKEY&&&&&&&&&&ddckCKSrcO&&&&&&// color key for source overlay use
&&&&DDCOLORKEY&&&&&&&&&&ddckCKSrcB&&&&&&&&&&// color key for source blt use
&&&&&&&&DDPIXELFORMAT&&ddpfPixelF&&&&&&&&//pixel format description of the surface
&&&&&&&&uint32&&&&&&&&&&dwFVF;&&&&&&&&&&&&&&&&&&//vertex format description of
vertex buffers
&&&&}DUMMYUNIONNAMEN(4);
&&&&DDSCAPS2&&&&&&&&&&&&ddsC&&&&&&&&&&&&&&&&//direct draw surface capabilities
&&&&uint32&&&&&&&&&&&&&&dwTextureS&&&&&&&&// stage in multitexture cascade
} DDSURFACEDESC2;
struct DDS_IMAGE_DATA
&&&&int&&&&
&&&&unsignedint&&
&&&&int&&&&&&numMipM
&&&&unsignedchar *//这个是压缩的图像信息文件,glCompressedTexImage2DARB就是加载这个。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:176262次
积分:1979
积分:1979
排名:第16353名
原创:35篇
转载:56篇
评论:24条
(1)(3)(2)(5)(5)(1)(3)(3)(12)(7)(8)(2)(19)(1)(1)(2)(6)(4)(3)(2)(1)(2)dds格式文件图片查看器下载
您当前的位置: →
软件简介:dds格式文件图片查看器支持windows9x/nt/2000/xp/vista操作系统。能够打开查看dds格式的文件。另外还支持以下格式:DCR/DNG/EFF/MRW/NEF/ORF/PEF/RAF/SRF/X3F&-&Digital&Camera&RAW&FormatDCM/ACR/IMA&-&DICOM/ACR/IMA&FormatDJVU/IW44&-&DjVu&FormatDWG/DXF/HPGL/CGM/SVG&-&CAD&FilesECW&-&Enhanced&Compressed&WaveletEPS/PS/PDF&-&PostScript&FilesICS/IDS&-&Image&Cytometry&Standard&FormatIFF/LBM&-&Amiga&Interchange&File&Format..........
本站资源无需注册均免费下载!本站软件在上传时,均已经过卡巴斯基和麦咖啡双重检测!为了安全,请你下载后在第一时间进行杀毒!
有些破解类软件和注册机会被认为是病毒,这点请自行衡量!
软件大小:9.00 MB
下载次数:5898
解压密码:
如果不能下载请,谢谢!
软件按字母搜索:
中文按声母搜索:君,已阅读到文档的结尾了呢~~
编辑DDS教程 挺详细的
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
编辑DDS教程
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口您当前的位置: →
常用工具栏
Photoshop的DDS文件查看插件_NVIDIA DDS 8.23汉化绿色版
====== [下面软件真实下载地址列表] ======
[版权原因部分软件停止下载] ======
NVIDIA为Photoshop开发的DDS插件,可以用Photoshop打开和保存DDS贴图文件。
本站提供Photoshop的DDS文件查看插件_NVIDIA DDS 8.23汉化绿色版软件免费下载,版权归原作者或公司所有。如有侵权,请与我们联系删除。
* 本站提供的软件我们都会尽可能测试再上传,都亲自运行过,同时通过卡巴斯基杀毒软件的验证,限于能力及系统等问题,无法保证所有软件都没有任何问题,如果您发现链接错误或其它问题,发email到zarong◎告诉我们,谢谢!
* 为了达到最快的下载速度,推荐使用或下载本站软件。为确保正常使用请用最新版来解压本站提供的软件!
* 为了网站可以继续发展下去,在不太影响大家的情况下还请给予点击站内广告。本站所有下载无需点击任何广告即可正常下载,由于部分是FTP下载,限制了同时连接数,因此还请使用下载工具尝试多一会连接时间。如果您发现下载链接错误,请点击谢谢!
* 站内提供的所有软件如包含破解及注册码均是由网上搜集,若无意中侵犯到您的版权利益,通知我们,我们会在收到信息一周内给予配合处理!
* 本站为非营利性站点,所有资源均是网上搜集或私下交流学习之用,任何涉及商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!本站仅仅提供一个观摩学习的环境,将不对任何资源负法律责任。所有资源请在下载后24小时内删除。如果您觉得满意,请购买正版,唯有如此才能更好支持你所喜欢的软件更好发展!本站严厉谴责和鄙夷一切利用本站资源进行牟利的盗版行为!

我要回帖

更多关于 唐能通短线是银1一8集 的文章

 

随机推荐