TPM triangle-count...unlocked?

Discuss the game Trespasser here!

Moderators: TresCom Support Team, TresCom Board Managers

Post Reply
User avatar
TheIdiot
T-Rex
T-Rex
Posts: 4345
Joined: Thu Feb 20, 2014 9:13 pm
Location: Canada, eh?

TPM triangle-count...unlocked?

Post by TheIdiot »

So I was just doing a bit of testing on my Trespasser HD level and ran GeomAdd to check for an unrelated error when I noticed something in the "Verify Level" results: it seems one of the sub-models on my Monorail Terminus exceeds the 2048 triangle limit, at 2240. I know from past experience on ATX that doing this would prevent the level from loading until the triangles were reduced, so naturally I hopped into CE and booted up the level...and it worked! No crash, no errors. Just to be sure, I flew over to the model in question and gave it a thorough examination, and sure enough, it seems the game loaded the model flawlessly, all faces and textures intact, and the game remained stable. :o
Considering this is the only model I have that currently possesses greater than 2048 triangles, I'm unable to try a second one and see if the results are the same, but it seems just from this that CE is capable of bypassing the usual triangle limit! Meaning we can, in theory, now import higher-poly models to the game without using shanty tricks like sub-models and all that jazz. Of course having too many high-poly models will likely lag the game pretty heavily, but in my experience it takes a LOT of polys rendered at once to really bog CE down below 30 FPS on a good computer.
Is there anyone else who can help confirm this breakthrough in Trespassing?
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6119
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: TPM triangle-count...unlocked?

Post by Rebel »

Lee must have upped the value. It's been a long time since I looked at the source code, but I'd assume that it was simply
a static value and not relying on some complex mathematical formula. Then, again.... That source code gave me a damn
headache. :lol:
User avatar
tatu
-=TresCom Website Manager=-
-=TresCom Website Manager=-
Posts: 5088
Joined: Fri Jun 24, 2005 9:40 pm
Antispam: No
Location: Sweden
Contact:

Re: TPM triangle-count...unlocked?

Post by tatu »

Lee fixed so objects with more than 2048 triangles don't crash the level. AFAIK he said it he couldn't say those objects would load and show properly, but they shouldn't crash a level anymore.
Active project: Trespasser: Isla Sorna
Status:
BE-PH1: Released
PH2-IT: Pre-released
PL-SUM: In production

"...there used to be more benches, but InGen's workers removed them during the evacuation in the name of framerate."
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14045
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: TPM triangle-count...unlocked?

Post by Draconisaurus »

Yeah I sorta remember Lee having mentioned that..

Btw, as a test, you could always create a geosphere or something with a ton of polys (and applied texture?) and test it that way.
User avatar
TheIdiot
T-Rex
T-Rex
Posts: 4345
Joined: Thu Feb 20, 2014 9:13 pm
Location: Canada, eh?

Re: TPM triangle-count...unlocked?

Post by TheIdiot »

tatu wrote:Lee fixed so objects with more than 2048 triangles don't crash the level. AFAIK he said it he couldn't say those objects would load and show properly, but they shouldn't crash a level anymore.
Aah, okay, that's what I thought, but I missed the part about 2048 tri models and seemed to think it applied to all models in general for some reason...well, I can gladly report that said models seem to render correctly after all!
Btw, as a test, you could always create a geosphere or something with a ton of polys (and applied texture?) and test it that way.
Derp. Will definitely try that.
User avatar
TheIdiot
T-Rex
T-Rex
Posts: 4345
Joined: Thu Feb 20, 2014 9:13 pm
Location: Canada, eh?

Re: TPM triangle-count...unlocked?

Post by TheIdiot »

I've tested the triangle limit quite a bit recently, and I think I've got it figured out. It appears CE bumped up and doubled the limit, but did not remove it. I'm able to load models with up to 3072 triangles in CE without an error, but getting near 4096 or going above causes a crash every time. I've tested models in the 2500, 3000, and 3500 poly range and these are all completely stable, though I've only tried it with single instances, so that may not be the case with multiple instances of high-poly models. The highest stable number seems to be around 3500, after that it seems the amount of tris that break the game is somewhere after that.
Post Reply