Page 1 of 1

q4 clipping / nonsolid question

Posted: Thu Jan 05, 2006 11:55 pm
by cha0s
i have some tiny details, like debris on the the floor, and i don't want the player to stumble over it. so rather then placing a huge clip brush over the floor, i convert all my debris brushes to a func_static and make it nonsolid (key: solid; value: 0).
is this the right way to do it? a func_static is a entity, right? so if have few dozens of these, will this hit the performance or cause any other problems? and should i make a func_static for each brush, or put all debris together in one func_static?

maybe i worry too much :dork:

Posted: Fri Jan 06, 2006 12:00 am
by seremtan
1. making debris non-solid is the way to go :icon14:
2. func_static is an entity in any game. if it has a name, chances are it's an entity
3. combining all debris into one func_static is only worthwhile if the game has a low entity limit and you have a dickload of entities, i.e. it's probably not worthwhile at all

Posted: Fri Jan 06, 2006 1:34 am
by KungFuSquirrel
seremtan wrote:3. combining all debris into one func_static is only worthwhile if the game has a low entity limit and you have a dickload of entities, i.e. it's probably not worthwhile at all
It's more an issue of batching/draw calls (http://iddevnet.com/quake4/LevelEditor_Performance) than it is entity count. If you have a huge pile of brush-based func_statics in a single portal area and if they share textures, you can save a lot of draws by combining them into 1 entity.

Not always the case, but it has its uses. :)

Posted: Fri Jan 06, 2006 2:41 pm
by cha0s
thank you guys. the batch drawing thing makes sense :)