FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

Graphics Theoretical

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Debaser



Joined: 25 Jun 2002
Posts: 878
Location: Aurora, IL

PostPosted: Tue Apr 06, 2004 8:51 pm    Post subject: Graphics Theoretical Reply with quote

Suppose some twisted soul wanted to depict movement on a hex map in Hugo: Is it possible to do overlaying graphics so you could depict the map as one file and icons depicting the actors as seperate files and move them in relation to one another?
Back to top
View user's profile Send private message Send e-mail AIM Address
Kent



Joined: 27 Jun 2003
Posts: 119

PostPosted: Wed Apr 07, 2004 8:29 am    Post subject: Graphical tiles Reply with quote

I'm thinking not quite the way you'd like, especially if you want to be overlaying hex tiles on a map. Hugo's graphical display is (partly by design) not pixel-specific. There's been a bit of a trade-off in low-level functionality vs. portability and being adaptable to different screen resolutions/shapes/etc.

It is possible to do graphical overlays over a background image or set of images--for instance, I do this in my nearly finished work-in-progress. But it's easiest if the overlaid images are square (because JPEG doesn't support transparency) and if they're not required to be precisely aligned with respect to the background (because the built-in scaling and alignment functionality of the engine might work against you in that case).
Back to top
View user's profile Send private message
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Wed Apr 07, 2004 9:20 am    Post subject: Re: Graphics Theoretical Reply with quote

Debaser wrote:
Suppose some twisted soul wanted to depict movement on a hex map in Hugo: Is it possible to do overlaying graphics so you could depict the map as one file and icons depicting the actors as seperate files and move them in relation to one another?


Along those same lines: if I remember right, the "patent" on GIFs expired a while back. I think GIFs (which allow transparencies) would allow hex mapping to be realized. Is the addition of GIFs "in the works" as they say?

(If it's in 3.1 already, I respectfully withdrawl my argument to disolve the senate.)
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Debaser



Joined: 25 Jun 2002
Posts: 878
Location: Aurora, IL

PostPosted: Wed Apr 07, 2004 11:08 am    Post subject: Reply with quote

A quick google search indicates that the patents don't completely expire until mid 2006.
Back to top
View user's profile Send private message Send e-mail AIM Address
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Wed Apr 07, 2004 11:40 am    Post subject: Reply with quote

Huh. I could have sworn that the Slashdot nerds just lost it over the revelation that Compuserve's laughable patent had expired.
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Debaser



Joined: 25 Jun 2002
Posts: 878
Location: Aurora, IL

PostPosted: Wed Apr 07, 2004 11:58 am    Post subject: Reply with quote

Ice Cream Jonsey wrote:
Huh. I could have sworn that the Slashdot nerds just lost it over the revelation that Compuserve's laughable patent had expired.


From here:

Quote:
We were able to search the patent databases of the USA, Canada, Japan, and the European Union. The Unisys patent expired on 20 June 2003 in the USA, but it does not expire in most of Europe until 18 June 2004, in Japan until 20 June 2004 and in Canada until 7 July 2004. The U.S. IBM patent expires 11 August 2006, (we are still searching the databases of other countries).
Back to top
View user's profile Send private message Send e-mail AIM Address
Kent



Joined: 27 Jun 2003
Posts: 119

PostPosted: Wed Apr 07, 2004 12:56 pm    Post subject: Graphics format Reply with quote

I think I'd probably end up going with PNG vs. GIF. PNG is just so much better in that it allows alpha vs. paletted transparency (and of course is 24-bit color to boot).

I've played around with basic PNG display on Windows, BeOS, Mac, and Linux, but haven't pulled the trigger partly because, at least so far, there hasn't been any pressure to do it.

(However this still wouldn't solve the alignment issues you'd face in trying to do a hex-style map grid with overlays.)
Back to top
View user's profile Send private message
bruce



Joined: 04 Jun 2002
Posts: 2547

PostPosted: Wed Apr 07, 2004 1:19 pm    Post subject: Re: Graphics format Reply with quote

Kent wrote:

(However this still wouldn't solve the alignment issues you'd face in trying to do a hex-style map grid with overlays.)


Well, sorta. For any size regular hexagon, there's a maximum-size square that will fit inside it, and that size is the side length. The spacing of the centers of the squares is the same as the spacing of the centers of the hexes (because their centers are the same), and is sqrt(3) ~= 1.732 times the side length.

So if you can plop down an image at a specified pair of coordinates (which if you don't have pixel resolution maybe you can't do), you can still drop square tiles onto a hex grid and have it look OK.

Bruce
Back to top
View user's profile Send private message
cauldron



Joined: 15 Jul 2004
Posts: 6

PostPosted: Mon Jul 19, 2004 5:44 am    Post subject: Reply with quote

Hello,

If you could implement any graphic format with transparency (GIF or PNG), I would be very grateful.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended