OSG:先导篇 数据加载
列举一些OSG支持的模型类型
Plugin name |
Description |
Extensions |
Read |
Write |
Notes |
3dc |
3DC point cloud reader |
.3dc .asc |
yes |
no |
|
3ds |
3D Studio |
.3ds |
yes |
yes |
|
ac3d |
AC3D modeler |
.ac |
yes |
yes |
|
bsp |
Quake3 BSP |
.bsp |
yes |
no |
|
dae |
COLLADA 1.4.x |
.dae |
yes |
yes |
Requires Collada DOM library. See Collada plugin details |
dw |
Design Workshop Database |
.dw |
yes |
no |
|
dxf |
Autodesk DXF Reader |
.dxf |
yes |
no |
|
fbx |
Autodesk FBX |
.fbx |
yes |
yes |
Requires Autodesk's FBX SDK. If using OpenSceneGraph 2.8.x you'll need version 2010.2 of the SDK. Otherwise checkReaderWriterFBX.h to see which version of the SDK is required (currently 2012.1). If you have problems loading an FBX model please check that it works in Autodesk's FBX QuickTime Viewer first to see if the model was correctly exported. |
geo |
Geo |
.gem .geo |
yes |
no |
|
Inventor |
Open Inventor format |
.iv .wrl |
yes |
yes |
.wrl Only VRML1.0 |
ive |
Native osg binary |
.ive |
yes |
yes |
May also read/write (internal) images |
logo |
Logo database |
.logo |
yes |
no |
|
lwo |
Lightwave Object |
.lwo .lw .geo |
yes |
no |
|
lws |
Lightwave Scene |
.lws |
yes |
no |
|
md2 |
Quake MD2 |
.md2 |
yes |
no |
|
obj |
Alias Wavefront |
.obj |
yes |
yes |
Also writes materials to .mtl |
ogr |
.ogr |
yes |
no |
||
Openflight |
Multigen Openflight |
.flt |
yes |
yes |
See OpenFlight plugin details |
osg |
Native osg ascii |
.osg |
yes |
yes |
Currently the writer supports OVERRIDE/PROTECTED flags in "StateSets" only for "Modes" and not for "StateAttributes". |
pfb |
Performer loader |
All extensions supported by Performer loaders |
yes |
no |
Requires Performer library |
shp |
ESRI Shapefile |
.shp |
yes |
no |
|
stl |
Stereolithography file |
.stl .sta |
yes |
no |
|
vrml |
VRML2 |
.wrl |
yes |
no |
Requires OpenVRML library |
x |
DirectX 3D model |
.x |
yes |
no |
图片和视频
Plugin name |
Description |
Extensions |
Read |
Write |
Notes |
bmp |
Window bitmap |
.bmp |
yes |
yes |
|
dds |
DirectX image format |
.dds |
yes |
yes |
|
gdal |
GDAL image loaders |
All extensions supported by GDAL |
yes |
no |
|
gif |
GIF Image |
.gif |
yes |
no |
|
hdr |
High Dynamic Range image |
.hdr |
yes |
yes |
|
jp2 |
.jps .jpc |
yes |
yes |
||
jpeg |
Jpeg image |
.jpeg .jpg |
yes |
yes |
|
Openflight |
Image attribute files |
.attr |
yes |
yes |
Stores additional attributes that are not stored in .rgb files |
pic |
PIC image |
.pic |
yes |
no |
|
png |
Portable Network Graphics |
.png |
yes |
yes |
|
pnm |
.pnm. ppm .pgm .pbm |
yes |
yes |
||
rgb |
.rgb .sgi .rgba .int .inta .bw |
yes |
yes |
||
tga |
Targa image |
.tga |
yes |
no |
|
tiff |
Tiff image |
.tiff .tif |
yes |
yes |
|
quicktime |
Quicktime movie loader |
.mov .mpg .mpv .mp4 .m4v .dc .avi .flv .swf |
yes |
yes |
|
Quicktime image loader |
rgb. rgba .jpg .jpeg .tif .tiff .gif .png .pict .pct .tga .psd |
yes |
yes |
||
xine |
Xine image stream |
.mpg .mpv .db .flv .mov .avi .wmv. xine |
yes |
no |
压缩以及网络传输类型
Plugin name |
Description |
Extensions |
Read |
Write |
Notes |
curl |
HTTP Protocol Model |
.curl |
yes |
no |
|
osga |
|||||
txp |
Terrapage file |
.txp |
yes |
no |
Produced by Terra Vista terrain building tools |
net |
|||||
zip |
|||||
tgz |
|||||
osgtgz |
字体类型
Plugin name |
Description |
Extensions |
Read |
Write |
Notes |
freetype |
Freetype font loader |
.ttf .ttc .pfb .pfa .cid .cff .cef .fon .fnt |
yes |
no |
|
txf |
GLU texture font |
.txf |
yes |
no |
加载时可以显式加的矩阵操作
Plugin name |
Description |
Extensions |
Read |
Write |
Notes |
rot |
Rotates to the loaded model |
.rot |
|||
scale |
Scales the loaded model |
.scale |
|||
trans |
Translates the loaded model |
.trans |
|||
normals |
Shows normals of the loaded model |
.normals |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)