Chaos Project

RPG Maker => General Discussion => Topic started by: element on December 11, 2009, 08:12:30 am

Title: blizz abs theory question
Post by: element on December 11, 2009, 08:12:30 am
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 !
Title: Re: blizz abs theory question
Post by: C.C. rOyAl on December 11, 2009, 08:50:51 am
I asked this question about XAS, basically it won't work
http://forum.chaos-project.com/index.php/topic,4061.0.html
Title: Re: blizz abs theory question
Post by: Jackolas on December 11, 2009, 09:02:17 am
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.
Title: Re: blizz abs theory question
Post by: Blizzard on December 11, 2009, 10:53:26 am
If I didn't mention this already, it's not exactly impossible, but the lag created will make it unplayable.
Title: Re: blizz abs theory question
Post by: element on December 11, 2009, 12:11:43 pm
yeah ... already thougt this would be veary kinda impossible :p
Title: Re: blizz abs theory question
Post by: Aqua on December 11, 2009, 03:33:07 pm
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.
Title: Re: blizz abs theory question
Post by: 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.
Title: Re: blizz abs theory question
Post by: fugibo on December 11, 2009, 04:19:26 pm
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.
Title: Re: blizz abs theory question
Post by: winkio on December 11, 2009, 04:22:20 pm
If you cached it and defined it the same way as the minimap tiles, there shouldn't be any increase in lag.
Title: Re: blizz abs theory question
Post by: element on December 12, 2009, 03:20:52 am
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

(http://i935.photobucket.com/albums/ad199/ElementIsland/circleminimap.jpg)



Dowload link : http://www.sendspace.com/file/6d4789
Title: Re: blizz abs theory question
Post by: element on December 14, 2009, 11:20:28 am
Ok this changed more to a request I think ...
should I open a new topic or will someone move this ?