1 registered members (TipmyPip),
18,574
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: LOD -vs- FPS
[Re: A.Russell]
#83634
07/31/06 03:28
07/31/06 03:28
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Quote:
I don't think grouping your trees into one model is the answer, simply because they will surround the player, and if any one of them is within the view the whole lot will get sent for rendering.
I've tested this. Try placing a 500 ten-poly models into the view. Then try placing a single 5000-poly model into the view and you'll notice a considerable difference in performance. If you've used my benchmark tester program (on the Gamestudio download page), you'll know what I mean 256 entities and 10 polies is about as slow as 4 entities at 5000 polies. I've provided the option to set these to whatever you want.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: LOD -vs- FPS
[Re: William]
#83636
07/31/06 06:38
07/31/06 06:38
|
Joined: Nov 2004
Posts: 7,121 Potsdam, Brandenburg, Germany
Machinery_Frank
Senior Expert
|
Senior Expert
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
|
Yes. William is right. There are some disadvantages when you use one single model with 500 plants (5000 polies) intead of 500 plants with 10 polies each.
When you use fog and clipping then the entire 500 plants will get fogged or will disappear. That can look very strange.
Another solution is: You let the engine do the clipping and the LOD. Damocles did a good exsample of this. You create for every plant / tree a few LOD models. The last LOD stage is empty. LOD 2 and 3 are getting smaller, less saturated and a bit transparent. Then the blending will look smoother. When the model gets to LOD stage 4 it disappears completely and will not be rendered. That allows to display several thousands or even more of plants and trees without problems.
And the best of it: You need no action or script that would make it slow.
Models, Textures and Games from Dexsoft
|
|
|
Re: LOD -vs- FPS
[Re: Machinery_Frank]
#83637
07/31/06 11:35
07/31/06 11:35
|
Joined: Mar 2006
Posts: 38 Marquette, Michigan U.S.A.
ICRDesign
OP
Newbie
|
OP
Newbie
Joined: Mar 2006
Posts: 38
Marquette, Michigan U.S.A.
|
Hey fellas... -You guys are awesome...this fourm is equally awesome...so is 3DGS... -Germany, Canada, USA, Japan, Sweden, Thailand... -I wish global Goverments worked together so well! -But that's Politics so I guess we shouldn't go there...
So, back to the topic at hand... Here is the situation... -My terrain is incredible... Made from a USGS .dem and converted to a .hmp These are the stats: 1.) 1551 x 1142 = 1,771,242 Verticies... (Thanks to Ver. 6.40 Chunking...) 2.) 1.935 x 2.629 triangle size 3.) Terrain size 2999.9 x 2999.9 4.) 683 x 683 Skin Size (I would prefer a 2048 x 2048 - best detail.) 5.) Covers 30 kilometers x 30 kilometers (Not my largest project.) -There is a sky dome. -Cyberbabe is the player... -No sprites - yet, no Buildings - yet, no snow particles - yet and no AI - yet. -I have tried many concepts for the trees... From LOD_0 (140 vert's, 168 faces, 32pix x 32pix skin, 24 bit, 96 res, .bmp) to LOD_3 (14 vert's, 24 faces, 8pix x 8pix skin, 24 bit, 96 res, .bmp) -I have tried 1 tree at lod_0 to 10 trees at lod_3 (more trees at distance) -I have tried the fog but to look natural no frame rate increase... Too much fog does not look natural... -My terrain is mountanous so to leave lod_3 empty, when you look at distance looks bad and when the lods kick-in trees appear and or disappear - bad... -To get proper scale, my terrain is huge and my "player" is very small... -Camera distances are therefore adjusted so in 3d person I see the player properly. -LOD settings are dependant on the clip far variable... -"Clip far" is set high... To not loose distant terrain... -"Var loadfacters" are set very low... to kick in to not see changes... -If "load factors" were not dependant on "clip far" - this could really help. -Here are my script variables... var video_mode = 8; var video_depth = 32; var video_screen = 1; var terrain_chunk = 180; var d3d_triplebuffer = 1; var time_smooth = 0.99; var tex_share = 1; var pos_resolution = 1; var enable_polycollision = 0; var shadow_stencil = on ; var d3d_lightres = on; var floor_trace = 0; -Here are function main flags and variables... tex_share = on; video_set(sys_metrics(0),sys_metrics(1),32,1); Camera.clip_near = 5; camera.clip_far = 100000; shadow_range = 2; sky_clip = 40; var lodfactor[3] = 1, 2, 10; sky_color.red = 30; //Sky dome is transparent sky_color.green = 30; sky_color.blue = 238; camera.fog = 1; camera.fog_start = 0.01* clip_range; camera.fog_end = 2.5* clip_range; d3d_fogcolor1.red = 132; d3d_fogcolor1.green = 132; d3d_fogcolor1.blue = 234; fog_color = 1; -I will be using a 3 image splash intro... -I resourse (.wrs) to pack files and shorten game load time and file download time.
-I am working with a new Sony Vio w/ a gig of ram and 2 gig processer, water cooled - dual processer, so the build compiler kicks in to the 2 cpu setting...
-Maybe I am asking to much of the software and of users computers!!!! -If you look at my "ski game" (link in my signature below) you will see that I offer internet downloaders 3 quality versions dependant on user computer configuration. That game does not use a USGS .dem I made the terrain from my memory and site analysis. I had not yet figured out the .dem -to- .hmp conversion process.
Thanks to all trying to help... If we figure a way to make this work well... We stand to advance global simulation use... Thanks again... Paul
"Newbie" Grrrrr... I have been to darn busy work'n and not post'n I invite you to see: www.terrsame.com
|
|
|
Re: LOD -vs- FPS
[Re: jcl]
#83639
08/05/06 08:30
08/05/06 08:30
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Also, assign the my.dynamic = off instruction to an entity that doesn't move or otherwise have any actions (such as wall or nonanimated decorative object). Things imported in WED (both entities and terrains) seem to be dynamic by default. For this, all you need to do is add and assign this one-line action (more lines if you want to assign a pointer to it): Code:
action make_not_dynamic { my.dynamic = off; }
This has little effect with low-poly models and terrains. Edit: left out some details.
Last edited by ulillillia; 08/05/06 08:31.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: LOD -vs- FPS
[Re: vartan_s]
#83641
08/05/06 09:56
08/05/06 09:56
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
That's otherwise the same system I use for LOD - using vec_dist to find the distance. Instead, the invisibile flag is used for objects in the same position as it's much faster. ent_morph uses the hard drive and is very slow. With this sort of system, you get far more flexibility with LOD than what the engine has built-in, far more.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
|