Nothing rendering yet, I still have some issues that need to be taken care of first, but.....

Quote:
>: testLDrawParseFile("19.dat");
Remark " ~Moved to 3624" at depth 0
LDraw Write: Part 19 moved to 3624
Remark " Minifig Police Hat" at depth 1
Remark " Name: 3624.dat" at depth 1
Remark " Author: James Jessiman" at depth 1
Remark " Original LDraw Part" at depth 1
Remark " LDRAW_ORG Part UPDATE 2003-02" at depth 1
Remark " CATEGORY Minifig Accessory" at depth 1
Remark " BFC CERTIFY CCW" at depth 1
Remark " 2003-01-30 SEB Completed header; BFC'ed; broke up non-coplanar quads" at depth 1
Remark "" at depth 4
Remark " Minifig Police Hat" at depth 3
Remark " Name: 3624.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Part" at depth 3
Remark " LDRAW_ORG Part UPDATE 2003-02" at depth 3
Remark " CATEGORY Minifig Accessory" at depth 3
Remark " BFC CERTIFY CCW" at depth 3
Remark " 2003-01-30 SEB Completed header; BFC'ed; broke up non-coplanar quads" at depth 3
Remark " Circle 1" at depth 5
Remark " Name: 4-4edge.dat" at depth 5
Remark " Author: James Jessiman" at depth 5
Remark " Original LDraw Primitive" at depth 5
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 5
Remark "" at depth 5
Huzzah! I'm glad that the parser is getting into gear. Can't wait for rendered results, of course, but this is an excellent step in the right direction.
I'd just like to remark that C++ is the work of the devil, and in particular, debugging bison+flex generated code is hellish. C++ should NOT be full of goto's.
I wasn't even aware C++ had goto functionality. I've never seen anyone use it.
Sigfig wrote:
I wasn't even aware C++ had goto functionality. I've never seen anyone use it.
Contrary to what many C++ programmers claim, there's a correct way to use it in C++, and it saves a lot of nested conditional loops when you need to reset to certain sections. However, the lazy C++ programmer who uses labels for everything is doing him or herself a disservice.
Oh hai. I was missing the second '\0' at the end of my buffers. In some cases it was present, in some it wasn't. But I fixed it!

Quote:
>: testLDrawParseFile("19.dat");
Remark " ~Moved to 3624" at depth 0
LDraw Write: Part 19 moved to 3624
Remark " Minifig Police Hat" at depth 1
Remark " Name: 3624.dat" at depth 1
Remark " Author: James Jessiman" at depth 1
Remark " Original LDraw Part" at depth 1
Remark " LDRAW_ORG Part UPDATE 2003-02" at depth 1
Remark " CATEGORY Minifig Accessory" at depth 1
Remark " BFC CERTIFY CCW" at depth 1
Remark " 2003-01-30 SEB Completed header; BFC'ed; broke up non-coplanar quads" at depth 1
Remark " Stud Tube Open" at depth 2
Remark " Name: stud4.dat" at depth 2
Remark " Author: James Jessiman" at depth 2
Remark " Author: Chris Dee" at depth 2
Remark " Original LDraw Primitive" at depth 2
Remark " LDRAW_ORG Primitive UPDATE 2002-02" at depth 2
Remark " BFC CERTIFY CW" at depth 2
Remark " 2002-04-04 SEB Modified for BFC compliance" at depth 2
Remark " Circle 1" at depth 3
Remark " Name: 4-4edge.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark "" at depth 3
Remark " Circle 1" at depth 3
Remark " Name: 4-4edge.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark "" at depth 3
Remark " Circle 1" at depth 3
Remark " Name: 4-4edge.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark "" at depth 3
Remark " Circle 1" at depth 3
Remark " Name: 4-4edge.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark "" at depth 3
Remark " BFC INVERTNEXT" at depth 2
Remark " Cylinder 1" at depth 3
Remark " Name: 4-4cyli.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark " BFC CERTIFY CCW" at depth 3
Remark " // 2002-03-23 SEB Added BFC statement; merged headers from" at depth 3
Remark " // files in distributions LDraw 0.27 and Complete." at depth 3
Remark " // 2004-12-14 GuyVivan BFC CCW" at depth 3
Remark "" at depth 3
Remark " Cylinder 1" at depth 3
Remark " Name: 4-4cyli.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 3
Remark " BFC CERTIFY CCW" at depth 3
Remark " // 2002-03-23 SEB Added BFC statement; merged headers from" at depth 3
Remark " // files in distributions LDraw 0.27 and Complete." at depth 3
Remark " // 2004-12-14 GuyVivan BFC CCW" at depth 3
Remark "" at depth 3
Remark " Ring 3 x 1" at depth 3
Remark " Name: ring3.dat" at depth 3
Remark " Author: James Jessiman" at depth 3
Remark " Original LDraw Primitive" at depth 3
Remark " LDRAW_ORG Primitive UPDATE 2002-02" at depth 3
Remark " BFC CERTIFY CW" at depth 3
Remark " 2002-4-5: TH: Added BFC statement" at depth 3
Remark "" at depth 3
Remark "" at depth 2
Remark " Circle 1" at depth 2
Remark " Name: 4-4edge.dat" at depth 2
Remark " Author: James Jessiman" at depth 2
Remark " Original LDraw Primitive" at depth 2
Remark " LDRAW_ORG Primitive UPDATE 2005-01" at depth 2
Remark "" at depth 2
Remark " Disc 1" at depth 2
Remark " Name: 4-4disc.dat" at depth 2
Remark " Author: James Jessiman" at depth 2
Remark " Original LDraw Primitive" at depth 2
Remark " LDRAW_ORG Primitive UPDATE 2002-02" at depth 2
Remark " BFC CERTIFY CCW" at depth 2
Remark " 2002-03-23 SEB Added BFC statement" at depth 2
Remark "" at depth 2
Remark "" at depth 1
Removing zcolor namelist entry Matte-Black
Removing zcolor namelist entry Tan
Removing zcolor namelist entry Orange
Removing zcolor namelist entry Mint-Green-Belville
Removing zcolor namelist entry Light-Yellow-Belville
Removing zcolor namelist entry Gold
Removing zcolor namelist entry Electrical-Contacts
Removing zcolor namelist entry Chrome
Removing zcolor namelist entry Trans-Orange
Removing zcolor namelist entry Trans-White
Removing zcolor namelist entry Trans-Yellow
Removing zcolor namelist entry Trans-Pink
Removing zcolor namelist entry Trans-Light-Red
Removing zcolor namelist entry Trans-Cyan
Removing zcolor namelist entry Trans-Light-Green
Removing zcolor namelist entry Trans-Light-Blue
Removing zcolor namelist entry Trans-Dark-Gray
Removing zcolor namelist entry Trans-Light-Gray
Removing zcolor namelist entry Trans-Brown
Removing zcolor namelist entry Trans-Magenta
Removing zcolor namelist entry Trans-Red
Removing zcolor namelist entry Trans-Dark_Cyan
Removing zcolor namelist entry Trans-Green
Removing zcolor namelist entry Trans-Blue
Removing zcolor namelist entry Trans-Black
Removing zcolor namelist entry Tan-Solid
Removing zcolor namelist entry Lime-Green
Removing zcolor namelist entry Dark-Pink
Removing zcolor namelist entry Orange-Solid
Removing zcolor namelist entry Edge-Color
Removing zcolor namelist entry Purple-Blue
Removing zcolor namelist entry Purple
Removing zcolor namelist entry Glow-In-The-Dark
Removing zcolor namelist entry Light-Purple
Removing zcolor namelist entry Tan
Removing zcolor namelist entry Light-Yellow
Removing zcolor namelist entry Pastel-Green
Removing zcolor namelist entry Main-Color
Removing zcolor namelist entry White
Removing zcolor namelist entry Yellow
Removing zcolor namelist entry Pink
Removing zcolor namelist entry Light-Red
Removing zcolor namelist entry Cyan
Removing zcolor namelist entry Light-Green
Removing zcolor namelist entry Light-Blue
Removing zcolor namelist entry Dark-Gray
Removing zcolor namelist entry Light-Gray
Removing zcolor namelist entry Brown
Removing zcolor namelist entry Magenta
Removing zcolor namelist entry Red
Removing zcolor namelist entry Dark-Cyan
Removing zcolor namelist entry Green
Removing zcolor namelist entry Blue
Removing zcolor namelist entry Black
Removing color table index 0
Profile: 0 cached, 11 uncached, 0 hits


though depressingly the cache seems to be borked, and I was concerned that it spit back a few syntax errors at me, 'tis a start. Now I can be content to hack away at some rendering nonsense without this looming over my head.
I got a copy of the TGEA demo (which is no longer available for download) off my old HD to use for testing my theories wrt VBOs improving performance significantly. Standby to see how the refactored rendering pipeline compares to what our TGE uses.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement