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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
博客园 - Franky
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
H
Help Net Security
B
Blog
宝玉的分享
宝玉的分享

博客园 - 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.Hei...
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";
        }