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

推荐订阅源

F
Fortinet All Blogs
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
B
Blog RSS Feed
WordPress大学
WordPress大学
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
I
InfoQ
MyScale Blog
MyScale Blog
量子位
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
J
Java Code Geeks
L
LangChain Blog
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志

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