Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
new isometric problem
#1
just get me started here..

I'm drawing the map now, you see.

And it turns out like a checkboard: with holes.

But I want to draw it so that the holes are filled up (flatter)

A flatter diamond.

Current code:
Code:
minimap = uglNew(UGL.EMS, cFmt, map.max.x% * 2, map.max.y% * 2)
uglclear minimap, 63519
FOR x% = 1 TO 128
x1% = x% + map.max.x%
y1% = x%
FOR y% = 1 TO 128
x1% = x1% - 1
y1% = y1% + 1
uglpset minimap, x1%, y1%, terrain(uglPGet(map, x%, y%)).minimapcolor&
NEXT y%, x%

Thank you!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#2
Personally, when I do lini-maps for my iso stuff, I either use a 'mini-tile' or draw a poly.

Remember, you mini-map has to remain 2.1:1 just like your tiles are, so, you will end up with a problem drawing a single pixel since the 2.1:1 isn't being maintained.

If you want a hyper-fast rendering method for isometric stuffs, I'll show you how to draw only what is needed with no work during the render loop.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Reply
#3
hey, eric, where you been? i miss having angry, severely uninformed modex arguments with you Smile
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#4
Actually, I have a 1:1 ratio, but it doesn't seem exactly right, though. Even with 1:1, it's hard. Sad

EDIT:
figured it out. Now, the map is 2:1.

I'll see how the actual tiles look 2:1, too..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#5
The point is, if you've got dozens of diamond shaped tiles being drawn on the screen every frame, you shouldn't for the PUT statement to make all the corners transparent for you. You should make a special put that automatically jumps to the top tip of the diamond, draws those two or three pixels, then jumps to the beginning of the next row, etc... It will save memory and time. (if you do it right...)

0000XX0000
00XXXXXX00
XXXXXXXXXX
00XXXXXX00
0000XX0000

becomes

XX XXXX XXXXXX XXXX XX
Reply
#6
they're already rotated 45 degrees and flattened into a 2:1 ratio. I'm using a mask.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)