Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: df autocad visualizer idea  (Read 1197 times)

Apothegm

  • Bay Watcher
    • View Profile
df autocad visualizer idea
« on: June 26, 2010, 08:49:39 am »

does a project exist that imports a dwarf fortress into an autocad model? this would be a great feature and would only require a couple scripts, and to make models for each tile and object... any thoughts?
Logged

Aklyon

  • Bay Watcher
  • Fate~
    • View Profile
Re: df autocad visualizer idea
« Reply #1 on: June 26, 2010, 09:54:36 am »

DF in CAD? the normal or the Architecture version? that would be interesting.
But how would it be possible, when one tile has no pre-determined size? After all, right now 1 tile doesn't = a foot, or a meter, or whatever, its just
Quote
You can fit 1,000 dragons in a single tile, as long as 999 of them are laying down.
Logged
Crystalline (SG)
Sigtext
Quote from: RedKing
It's known as the Oppai-Kaiju effect. The islands of Japan generate a sort anti-gravity field, which allows breasts to behave as if in microgravity. It's also what allows Godzilla and friends to become 50 stories tall, and lets ninjas run up the side of a skyscraper.

Apothegm

  • Bay Watcher
    • View Profile
Re: df autocad visualizer idea
« Reply #2 on: June 26, 2010, 11:51:39 am »

My understanding is that the tiles have uniform size... how else could they form a regular matrix? You could pick dimensions arbitrarily, or pick something that seems reasonable, for instance 1 meter cubed. All the other 3d visualizers already make assumptions about the dimensions of objects.
Logged

Vicomt

  • Bay Watcher
  • Just call me Vic.
    • View Profile
    • Steam Profile
Re: df autocad visualizer idea
« Reply #3 on: June 26, 2010, 12:29:11 pm »

I've looked at doing it a couple of times in the past. Difficulty wise it's not too bad if you know what you're doing with ObjectARX (AutoCAD's c++ API) and one of these days (apathy/time permitting) I might have a go. The main problem I've had in the past is an almost complete lack of documentation for DFHack. I'm not good at using other people's source without decent documentation as it just adds more time and work.

Capntastic

  • Bay Watcher
  • Greetings, mortals!
    • View Profile
    • A review and literature weblog I never update
Re: df autocad visualizer idea
« Reply #4 on: June 26, 2010, 02:57:34 pm »

and to make models for each tile and object...

Good luck.
Logged

Kazang

  • Bay Watcher
    • View Profile
Re: df autocad visualizer idea
« Reply #5 on: June 26, 2010, 03:12:05 pm »

and to make models for each tile and object...

Good luck.

Lol that's not hard.  It's already done for the other various visualisers it's not like you have model every dwarf down the dandruff in their beards.
Logged

Capntastic

  • Bay Watcher
  • Greetings, mortals!
    • View Profile
    • A review and literature weblog I never update
Re: df autocad visualizer idea
« Reply #6 on: June 26, 2010, 03:20:32 pm »

CAD is a mite more time consuming than spritework.
Logged

Vicomt

  • Bay Watcher
  • Just call me Vic.
    • View Profile
    • Steam Profile
Re: df autocad visualizer idea
« Reply #7 on: June 26, 2010, 04:34:54 pm »

It all depends on how you go about it, if you use the same method as most other visualisers, i.e. determine tile contents, select block to insert based on contents, insert each tile as block. then yes, you need to build every tile as a block. However, my current work involves procedural generation of geometry based on objects, and certainly for the main ground form geometry, that can be built up purely from procedural rules, similar to what stonesense does when it decides which sprite to display, only the sprite/geometry is drawn at runtime, no blocks/tiles need creating.

existent

  • Bay Watcher
  • I Watch Bays
    • View Profile
Re: df autocad visualizer idea
« Reply #8 on: June 26, 2010, 05:56:54 pm »

First off, I like Rhino.
Secondly-
Real men model Dwarf Fortress with Legos.
Logged
[DF 0.31.13]  ۝ War of the Ring Mod ۝  [WotR 0.13.3]

War of the Ring is back baby!
A mod based on Lord of the Rings, by JRR Tolkien.

Apothegm

  • Bay Watcher
    • View Profile
Re: df autocad visualizer idea
« Reply #9 on: June 26, 2010, 11:32:52 pm »

the way i see it there would just be an autoCAD block or xref to correspond to each DF tile geometry and object. The advantage being that once the code was in place to match DF files to blocks, it would be incredibly easy to customize change or upgrade the models, and add other effects within autoCAD if desired.
Logged

existent

  • Bay Watcher
  • I Watch Bays
    • View Profile
Re: df autocad visualizer idea
« Reply #10 on: June 26, 2010, 11:50:50 pm »

Isn't there a program that lets you design a fortress in, like, a spreadsheet, and then your dwarfs will carve it out?
Logged
[DF 0.31.13]  ۝ War of the Ring Mod ۝  [WotR 0.13.3]

War of the Ring is back baby!
A mod based on Lord of the Rings, by JRR Tolkien.

Aklyon

  • Bay Watcher
  • Fate~
    • View Profile
Re: df autocad visualizer idea
« Reply #11 on: June 27, 2010, 11:04:25 am »

Isn't there a program that lets you design a fortress in, like, a spreadsheet, and then your dwarfs will carve it out?
Quickfort (no link 'cause i don't know if it updated to .31.08 yet)
Logged
Crystalline (SG)
Sigtext
Quote from: RedKing
It's known as the Oppai-Kaiju effect. The islands of Japan generate a sort anti-gravity field, which allows breasts to behave as if in microgravity. It's also what allows Godzilla and friends to become 50 stories tall, and lets ninjas run up the side of a skyscraper.

LucasUP

  • Bay Watcher
  • Devout Cheeseist
    • View Profile
Re: df autocad visualizer idea
« Reply #12 on: June 27, 2010, 09:24:16 pm »

Why don't you work with Obsidian?:
http://www.bay12forums.com/smf/index.php?topic=57920.0

They will already have the methods of reading and saving tile information, and they already talked about the possibility of 3Dmax export.
Since its all open source it would theoretically be possible to add Autocad support
Logged
OG founder of the Lazy Newb Pack

Aklyon

  • Bay Watcher
  • Fate~
    • View Profile
Re: df autocad visualizer idea
« Reply #13 on: June 27, 2010, 10:15:44 pm »

Why don't you work with Obsidian?:
http://www.bay12forums.com/smf/index.php?topic=57920.0

They will already have the methods of reading and saving tile information, and they already talked about the possibility of 3Dmax export.
Since its all open source it would theoretically be possible to add Autocad support
if you get AutoCAD support, you don't necessarily need direct support for 3DSmax (though it would be a good idea, not everyone uses both CAD and 3DSmax). you could export AutoCAD and then export to 3DSmax from there.
Logged
Crystalline (SG)
Sigtext
Quote from: RedKing
It's known as the Oppai-Kaiju effect. The islands of Japan generate a sort anti-gravity field, which allows breasts to behave as if in microgravity. It's also what allows Godzilla and friends to become 50 stories tall, and lets ninjas run up the side of a skyscraper.