Need advice about Enemy territory limit models


(Kic) #1

HI
I have 1 question, in 1 map can be 256 models, no more ( I think )
is possible to make in 3d modeler for example from 3 trees - to make it 1 model ( 1 group of trees) and it will be count as 1 model.
Thank you i need to know it, because i want use a lot of foliage , trees in map and i know there will be problem also with FPS, is possible to improve FPS with fog, or hints and so on?

Thank you


(zenith-ply) #2

from 3 trees - to make it 1 model ( 1 group of trees) and it will be count as 1 model.

Yes. Each model is counted as one entity. The number of objects in model is limited to whatever the eng. supports. (1k obects?) Can be as large as 1024x1024x1024 (iirc) per model (.md3), so the larger it is the more custom fit to your terrain it has to be.

Edited for amusement/clarification by zenith-ply…


(C) #3

To prevent anything beyond a certain distance from being rendered, distance-culling, You could add these keys to the worldspawn-entity:

	"_fog" "textures/mapname/fogshader"
	"fogclip" "4096"
	"_farplanedist" "4096"

A shader like this will create the fog. Anything further than 4096 units (opacity) away from the player will go up in fog, and will not be seen…you just see the fog-color ( r g b ):

textures/mapname/fogshader
{
	qer_editorimage textures/mapname/qer_fogshader.tga
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	fogparms ( 0.5 0.5 0.5 ) 4096 // ( r g b ) opacity
}

Use the console-command /r_showtris 2 to see that anything beyond 4096 units is not drawn at all.

…these forums have lots of topics about fog issues,
like this one from 2003:
http://www.splashdamage.com/forums/viewtopic.php?t=2106


(TNR360) #4

the way I map fog improves FPS


(shadrach) #5

Distance-culling fog rules :slight_smile:
Also there can be more than 256. Check this out:

http://www.splashdamage.com/forums/viewtopic.php?t=15669


(TNR360) #6

The limit is 256 I had a destructablemap which ended up being non-destructable because in-game I had an error

too many inline models (323)

so yes INGAME limit is 256

But for compiling it’s different.


(stephanbay) #7

Dont forget that Func_explosive is counted as misc model too.


(TNR360) #8

exactly what I was trying to point out but I forgot to write that