JCHub

  • Home
  • Category
    • A/V
    • WebRTC
    • Beauty of Programming
    • Linux
    • Windows
    • Moments of Life
    • Campus Life
  • Reference
    • API Reference
    • Utilities
    • AV Test
    • Doc
  • Message Board
  • About
JCHub
Code as My Sword, Lost in Obsession
  1. Main page
  2. Beauty of Programming
  3. Main content

Ogre学习笔记(3)

2014年3月15日 1484hotness 0likes 0comments

最近在creatScene方法中一直实现不了天空,编写了天空代码,可是看过去天还是黑色的,也就是背景颜色,设置了好多种天空类型都是一样结果,最后从谷歌搜索到的某个论坛中看到了解决方法,是我的clipdistance没设置正确,原来为

1
2
m_pCamera->setNearClipDistance(0.1);
m_pCamera->setFarClipDistance(100);

后来改为

1
2
m_pCamera->setNearClipDistance(0.1);
m_pCamera->setFarClipDistance(100000);

就正常了,这是因为天空太高,相机的FarClipDistance得设置的远一些,这样才能看到天空。

This article is licensed with Creative Commons Attribution-NonCommercial-No Derivatives 4.0 International License
Tag: OGRE
Last updated:2014年3月15日

Jeff

管理员——代码为剑,如痴如醉

Tip the author Like
< Last article
Next article >

Comments

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
Cancel

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts
  • Ogre中阴影设置问题
  • Ogre中的场景文件
  • Ogre中加入声音
  • Ogre中的粒子系统(Particle System)
  • Ogre中简单的AABB碰撞检测
Categories

COPYRIGHT © 2026 jianchihu.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang