Re: [Plib-users] Bug report
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-04-01 21:42:02
|
Per Liedman wrote: > > * The 3ds-loader also have problems with large models. It can load them > > ok, but when ypu try to manipulate them PLib will crash. This is because > > the loader creates VtxTables with too many vertices in them. The getVertex > > function can only handle shorts but the number of vertices variable is an > > int, making it possible to load more vertices than some of PLib's other > > functions can handle. > > Interesting and annoying. Should we just refuse to load too large models? More than 65535 vertices in a single ssgLeaf is "A Bad Thing" anyway because the entire leaf either is or isn't passed on to OpenGL...there is no field of view culling *within* an ssgLeaf. If your model has nodes as large as that, it's not going to render efficiently anyway. We *could* automatically split large leaf nodes into a branch and multiple leaves - but that's a *LOT* of hassle and since rather few models would ever make use of it...and those models are already doomed to fairly poor performance...I think we should just flag a nice error message and abort. If someone passionately wants to write all the needed code to split objects into multiple leaf nodes then we should certainly accept it...but I wouldn't be very excited about writing it myself. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |