游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1591|回复: 2

请问OGRE默认是用的什么场景管理方法?

[复制链接]

28

主题

110

帖子

110

积分

注册会员

Rank: 2

积分
110
发表于 2006-6-16 22:09:00 | 显示全部楼层 |阅读模式
当我们不作任何设置,使用OGRE的SDK中的ExampleApplication做一个简单的程序,使用SceneManager向场景中加入一些对象,OGRE是使用的那一个场景管理插件呢?是BSP还是Octree?

另外一个问题也是有关场景管理的。在管理室外场景时,使用八叉树究竟有什么比四叉树更好的地方?

3

主题

15

帖子

15

积分

新手上路

Rank: 1

积分
15
发表于 2006-6-16 22:35:00 | 显示全部楼层

Re:请问OGRE默认是用的什么场景管理方法?

/** Manages the organisation and rendering of a 'scene' i.e. a collection
        of objects and potentially world geometry.
   @remarks
        This class defines the interface and the basic behaviour of a
        'Scene Manager'. A SceneManager organises the culling and rendering of
        the scene, in conjunction with the RenderQueue. This class is designed
        to be extended through subclassing in order to provide more specialised
        scene organisation structures for particular needs. The default
        SceneManager culls based on a hierarchy of node bounding boxes, other
        implementations can use an octree (@see OctreeSceneManager), a BSP
        tree (@see BspSceneManager), and many other options. New SceneManager
        implementations can be added at runtime by plugins, see
        SceneManagerEnumerator for the interfaces for adding new SceneManager
        types.
@par
        There is a distinction between 'objects' (which subclass MovableObject,
        and are movable, discrete objects in the world), and 'world geometry',
        which is large, generally static geometry. World geometry tends to
        influence the SceneManager organisational structure (e.g. lots of indoor
        static geometry might result in a spatial tree structure) and as such
        world geometry is generally tied to a given SceneManager implementation,
        whilst MovableObject instances can be used with any SceneManager.
        Subclasses are free to define world geometry however they please.
@par
        Multiple SceneManager instances can exist at one time, each one with
        a distinct scene. Which SceneManager is used to render a scene is
        dependent on the Camera, which will always call back the SceneManager
        which created it to render the scene.
    */
以上是OGRE的注释。宗上所述使用:a hierarchy of node bounding boxes 即使用包围盒层次
进行裁减

28

主题

110

帖子

110

积分

注册会员

Rank: 2

积分
110
 楼主| 发表于 2006-6-25 09:16:00 | 显示全部楼层

Re:请问OGRE默认是用的什么场景管理方法?

汗!
我知道了,创建SceneManager时要指定类型的,SE_GENERIC是OctreeSceneManager
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-24 19:21

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表