blizz abs theory question

Started by element, December 11, 2009, 08:12:30 am

Previous topic - Next topic

element

I'm making a mockup of my hud and I had just this letle question.
Would it be veary hard of making the blizz abs minimap round ?
think ... runescape or wow where the minimap in the upper right corner is round.

Just asking if it is possible and not years of work.
Not a request !

C.C. rOyAl

Spoiler: ShowHide

Jackolas

to make the calculations to make something round takes loads of computer power
Computer programs/games don't know what round is.
to make something appear round you need to put loads and loads of straight lines with all a degree off eachother.
that way the thing looks round.(make a circle in paint and zoom in)

the down side is that it requires lots of calculations.
than we need to fit the minimap in it. even more calculations. (you need to make sure that the map won't draw outside the many many lines)
this is even more calculations.

now this needs to be updated every frame.

and you got yourself a game that can't be played.

Blizzard

If I didn't mention this already, it's not exactly impossible, but the lag created will make it unplayable.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

element

yeah ... already thougt this would be veary kinda impossible :p

Aqua

Oh... I thought you just meant the minimap to be a circle instead of a rectangle...
XD

Making it a circle with still squarish map parts wouldn't be hard.

winkio

This doesn't even require calculations.  Just find what parts of the rectangle need to be eliminated to make a circle in a graphics program such as paint or photoshop, then use a 0 opacity color to fill over this area every time the minimap draws.

fugibo

Quote from: winkio on December 11, 2009, 04:07:51 pm
This doesn't even require calculations.  Just find what parts of the rectangle need to be eliminated to make a circle in a graphics program such as paint or photoshop, then use a 0 opacity color to fill over this area every time the minimap draws.


Exactly. Store a black-and-white BMP file and only draw parts of the minimap that are black. Still laggy, but I'm sure there'd be some way to cache it and reduce the lag somewhat.

winkio

If you cached it and defined it the same way as the minimap tiles, there shouldn't be any increase in lag.

element

December 12, 2009, 03:20:52 am #9 Last Edit: December 12, 2009, 04:56:27 am by elementisland
Cool where getting somewhere
So if i just make a circle graphic (where the circle is black and the baground white=>opacity 0) this can work huh ?
I'm making the black - white thing.
Could someone  script the part where the image overlayers the minimap and only fills in the black ?
Maybe you can make it so people can have the minimap whetever shape you want it to have.

If this would work ill make some example templates for minimap shapes.
Ofcourse is the best shape squarish or round but this can add a lot of free place to the screen.
I always thougt that the complete hud took a lot of place :p


EDIT : so the image would look something like this ?
Spoiler: ShowHide





Dowload link : http://www.sendspace.com/file/6d4789

element

Ok this changed more to a request I think ...
should I open a new topic or will someone move this ?