Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Projection Matrix  (Read 1510 times)
0 Members and 1 Guest are viewing this topic.
Offline cborders

Junior Member





« Posted 2005-10-19 20:32:36 »

I need to be able to display a map in a Lambert Projection and the map data I have is in Lat-Long points.  Here is what I am thinking. I was hoping that I could transform the projection matrix and then just draw the raw Lat-Longs in the modelview matrix and perform the projection in hardware instead of having to do it in software.  Is this the right way to do it or am I totally off my rocker?  And if this is correct, how should I go about converting the formula into a matrix? Huh
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #1 - Posted 2005-10-20 04:29:16 »

Did you ever work this out?  I've got an article from way back that talks about map projections.  I could scan it in for you, if you'd like.

Cheers,
Dr. A>
Offline cborders

Junior Member





« Reply #2 - Posted 2005-10-20 05:23:18 »

 Shocked Does it have anything on creating a Lambert projection using affine transforms??  If it does I would love to see it!!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #3 - Posted 2005-10-20 18:13:43 »

Its a pretty good article on mapping algorithms in general.  The original article had associated code, but it shows the matrixes and gives enough detail to get you where you want to go, IMO.

I'll scan it in as a PDF.  I need an email addrs to send it to you.

Regards,
Dr. A>
Offline cborders

Junior Member





« Reply #4 - Posted 2005-10-20 20:02:12 »

Awesome!!  Can you send it to TheBeast<dot>13<at>gmail<dot>com?  Grin
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #5 - Posted 2005-10-21 01:54:09 »

Article sent.  Smiley

If anyone else is interested, let me know.

Dr. A>
Offline cborders

Junior Member





« Reply #6 - Posted 2005-10-21 17:54:59 »

Awesome!!  I can't access my gmail from work, so I'll get it tonight!  Thank you so much!!  Grin
Offline cborders

Junior Member





« Reply #7 - Posted 2005-11-02 16:33:44 »

That was very informative, but it was based on a different projection.  Undecided  But it may still be helpful in the future!  Wink  We have a formula for converting from Lat, Long to X, Y based on a center point to obtain a Lambert Azimuthal Projection.  What I would like to do is find a way to translate this into a series of affine transformations so that I can use them to manipulate the projection matrix...but I have no idea how to do this!  Huh  Can anyone point me in the right direction to start this process?
Offline pepijnve

Junior Member




Java games rock!


« Reply #8 - Posted 2005-11-02 17:26:41 »

As far as I know a Lambert projection isn't an affine transformation, which means you can't decompose it into a series of affine transformations. From lon-lat to x-y space, equidistant cylindrical is the only affine projection I'm aware of.
Offline cborders

Junior Member





« Reply #9 - Posted 2005-11-02 17:36:28 »

In the article that dranonymous sent me it shows how to use affine transforms to create orthographic and Mercator projections.  Also Matlab stores all equations internally as matricies, so I am inclined to belive that it is possible!   Undecided  But I am new to all this so I could just be naive.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pepijnve

Junior Member




Java games rock!


« Reply #10 - Posted 2005-11-03 13:45:08 »

 Roll Eyes Seems like I mixed up affine and euclidean (http://www.css.tayloru.edu/~btoll/s99/424/res/mtu/Notes/geometry/geo-tran.htm).
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (15 views)
2014-07-29 18:09:19

Riven (10 views)
2014-07-29 18:08:52

Dwinin (10 views)
2014-07-29 10:59:34

E.R. Fleming (28 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (40 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!