Показать сообщение отдельно
Старый 25.02.2015, 17:48   #115
carsmaster
Пытающийся полететь
 
Аватар для carsmaster
 
Регистрация: 21.05.2009
Адрес: Сталинград
Сообщений: 2,425
Отправить сообщение для carsmaster с помощью ICQ Отправить сообщение для carsmaster с помощью Skype™
По умолчанию

Есть информация, правда на мой взгляд она касается в основном самих объектов в игре.
В кокпите я слабо представляю работу по этой схеме.
Пока сошлись что лучше меньше делать именно в кокпите.

Не думаю,что автор будет против обнародования его точки зрения.Ну и конечно огромное ему спасибо за информацию.


Оригинал:
Visibility spheres are used in renderers to check if an object needs to be drawn

Say you have 1000 objects in the world, drawing all of them will take some time, so we do a quick first pass to reject objects that are not visible.

To do this you work out the view frustum (the area of space that the camera can see) and check to see which of the objects intersect this.

The quickest way of doing the maths is to use sphere's, hence visibilty sphere

This value is the radius of the sphere which totally encloses the object. If it is too small, then objects pop into existence. Too large you are wasting cpu time processing an object that is not visible
carsmaster вне форума   Ответить с цитированием