Page 1 of 1

"Optimised" tracks

PostPosted: 10 Apr 2012, 13:58
by ctdabomb
I have been "optimizing" some tracks by getting rid of extraneous faces, but I have a couple of questions. do 9000 faces make a difference? 500? how many faces make a difference? would these tracks even get used?

I started off with the canyon track removing 9143 faces and getting the count down to 22619. hope it helps. mainly I removed a bunch of extra faces that were not necessary from that road.

Re: "Optimised" tracks

PostPosted: 10 Apr 2012, 15:51
by Edward_Lii
Hello ctdabomb,

ctdabomb {l Wrote}:I have been "optimising" some tracks by getting rid of extraneous faces, but I have a couple of questions. do 9000 faces make a difference? 500? how many faces make a difference? would these tracks even get used?

That really depends, if you removed faces that were already getting culled, then the gain will probably be unnoticeable.
Also note that the number of faces isn't a reliable way to measure, a quad will be rendered as two triangles by your GPU.

There was a discussion about poly-count on the OpenDungeons forums a while ago.
http://forum.freegamedev.net/viewtopic.php?f=38&t=2190&p=24641&hilit=polycount#p24641
One interesting link from that thread:
http://dungeonhack.sourceforge.net/Model_Optimization

Anyway, great work on the track. ;)

Re: "Optimised" tracks

PostPosted: 10 Apr 2012, 17:23
by ctdabomb
Edward_Lii {l Wrote}:That really depends, if you removed faces that were already getting culled, then the gain will probably be unnoticeable.
Also note that the number of faces isn't a reliable way to measure, a quad will be rendered as two triangles by your GPU.

sorry for my stupidity. what's culled? :?

Re: "Optimised" tracks

PostPosted: 10 Apr 2012, 18:17
by Edward_Lii
Hello ctdabomb,

ctdabomb {l Wrote}:sorry for my stupidity. what's culled? :?

Culling is the not rendering of faces.
So it can be everything from back-face culling (not rendering the "inside" of a model) to occlusion culling (not rendering triangles behind other objects).

Re: "Optimised" tracks

PostPosted: 10 Apr 2012, 20:11
by ctdabomb
I made mathclass better. reduced 1000+ faces making the face count 5680. Most of them were from the desk models which were really ugly, and from other models

Re: "Optimised" tracks

PostPosted: 10 Apr 2012, 20:51
by ctdabomb
here is the Island: it had 13411 faces, I reduced 4224, it now has 9156. most of the faces were from the palm trees, but also the walls or the tracks, and the water.

Re: "Optimised" tracks

PostPosted: 11 Apr 2012, 01:31
by ctdabomb
most of the faces I removed from Canyon were from the road. it has wayyyyy to many, 6000 i think?

Re: "Optimised" tracks

PostPosted: 17 Apr 2012, 18:31
by ctdabomb
I worked on the canyon further, basicly "remeshing" the road and getting the face count from 31762, to 10547, removing 21215 faces :D

Re: "Optimised" tracks

PostPosted: 18 Apr 2012, 00:45
by Auria
Thanks, I uploaded your version to stk-addons :)

Re: "Optimised" tracks

PostPosted: 20 Apr 2012, 14:25
by Kinsu
2/3 of the total faces count removed in the canyon... stunning ! :o
Great job, optimization is kind of an ungrateful work, but it's much needed. Thank you ctdabomb !

Re: "Optimised" tracks

PostPosted: 20 Apr 2012, 19:25
by ctdabomb
it's all I'm good at :P

Re: "Optimised" tracks

PostPosted: 05 Sep 2012, 18:50
by ctdabomb
I fixed some stuff in the farnm track:
*texture stretching in a few spots
*vertex painting error on silo
*optimized the haybales 90 to 36 faces
*remonved 475 faces getting the count down to 13209

I also noticed the part of the fence is sticking up in the air but I didn't fix that.(it's the part thats stelected right now)

Re: "Optimised" tracks

PostPosted: 08 Sep 2012, 00:33
by Auria
Hi,

this sounds interesting, just a couple questions before I check in :
1) could you point where were the stretched textures? I don't remember seeing any previously, I'm just curious :)
2) how in the world did you manage to fix the silo painting? :o I've been trying all I could to fix it, I even disassembled the exported B3D file and verified that all vertices that should be red were red. So I really wonder what you did :)

Re: "Optimised" tracks

PostPosted: 08 Sep 2012, 14:26
by ctdabomb
Auria {l Wrote}:1) could you point where were the stretched textures? I don't remember seeing any previously, I'm just curious :)

at the places where the dirt and sand met and grass and sand met. it was in the most recent version.
Auria {l Wrote}:2) how in the world did you manage to fix the silo painting? :o I've been trying all I could to fix it, I even disassembled the exported B3D file and verified that all vertices that should be red were red. So I really wonder what you did :)

I noticed that there were some vertexes that weren't painted completely red in the game and blender so I repainted the thing red :p

Re: "Optimised" tracks

PostPosted: 08 Sep 2012, 18:53
by Auria
thanks, committed. But I don't understand at all what happened with the silo, in the previous version it was fully red in blender too :(

Re: "Optimised" tracks

PostPosted: 08 Sep 2012, 21:32
by ctdabomb
Auria {l Wrote}:thanks, committed. But I don't understand at all what happened with the silo, in the previous version it was fully red in blender too :(

I had the most recent version from the media repo and there was a grey spot.

Re: "Optimised" tracks

PostPosted: 08 Sep 2012, 22:46
by Auria
I have NO idea what's going on. I have the latest media repo version before your changes too, open in blender before my eyes, and I see no grey spot :o