<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: EVE Online mapping &#8211; region perimeters</title>
	<atom:link href="http://www.othala.co.uk/2008/04/24/eve-online-mapping-region-perimeters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.othala.co.uk/2008/04/24/eve-online-mapping-region-perimeters/</link>
	<description>DNA Communicae</description>
	<lastBuildDate>Wed, 08 Sep 2010 16:38:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.othala.co.uk/2008/04/24/eve-online-mapping-region-perimeters/comment-page-1/#comment-159</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 15 May 2008 06:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.othala.co.uk/?p=57#comment-159</guid>
		<description>Hi Ryan, thanks for the comment!

Regarding rendering regions, the first job is collecting, and scaling of X/Z coordinates (X/Y provides a side-on view of the universe). After these have been scaled to the width/height of your output image (if you are rendering a single region), you would take a center point of the image as a reference, or starting point. From that reference point you would project a &#039;line of detection&#039;.

This &#039;line&#039;, is in fact a moving point in X/Y coordinates of the image. The only reason I use the term line is because the point itself moves from the outer constraint of the region (starting point + 50% region width), back to the starting point, looking for nearby Solar Systems as it goes. This is all done using Trigonometry, examples of which I would be happy to give.

This process is repeated through a 360 degree rotation from the starting point, in 5 degree increments. Once a Solar System is found on an increment, a line is drawn from the previously found Solar System, to the newly found. Increased smoothness can be gained by reducing the increment at the expense of increased CPU time. These coordinates are all stored in an array, for which we will need in a second once the outer border has been completed.

Once we have our border, we can use the PHP function &#039;imagefilledpolygon&#039; to create a polygon to overlap the region, to make it a bit more distinct. Of course, unless you draw the stars first you would want to assign a color with an alpha value, so as to give transparency.

When we have got everything together, simply dump to a PNG file or stream. This process can be repeated on all regions, simply by taking the starting point from the area of the MIN/MAX X/Y coordinates of a region, after the entire universe has been scaled down to the size of your destination image, and using them as an offset in your calculations.

I hope this has helped! If you have any questions, please feel free to post again. I&#039;d be very interested in seeing the progress you make, or different approaches you have to solving the problem of calculating region constraints, as I know there is a faster solution out there..I&#039;ve simply not put the time in to hack it out yet.

Take it easy!
Psilocybeing</description>
		<content:encoded><![CDATA[<p>Hi Ryan, thanks for the comment!</p>
<p>Regarding rendering regions, the first job is collecting, and scaling of X/Z coordinates (X/Y provides a side-on view of the universe). After these have been scaled to the width/height of your output image (if you are rendering a single region), you would take a center point of the image as a reference, or starting point. From that reference point you would project a &#8216;line of detection&#8217;.</p>
<p>This &#8216;line&#8217;, is in fact a moving point in X/Y coordinates of the image. The only reason I use the term line is because the point itself moves from the outer constraint of the region (starting point + 50% region width), back to the starting point, looking for nearby Solar Systems as it goes. This is all done using Trigonometry, examples of which I would be happy to give.</p>
<p>This process is repeated through a 360 degree rotation from the starting point, in 5 degree increments. Once a Solar System is found on an increment, a line is drawn from the previously found Solar System, to the newly found. Increased smoothness can be gained by reducing the increment at the expense of increased CPU time. These coordinates are all stored in an array, for which we will need in a second once the outer border has been completed.</p>
<p>Once we have our border, we can use the PHP function &#8216;imagefilledpolygon&#8217; to create a polygon to overlap the region, to make it a bit more distinct. Of course, unless you draw the stars first you would want to assign a color with an alpha value, so as to give transparency.</p>
<p>When we have got everything together, simply dump to a PNG file or stream. This process can be repeated on all regions, simply by taking the starting point from the area of the MIN/MAX X/Y coordinates of a region, after the entire universe has been scaled down to the size of your destination image, and using them as an offset in your calculations.</p>
<p>I hope this has helped! If you have any questions, please feel free to post again. I&#8217;d be very interested in seeing the progress you make, or different approaches you have to solving the problem of calculating region constraints, as I know there is a faster solution out there..I&#8217;ve simply not put the time in to hack it out yet.</p>
<p>Take it easy!<br />
Psilocybeing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Briggs</title>
		<link>http://www.othala.co.uk/2008/04/24/eve-online-mapping-region-perimeters/comment-page-1/#comment-158</link>
		<dc:creator>Ryan Briggs</dc:creator>
		<pubDate>Wed, 14 May 2008 22:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.othala.co.uk/?p=57#comment-158</guid>
		<description>That is absolutely amazing what you have done with a php script. I only recently started to try to do the same thing with the eve map and php. I have got no where close to what you have done so far. I have the ccp dumps and I have been playing around with them for the last week, but how did you get it to actually create a picture of a region using it?</description>
		<content:encoded><![CDATA[<p>That is absolutely amazing what you have done with a php script. I only recently started to try to do the same thing with the eve map and php. I have got no where close to what you have done so far. I have the ccp dumps and I have been playing around with them for the last week, but how did you get it to actually create a picture of a region using it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
