Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Design issue : how do YOU dig a circle?  (Read 1756 times)

Dae

  • Bay Watcher
    • View Profile
Design issue : how do YOU dig a circle?
« on: March 01, 2008, 04:43:00 pm »

In my current fortress, I'm building amy residencial quarters with circles : 4 quarters in the first, small circle, then another circle, a corridor that goes around the first one, then 16 quarters in circle.
It worked quite good until now, because I have to deal with a quite big circle and I just can't make it just by feeling.

And when I'm looking at this, I just can't figure out how to do such perfect circles.

So here I am, asking you, how do you do? Do you have a macro or something?

Logged

Deathworks

  • Bay Watcher
  • There be no fortress without its feline rulers!
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #1 on: March 01, 2008, 04:55:00 pm »

Hi!

Well, I usually only do rectangles in DF, but I think if I wanted to do circles, I would simply count them.

First, I suggest you make a square:

code:

######
######
######
######
######
######


Then, you add layers which are one tile short on each side to each side:
code:

 ####
######
########
########
########
########
######
 ####


If that result is not good enough, repeat the last step. (Sorry, the example I chose was too small to show that (^_^;; )

You may however, need to increase the number of lacking tiles over the steps. That is something you need to do by looking at the prospective result.

(First, you are lacking one tile at each side, then two tiles, then three tiles)

Actually, there are even more smoothing possibilities, I think, but this should be both easy enough and efficient enough for getting decent circles.

I hope this helps.

Deathworks

Logged

Dae

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #2 on: March 01, 2008, 05:00:00 pm »

Nah, the problem is tiles are not squares but rectangles, and it ends up in an oval... What I want is something that looks really circular.

Maybe something with excel or such...

Logged

RyanW

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #3 on: March 01, 2008, 05:15:00 pm »

You probably won't be getting perfect circles without a *WHOLE* lot of work or a square tileset.
Logged
You went the wrong way Old King Urist

Dae

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #4 on: March 01, 2008, 05:24:00 pm »

I'm not requiring true perfect circles, my current ones aren't so perfect, but they look so. At least if you don't look too close.

I'm just asking you people how you do yours.

[ March 01, 2008: Message edited by: Dae ]

Logged

tarsier

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #5 on: March 01, 2008, 05:36:00 pm »

You could use that fortress planner thing in excel or whatever that I've seen around...
Logged

Chariot

  • Bay Watcher
  • Turtle Trainer
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #6 on: March 01, 2008, 05:37:00 pm »

quote:
Originally posted by Dae:
<STRONG>Nah, the problem is tiles are not squares but rectangles, and it ends up in an oval... What I want is something that looks really circular.

Maybe something with excel or such...</STRONG>


change to using square tiles in init.txt :P

Logged

Dae

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #7 on: March 01, 2008, 06:00:00 pm »

Didn't find the option in the init  :p

Now, a fortress planner thing?

Logged

DJ

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #8 on: March 01, 2008, 06:36:00 pm »

Choose a centre tile for your circle and dig out all the square who's square root of x^2 + y^2 offset is less than your desired circle's radius.
Logged
Urist, President has immigrated to your fortress!
Urist, President mandates the Dwarven Bill of Rights.

Cue magma.
Ah, the Magma Carta...

penguinofhonor

  • Bay Watcher
  • Minister of Love
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #9 on: March 01, 2008, 06:38:00 pm »

The real thing you need is a square tileset. That's what the guy in that map you posted did.
Logged

xzzy

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #10 on: March 01, 2008, 06:52:00 pm »

Square tiles are required if you don't want ovals.

If you can't figure out how to make decent curves, open up a paint program and use the  circle tool to make a circle with pixels equal to the number of in-game blocks you want to dig out.

Zoom in and count pixels, see how it forms the circle. Then duplicate.  ;)

Logged

THLawrence

  • Bay Watcher
  • Mad Scientest
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #11 on: March 01, 2008, 06:59:00 pm »

I've got a program on my calculator that will do the calculations and tell me where to dig. But you will need a square tile set to make it look circular.
Logged

mwoody450

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #12 on: March 01, 2008, 07:08:00 pm »

quote:
Originally posted by Dae:
<STRONG>And when I'm looking at this, I just can't figure out how to do such perfect circles.</STRONG>

That link is displayed in a square tileset.  It would appear as an oval if you viewed that map on your DF install.

Logged

Exponent

  • Bay Watcher
    • View Profile
Re: Design issue : how do YOU dig a circle?
« Reply #13 on: March 01, 2008, 07:48:00 pm »

If you need help figuring out how to switch to a square tileset, this page was what I used when figuring it out.  (There are also links at the top to existing tilesets and graphics sets.)  You'll have to adjust the size to match the size of your tileset.  The formula for determining the size is on the page above.  I've personally been using a 16x16 tileset, with a 1280x400 window size.
Logged

Quintin Stone

  • Bay Watcher
  • Dwarven Bureaucrat
    • View Profile
    • RPS
Re: Design issue : how do YOU dig a circle?
« Reply #14 on: March 01, 2008, 09:04:00 pm »

Open MS Paint.  Use the circle tool.  Drag it to the required size (zoom in if necessary).  That's how I laid out the circles for my tower and outer wall.
Logged
Pages: [1] 2