DTS and Sorted Polys taking forever.
by Neil Marshall · in Torque Game Engine · 09/09/2002 (5:42 am) · 6 replies
I've created a tree in max, which I'm trying to export. It has 1088 polys for the "leaves" which have transparent portions so I SORT::'d the object.
When I tried exporting the first time, it says that I'm past the maximum allowed sorted polys and to recompile the plugin with a higher maximum.
I opened up MSVC++ and noticed that the limit was 32*32 = 1024, so I increased it to 32 * 35 just to be safe.
Then I hit export in max again, and it started chugging away. Well it's been 9 hours and 41 minutes with the CPU pegged at 100% and there is no sign of it finishing any time soon. Am I just going to have to stop it and reduce the number of polygons in my tree? or is there some other way to go about fixing the problem?
When I tried exporting the first time, it says that I'm past the maximum allowed sorted polys and to recompile the plugin with a higher maximum.
I opened up MSVC++ and noticed that the limit was 32*32 = 1024, so I increased it to 32 * 35 just to be safe.
Then I hit export in max again, and it started chugging away. Well it's been 9 hours and 41 minutes with the CPU pegged at 100% and there is no sign of it finishing any time soon. Am I just going to have to stop it and reduce the number of polygons in my tree? or is there some other way to go about fixing the problem?
#2
1) Do your other models compile with your changes to the exporter?
2) Do you really need all those extra poly's in your tree?
3) Would it be better to use a sprite?
=)
09/09/2002 (7:53 am)
Things to consider :1) Do your other models compile with your changes to the exporter?
2) Do you really need all those extra poly's in your tree?
3) Would it be better to use a sprite?
=)
#3
2) No, but I'd like them to be there. I'm going to remove some from the branches at the top of the tree.
3) No.
I think I should also try clumping the branches into groups, hopefully the sorter won't have to deal with as many polys at once.
09/09/2002 (9:18 am)
1) Yes2) No, but I'd like them to be there. I'm going to remove some from the branches at the top of the tree.
3) No.
I think I should also try clumping the branches into groups, hopefully the sorter won't have to deal with as many polys at once.
#4
It was desinged to be used for relatively low polygon objects (like trees) that use several large planes and a lot of transparency in the textures.
Trying to get something that complex to :SORT correctly is probably giving you tens of thousands of polygons.
09/09/2002 (11:20 am)
The :SORT'ing of an object actually splits the faces of the object in order to get it to wort correctly.It was desinged to be used for relatively low polygon objects (like trees) that use several large planes and a lot of transparency in the textures.
Trying to get something that complex to :SORT correctly is probably giving you tens of thousands of polygons.
#5
I have cut down the model so it's just a small cluster of leaves. If I don't sort, everything works.
If I sort with the version of the plugin I made, it takes about 3 years to do which is more time than I'm willing to wait.
If I use the version of the plugin which I got off of here (In the torque game engine section) then I get this error
Program: c:\3dsmax4\3dsmax.exe
Module: C:\3dsmax4\plugins\max2dtsExporter.dle
File:
Run-Type Check Failure #3 - The variable 'bestCount' is being used without being defined.
ARGH.
So, if I can't do it this way, then how would I go about modelling a tree?
This is how it's currently setup in max (More polys than it needs but it's still not super high)
09/09/2002 (11:24 am)
I'm still having problems with this.I have cut down the model so it's just a small cluster of leaves. If I don't sort, everything works.
If I sort with the version of the plugin I made, it takes about 3 years to do which is more time than I'm willing to wait.
If I use the version of the plugin which I got off of here (In the torque game engine section) then I get this error
Program: c:\3dsmax4\3dsmax.exe
Module: C:\3dsmax4\plugins\max2dtsExporter.dle
File:
Run-Type Check Failure #3 - The variable 'bestCount' is being used without being defined.
ARGH.
So, if I can't do it this way, then how would I go about modelling a tree?
This is how it's currently setup in max (More polys than it needs but it's still not super high)
#6
09/09/2002 (11:47 am)
Send me an email and I will send you the version the exporter I am using. This way we can be sure that it is not the exporter itself that is giving you problems.
Torque Owner Neil Marshall