惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
Cyberwarzone
Cyberwarzone
D
Docker
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Vercel News
Vercel News
Project Zero
Project Zero
S
Schneier on Security
aimingoo的专栏
aimingoo的专栏
I
Intezer
腾讯CDC
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Vulnerabilities – Threatpost
G
Google Developers Blog
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
Arctic Wolf
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
Recent Announcements
Recent Announcements
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Threatpost
Latest news
Latest news
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
The GitHub Blog
The GitHub Blog
T
Tor Project blog
P
Proofpoint News Feed

博客园 - DotNet编程

统计文件夹内所有文件信息的小程序 SQL格式化插件—SQL Pretty Printer Win7版IE10浏览器正式版官方下载地址 ODP.NET 开发 出现 ORA-12154: TNS:could not resolve the connect identifier specified 错误 MEF开发资源 Windows Store 应用程序开发示例资源 [转]李彦宏:给青年创业者提出了七条宝贵建议 DWG TrueView 2010 下载地址 [转]亿万富豪给应届毕业生的10条忠告 常用的数学函数说明 Windows 8 Release Preview下载地址 [转]xna 3.1 to xna 4.0 xna开发资源收集 office 2010 激活信息查看 [转]DEM数据和影像数据下载汇总 打工是最愚蠢的投资——李嘉诚在深圳大梅沙演讲 常用书籍推荐与下载地址 office 2010系列产品重输密钥的方法 禁用Windows7脱机文件的方法
解决:Cannot find ContentTypeReader HeightmapCollision.HeightMapInfoReader
DotNet编程 · 2012-04-21 · via 博客园 - DotNet编程

在调试 hightmap图生成 3d地形,在调用

  terrain = Content.Load<Model>("terrain");语句时出现以下错误提示:

原因:

需要更改 HeightMapInfoContent.cs 文件中的以下方法中的 HeightMapInfo类和HeightMapInfoReader类的命名空间,改成你实际的命名空间名称,该命名空间名称应与你项目命名空间名称一致:

(注:上面说的两个类在HeightMapInfo.cs文件中。)

      

public override string GetRuntimeType(TargetPlatform targetPlatform)
        {
          ...

        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {

         ...

        }

如下图所示:

 本例修改结果如下所示:

/// <summary>
        
/// Tells the content pipeline what CLR type the
        
/// data will be loaded into at runtime.
        
/// </summary>
        public override string GetRuntimeType(TargetPlatform targetPlatform)
        {
            return "hightmapTerrain.HeightMapInfo, " +
                "hightmapTerrain, Version=1.0.0.0, Culture=neutral";
        }

        /// <summary>
        
/// Tells the content pipeline what worker type
        
/// will be used to load the data.
        
/// </summary>
        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            return "hightmapTerrain.HeightMapInfoReader, " +
                "hightmapTerrain, Version=1.0.0.0, Culture=neutral";
        }