Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: 3Dwarf -> Blender (programers needed!)  (Read 1250 times)

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
3Dwarf -> Blender (programers needed!)
« on: June 21, 2009, 12:39:23 am »

So I was thinking, and wouldn't it be cool to import the 3Dwarf data into Blender (or any other 3D modeling app for that matter)?

The problem is, I have no idea where to start with python. Or parsing the data from 3Dwarf.

Reactions? Volunteers? Suggestions? But no spam, trolling, or yuri. Or lolcats. ;D

EDIT: Actually, I don't care what language it's written in, as long as it'll run on Windows (or maybe compile with Cygwin.) and produces a format that Blender can import.
« Last Edit: June 21, 2009, 03:08:15 pm by SolarShado »
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: 3Dwarf -> Blender (Python programers needed!)
« Reply #1 on: June 21, 2009, 01:01:45 am »

(or any other 3D modeling app for that matter)
This, I want the same, but use Maya.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: 3Dwarf -> Blender (Python programers needed!)
« Reply #2 on: June 21, 2009, 01:11:45 am »

>:D I have Armok's support! Woo-hoo!

can i put that in the thread title?
« Last Edit: June 21, 2009, 01:14:07 am by SolarShado »
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

jaked122

  • Bay Watcher
  • [PREFSTRING:Lurker tendancies]
    • View Profile
Re: 3Dwarf -> Blender (Python programers needed!)
« Reply #3 on: June 21, 2009, 09:03:32 am »

sorry dude, but I don't have any python expertise (I use C++).

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: 3Dwarf -> Blender (Python programers needed!)
« Reply #4 on: June 21, 2009, 01:31:25 pm »

Well, anything that gets it into a standard format should work.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: 3Dwarf -> Blender (Python programers needed!)
« Reply #5 on: June 21, 2009, 03:04:35 pm »

Well, anything that gets it into a standard format should work.

Very true, I'll edit the OP.

I was thinking python because that's what Blender uses for scripts. It'd be east to make it a plug-in (I assume).

But yeah, any language, any format's fine. As long as I can import it into Blender I'll be happy.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

LordZorintrhox

  • Bay Watcher
    • View Profile
Re: 3Dwarf -> Blender (programers needed!)
« Reply #6 on: June 21, 2009, 11:57:01 pm »

I personally can not help; I have too many other programming/modding/life matters as is.  But I can offer some advice off-the bat.

You probably want to use Python, as it is user friendly and practically made for this application.  In fact, it is your best bet if you are inexperienced with scripting anything; the file reading API is robust enough and straight-foreward enough that you should be fine.

You will probably want to convert the data to a *.obj file.  Every piece of 3D software can open one because it is REALLY easy to parse.  You can read them yourself: a *.obj is in plain ASCII text.  BEWARE: *.obj is the native format of the defunct Wavefront programs (Maya was one), which means it was likely developed for UNIX type systems, which further means that the ASCII character used for a new line in the file may be simply 'line feed,' code point 10, rather than the Windows use of Carriage Return then Line Feed, codes 13 then 10.  This might screw up your parsing.

jaked122, Python uses C++ syntax except indentation actually means something: no braces or parentheses.  Highlights include implicit typing, garbage collection, and I am pretty sure pass by reference.  The data types are all documented as to their representation in the C++ implementation of the run-time environment.  Assuming you write neat code, Python would not actually be a problem for you.  I mean, C++ has arcane things that are more confusing than Python, what with templates and inline and two kinds of bloody strings... Until you get into some nitty-gritty things that the average user doesn't and this scripting project wouldn't touch upon, Python is easy to pick up.  So if you want to help SolarShado, you are more than capable.
Logged
...but their muscles would also end up looking like someone wrapped pink steel bridge-cables around a fire hydrant and then shrink-wrapped it in a bearskin.

HEY, you should try my Dwarfletter tileset...it's pretty.
I make games, too

kcwong

  • Bay Watcher
    • View Profile
Re: 3Dwarf -> Blender (programers needed!)
« Reply #7 on: June 22, 2009, 12:06:18 am »

Why not just ask the dev of 3Dwarf to add a feature: export the data in common format(s)?
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: 3Dwarf -> Blender (programers needed!)
« Reply #8 on: June 22, 2009, 03:27:30 am »

Why not just ask the dev of 3Dwarf to add a feature: export the data in common format(s)?
Yea, this would be the best, the problem is if/how fast the 3Dwarf developer(s) will implement it.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

IndonesiaWarMinister

  • Bay Watcher
    • View Profile
Re: 3Dwarf -> Blender (programers needed!)
« Reply #9 on: June 22, 2009, 03:41:05 am »

Owie... I want to help (already have both blender and python (300 and 2.6) already) but I don't think my l33t skill is enough to do this...

Sorry...
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: 3Dwarf -> Blender (programers needed!)
« Reply #10 on: June 22, 2009, 08:59:54 am »

Yeah... I'm sure this'll need some support from the people who are working on 3Dwarf. Bare minimum, explain the format it uses for storage. I've looked at the perl code for extracting the data from DF and I think it just copies the appropriate chunk of memory from RAM to a file on the HD, but I'm not sure.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch