| | Help Needed: Boundary Box Utility [DAT]
|
|
Could somebody please make a utility that calculates and creates a boundary box for a .dat file? I want it to be able to take a DOS command line like "bbox.exe C:\Ldraw\Models.Mymodel.dat" and it should create 'MyModel.box' in the same directory. An (...) (23 years ago, 13-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Help Needed: Boundary Box Utility
|
|
(...) I don't think I can do this right away since I already have 2 actual bug reports and an enhancement request in for ldglite. (I don't get many of these so I like to give them priority). It shouldn't be too hard to do though. Everything you need (...) (23 years ago, 14-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Help Needed: Boundary Box Utility
|
|
Thank you Don. I will give it a try tonight, but I'll probably fail. I'll let you know. I need it for two purposes: 1. Making an overview map of Datsville from the subdivision in town.dat. (Maybe post-editing of the Y and E values by hand). 2. (...) (23 years ago, 14-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Help Needed: Boundary Box Utility
|
|
(...) [snipped: How-To instructions for making this from L3Input.cpp] (...) Ok, I decided to give this a shot during my lunch break. I hacked ldglite to bits and the results (source and win32 exe) should be here. (URL) to work for 3001.dat, but (...) (23 years ago, 15-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Help Needed: Boundary Box Utility [DAT]
|
|
Thank you very much! I tested it on "my home" in Datsville, and it worked perfectly well, exactly as I want it to. With these two lines and viewed in L3Lab, any flaws would have been discoved: 1 16 0 0 0 1 0 0 0 1 0 0 0 1 ttore.dat 1 47 0 0 0 1 0 0 (...) (23 years ago, 15-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Datsville Overview Map (Was: Boundary Box Utility)
|
|
That's it for tonight. I bboxed the parts of Datsville and labelled them after their names in town.dat (URL) (19 Kb) Next step: adding *a few* key buildings to help orientation. Tomorrow... /Tore (23 years ago, 15-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Help Needed: Boundary Box Utility
|
|
(...) Don't thank me, thank Lars. It's mostly his code. Now if only he'd release some more of it... ;^) (23 years ago, 15-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Datsville Overview Map (Was: Boundary Box Utility)
|
|
This is great! An idea: if bitmaps were created of the model from 6 directions (left, right, bottom, top, front, back), you could texture map those to the boundary box (inside, to make sort of a 6 point, 3 plane cross intersecting in the center) and (...) (23 years ago, 16-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Datsville Overview Map (Was: Boundary Box Utility)
|
|
Of course, the same could be accomplished in LDraw. Mike (...) (23 years ago, 16-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Datsville Overview Map (Was: Boundary Box Utility)
|
|
You could specify (or firmly recommend) in the future that models must posses boundary boxes measured in degrees of tilewidths (or half-tilewidth's). Anything less than that would be considered a prop. Props would then be dealt with seperately, just (...) (23 years ago, 16-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Datsville Overview Map (Was: Boundary Box Utility)
|
|
Here is another idea for optimizing dat models. It isn't a very good one, but, it just seems more realistic than what I said earlier (writing a utility smart enough to optimize an entire model). One could write a utility that presents each polygon (...) (23 years ago, 16-Aug-01, to lugnet.cad, lugnet.cad.dev)
|
|
| | Re: Datsville Overview Map (Was: Boundary Box Utility)
|
|
(...) I think realtime rendering qualifies as above statement (23 years ago, 17-Aug-01, to lugnet.cad, lugnet.cad.dev)
|