查看: 2953|回复: 2

OSGEARTH对显卡的要求

[复制链接]

该用户从未签到

发表于 2012-4-28 15:07:11 | 显示全部楼层 |阅读模式
以下是我用glewinfo.exe读出的两台电脑的显卡及其支持的最高版本opengl信息。

环境一(OS:WINXP):
Reporting capabilities of pixelformat 1
Running on a NVS 4200M/PCI/SSE2 from NVIDIA Corporation
OpenGL version 4.1.0 is supported
环境二(OS:WINXP):
Reporting capabilities of pixelformat 3
Running on a Intel(R) HD Graphics Family from Intel
OpenGL version 3.0.0 - Build 6.14.10.5394 is supported

我在"环境一"的电脑上运行osgearth,没有任何问题,在第二台机器("环境二")上运行时,启动后会占用610M的内存,然后卡死。
我在earth文件中用到了overlay模块来叠加矢量数据,如果将overlay模块去掉,则不会出现卡死的情况,应该是overlay模块里用到的RTT有一些问题,请问如何修正此问题?
继续跟踪,发现在OverlayDecorator.cpp文件中,OverlayDecorator::initializePerViewData( PerViewData& pvd ),在 initSubgraphShaders( pvd ); initRTTShaders( pvd ); 两个函数中,用到了着色器(osg::Shader)语言来进行着色,如果将两个函数注释掉,则不会osgearth不会再卡死,同时也看不到矢量数据。
以下是我的earth文件:

<map name="Virtual Planet Builder model" type="geocentric" version="2">
        <image name="imagery" driver="vpb" type = "1" >
        <url>e:\data\xxx.ive</url>
        <primary_split_level>30</primary_split_level>
        <secondary_split_level>31</secondary_split_level>
                        <options>
        <lighting>false</lighting>
        <profile name=”myProfile”>
        <srs>epsg:4326</srs>
        </profile>
        </options>
    </image>
   
        <overlay name="world" driver="feature_geom"  >
   
        <features name="world" driver="ogr">
            <url>e:\data\w11_region.shp</url>
                <ogr_driver>ESRI Shapefile</ogr_driver>
                <profile name="myProfile">
                <srs>epsg:4326</srs>
                </profile>
        </features>
               
        <geometry_type>line</geometry_type>
               
        <styles>
            <style type="text/css">
                world {
                   stroke: #ffff00;
                   stroke-opacity: 1.0;
                   stroke-width: 3.0;
                }            
            </style>
        </styles>
        
    </overlay>
       
</map>

该用户从未签到

发表于 2012-5-11 09:08:47 | 显示全部楼层

显卡性能差一些自然会慢很多,osgEarth的矢量渲染没有进行优化,性能问题非常严重,等待一会就好了~~~~~~~~

该用户从未签到

发表于 2012-5-11 09:14:43 | 显示全部楼层

OVERLAY叠加矢量本身就是用着色器来实现的,你注释了就啥都没有了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表