Ricebug on 26/5/2013 at 19:55
I've been puttering around with using a background image in DromEd to layout a rail system. Apparently, I'm missing some grain of truth. Here's a test image:
Inline Image:
http://www.ricebug.org/temp/grid.pngDromEd's grid size is set to 16. The 3 squares were drawn at a grid setting of 64x64. I then
set_bg_image to load up the graphic at an offset of -64, -64, 0. One would think that the 64-pixel grid would line up with DromEd's 16-unit grid. (Changing the grid size in the editor didn't help.)
So the bottom line is this: If I want to build a warehouse that's 256x256 units in DromEd, what do the measurements have to be in the paint proggie? Let's keep it simple, boys and girls---I never got past square roots in school.
LarryG on 26/5/2013 at 20:13
EDIT: Duh uh ... your square is divided into an 18 x 18 grid pattern, not 16 x 16! Redo your grid to be 16 x 16 and try again. (or you could scale it in DromEd to be 18n x 18n in size ... say 72 x 72 instead of 64 x 64 ... that should work too)
You are making a false assumption. Background images don't have to have power of two sides. Here is a background image I used, its dimensions are 317 x 344.
[ATTACH=CONFIG]1677[/ATTACH]
And here are the settings I used to set it up in DromEd so that I could see it while I was building. (I used it as a side view, not a floor plan as you intend, but you get the idea) Note that you have to specify the displayed dimensions (height and width) in DromEd units.
[ATTACH=CONFIG]1678[/ATTACH]
Here's one I used as a floor plan (I didn't know back then to always take a screenshot of the settings once I settled on them, so I can't show them to you for this image). This one is 2280 x 1920
[ATTACH=CONFIG]1679[/ATTACH]
But the deal is the same. Any size will work, just then scale it in DromEd by specifying the X, Y, Z and Height and Width until it looks right at the right location for your needs.
But whatever you do, since DromEd doesn't remember your settings, either take a snapshot or copy it out of your monolog to a text file (DromEd does write the setting to monolog). You can even take the monolog output and turn it into a command file, I think, to execute when you need it again. At least I think I remember that ... been a while.
Ricebug on 27/5/2013 at 00:48
Quote:
your square is divided into an 18 x 18 grid pattern, not 16 x 16! Redo your grid to be 16 x 16 and try again. (or you could scale it in DromEd to be 18n x 18n in size ... say 72 x 72 instead of 64 x 64 ... that should work too)
Nope. It's set to 16. I just double-checked.
Quote:
Note that you have to specify the displayed dimensions (height and width) in DromEd units.
I guess what I'm after is what grid size in the paint program equals the grid in Dromed?
I tried importing the BG image using different sizes, but it seems like guess work.
LarryG on 27/5/2013 at 01:05
Quote Posted by Ricebug
Nope. It's set to 16. I just double-checked.
Count the rows and columns again! The image you posted is an 18 x 18 grid!
[ATTACH=CONFIG]1680[/ATTACH]
Quote Posted by Ricebug
I guess what I'm after is what grid size in the paint program equals the grid in Dromed?
Whatever you want it to be. You specify the size that the image shows up in DromEd as! It scales the image to whatever size you tell it.
PinkDot on 27/5/2013 at 12:37
I guess the black border is not a part of the 16x16 bitmap - it's just a Dromed background - that would explain the 16/18 confusion.
But besides that - Ricebug - your bitmap seems to have a 10x10 grid. So make it 640 x 640 units in Dromed. Oh, and your 256 square is actually only 3x64 = 192.
Ricebug on 27/5/2013 at 12:37
Quote Posted by LarryG
Count the rows and columns again! The image you posted is an 18 x 18 grid!
Aaaahhhh... the light bulb comes on (even if it is a bit dim). I thought you meant the grid size/snap, not the
number of grids.
Ricebug on 27/5/2013 at 12:50
Quote Posted by PinkDot
your bitmap seems to have a 10x10 grid. So make it 640 x 640 units in Dromed. Oh, and your 256 square is actually only 3x64 = 192.
It's a screenshot, clipped and re-sized for clarity.
LarryG on 27/5/2013 at 13:37
Please post your actual background image. I thought that's what you did post. I now have no idea what your issue actually is.
PinkDot on 27/5/2013 at 14:09
Quote Posted by Ricebug
It's a screenshot, clipped and re-sized for clarity.
What I'm talking about is resolution independent.
Your gray large square seems to be 10 times bigger than your '64' dark square. Hence my suggestion was to make the entire bitmap 640 units large, so the '64' square would align with the grid and would be 64 units big in Dromed...
LarryG on 27/5/2013 at 14:58
You guys are missing the point: you determine the height and width of the image using the height and width parameters of the set_bg_image command! It doesn't matter what the image size is (at least within reason).
Either use the command as just set_bg_image and fill in the fields or use it like set_bg_image 2 "Basilica" 164. 150. 690.5 728. 428.25 270. 0.5 0 1 That is equivalent to setting the enable check box on Top/Bottom, using the "Basilica" image, scaled to 164 x 150 DromEd units, and located at (690.5, 728., 428.25), rotated 270 degrees, with an alpha of 0.5 and the unfiltered check-box unchecked.