﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Extensions%3A2.6%2FPy%2FScripts%2FImport-Export%2FNASA_IMG_Importer</id>
	<title>Extensions:2.6/Py/Scripts/Import-Export/NASA IMG Importer - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Extensions%3A2.6%2FPy%2FScripts%2FImport-Export%2FNASA_IMG_Importer"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Import-Export/NASA_IMG_Importer&amp;action=history"/>
	<updated>2026-06-03T19:14:27Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Import-Export/NASA_IMG_Importer&amp;diff=101755&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Import-Export/NASA_IMG_Importer&amp;diff=101755&amp;oldid=prev"/>
		<updated>2018-06-28T19:40:36Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 19:40時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Import-Export/NASA_IMG_Importer&amp;diff=101754&amp;oldid=prev</id>
		<title>wiki&gt;ValterVB: add tip</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Import-Export/NASA_IMG_Importer&amp;diff=101754&amp;oldid=prev"/>
		<updated>2012-01-20T20:50:38Z</updated>

		<summary type="html">&lt;p&gt;add tip&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ScriptInfo&lt;br /&gt;
|name=LRO Lola &amp;amp; MGS Mola img Importer&lt;br /&gt;
|tooltip=Import DTM from LRO Lola and MGS Mola formatted as a PDS IMG file (.IMG)&lt;br /&gt;
|menu=File: 3d window &amp;gt; tool shelf&lt;br /&gt;
|version=1.1.8&lt;br /&gt;
|blender=2.61.3 Rev:#43539&lt;br /&gt;
|author=Valter Battioli (ValterVB)&lt;br /&gt;
|license=GPL&lt;br /&gt;
|link=http://blenderartists.org/forum/showthread.php?t=205737&lt;br /&gt;
|exe=https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/io_import_LRO_Lola_MGS_Mola_img.py&lt;br /&gt;
|bugtracker=http://projects.blender.org/tracker/index.php?func=detail&amp;amp;aid=25462&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&amp;lt;div class=&amp;quot;tableNormal&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script allows you to import a Moon and Mars surface directly into Blender.&lt;br /&gt;
&lt;br /&gt;
==== Details ====&lt;br /&gt;
This script imports a standard DTM file formatted like a PDS IMG file (*.IMG + *.LBL), reads the PDS label in the LBL file and decodes the raster elevations in IMG file to create a mesh in the current view.&amp;lt;br /&amp;gt;&lt;br /&gt;
North-South axis is set on Blender Y axis.&amp;lt;br /&amp;gt;&lt;br /&gt;
East-West axis is set on Blender X axis.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before you start importing the data, you must select the coordinates that you want imported.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Where to find the DTM IMG files? ====&lt;br /&gt;
The IMG file and the LBL file must be in the same directory.&lt;br /&gt;
===== MOON =====&lt;br /&gt;
Here: [ftp://pds-geosciences.wustl.edu/lro/lro-l-lola-3-rdr-v1/lrolol_1xxx/data/lola_gdr/cylindrical/img/ ftp Moon]&amp;lt;br /&amp;gt;&lt;br /&gt;
You must download the IMG file and the LBL file with the same name. Use the file that starting with LDEM. Do not use the LDEC files, it won't turn out right.&amp;lt;br /&amp;gt;&lt;br /&gt;
The first number after LDEM is the resolution: 4=4 pixel/deg16 =16 pix/deg and so on.&amp;lt;br /&amp;gt;&lt;br /&gt;
From LDEM 4 to LDEM 128 you have the global planet, with LDEM 256 you have 1/4 of the planet, with LDEM 512 you have 1/16 of the planet.&lt;br /&gt;
&lt;br /&gt;
===== MARS =====&lt;br /&gt;
Here: [http://pds-geosciences.wustl.edu/missions/mgs/megdr.html HTTP Mars]&amp;lt;br /&amp;gt;&lt;br /&gt;
You must download the IMG and the LBL file, Map type= Topography.&amp;lt;br /&amp;gt;&lt;br /&gt;
File from meg004 to meg016 are global planet, meg064 is 1/4 of the planet, meg128 is 1/16 of the planet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== UI Explanation ===&lt;br /&gt;
&amp;lt;div class=&amp;quot;tableNormal&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Step 1 Select the file ====&lt;br /&gt;
[[File:NASA_IMG_Importer_UI_Detail1.jpg|615px]] {{clr}}&lt;br /&gt;
Here you select the file. You can select the file with extension IMG or LBL, is the same thing.&lt;br /&gt;
&lt;br /&gt;
==== Step 2 Select data and import ====&lt;br /&gt;
[[File:NASA_IMG_Importer_UI_Detail2.jpg|615px]]&lt;br /&gt;
===== 1: IMG Info =====&lt;br /&gt;
Here is showed the recap of the salient data of IMG file.&amp;lt;br /&amp;gt;&lt;br /&gt;
Minimum Latitude, Maximum Latitude, Westernmost Longitude and Easternmost Longitude represent the area covered by the map.&amp;lt;br /&amp;gt;&lt;br /&gt;
Lines is the number of the lines of data, Line samples is the number of the points for each line of data.&amp;lt;br /&amp;gt;&lt;br /&gt;
Sample type and Sample bit are the type of the data.&amp;lt;br /&amp;gt;&lt;br /&gt;
Unit is the units of the data.&amp;lt;br /&amp;gt;&lt;br /&gt;
Map resolution: self-explanatory. 4.0 pix/deg mean that every 4 points is covered 1 degree of the planet.&amp;lt;br /&amp;gt;&lt;br /&gt;
Radius is the radius of the planet.&amp;lt;br /&amp;gt;&lt;br /&gt;
Scale is used internally for converting the values of height&amp;lt;br /&amp;gt;&lt;br /&gt;
Target is the name of the Planet.&amp;lt;br /&amp;gt;&lt;br /&gt;
===== 2: Input data =====&lt;br /&gt;
Here you select the coordinates of the area that you want to import.&lt;br /&gt;
Values are limited to the area covered by the map (See Part 2 IMG Info).&amp;lt;br /&amp;gt;&lt;br /&gt;
Northernmost Lat. must be greater than Southernmost Lat.&amp;lt;br /&amp;gt;&lt;br /&gt;
Easternmost Long. must be greater than Westernmost Long.&amp;lt;br /&amp;gt;&lt;br /&gt;
If these 2 rules are not respected, a warning message is showed under the wrong data.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:NASA_IMG_Importer_UI_LatWarning.jpg]]&lt;br /&gt;
[[File:NASA_IMG_Importer_UI_LongWarning.jpg]]&amp;lt;br /&amp;gt;&lt;br /&gt;
Scale is the zoom scale. Under the scale you can see the value for 1 Blender unit.&amp;lt;br /&amp;gt;&lt;br /&gt;
Magnify: if is checked, the height data are magnified (x4)&amp;lt;br /&amp;gt;&lt;br /&gt;
===== 3: Selected area Info =====&lt;br /&gt;
Is showed only if is all Ok.&amp;lt;br /&amp;gt;&lt;br /&gt;
Map resolution on the equator: is the distance between two points of the map on equator (worst case).&amp;lt;br /&amp;gt;&lt;br /&gt;
Real From Lat.,Real to Lat.,Real From Long.,Real To Long., are the real coordinate imported.&amp;lt;br /&amp;gt;&lt;br /&gt;
Numbers of vertex to be imported: self-explanatory, check always this number, the max quantity depend by memory that you have. &lt;br /&gt;
==== Import button ====&lt;br /&gt;
Click on the button to Import the data&lt;br /&gt;
{{NiceTip|I don't see nothing!|If after import you can not see anything, press {{Shortcut|pad.}} and increase the value of ''End clip'' in  ''Property Panel View''}}&lt;br /&gt;
&lt;br /&gt;
==== Reset button ====&lt;br /&gt;
Click on the button to reset the user interface and start a new import&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&amp;lt;div class=&amp;quot;tableNormal&amp;quot;&amp;gt;&lt;br /&gt;
1) Download a DTM: [[#Where to find the DTM IMG files?]]&lt;br /&gt;
&lt;br /&gt;
2) Inside of Blender activate the script.&lt;br /&gt;
{{Shortcut/Keypress|ctrl}}{{Shortcut/Keypress|alt}}{{Shortcut/Keypress|U}} then select Add-Ones tab, then select Import_Export category and at last check Import-Export: LRO Lola &amp;amp; MGS Mola img Importer &amp;lt;br /&amp;gt;&lt;br /&gt;
Now the user interface of the script is in Tool Shelf. If you can't see it, just resize the Tool Shelf.&lt;br /&gt;
&lt;br /&gt;
3) Select the file. You can select the IMG or the LBL file, is the same.&amp;lt;br /&amp;gt;&lt;br /&gt;
Select the coordinates that you want imported.&amp;lt;br /&amp;gt;&lt;br /&gt;
Northernmost Lat. must be higer than Southernmost Lat.&amp;lt;br /&amp;gt;&lt;br /&gt;
Easternmost Long. must be higher than Westernmost Long.&lt;br /&gt;
&lt;br /&gt;
4) If is all OK you can see more data and the button for import the data, before you click it, check the Numbers of vertex to be imported. The max quantity depend by memory that you have.&lt;br /&gt;
&lt;br /&gt;
5) Rendering.&lt;br /&gt;
Before you made a rendering you must set the camera.&lt;br /&gt;
&lt;br /&gt;
Example for Camera setting &amp;lt;br /&amp;gt;&lt;br /&gt;
Location: X=0 Y=0 Z=8000&amp;lt;br /&amp;gt;&lt;br /&gt;
Rotation: 0,0,0&amp;lt;br /&amp;gt;&lt;br /&gt;
End Clipping: 10000&lt;br /&gt;
&lt;br /&gt;
With these setting, when you use Camera View, you have North on top, South on bottom, West on the left and East on the right&amp;lt;br /&amp;gt;&lt;br /&gt;
{|align=center&lt;br /&gt;
| [[Image:NASA_IMG_Importer_UI_Rendering.jpg|thumb|610px| |Rendering of Olympus Mont on Mars-No Magnify]]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
=== Some detail ===&lt;br /&gt;
==== Coordinates system ====&lt;br /&gt;
[[Image:NASA_IMG_Importer_UI_Front.jpg|610px]] {{clr}}&lt;br /&gt;
[[Image:NASA_IMG_Importer_UI_Top.jpg|610px]]&amp;lt;br /&amp;gt;&lt;br /&gt;
All the coordinates are in decimal format. If you have Degrees, Minutes, Seconds you must convert in decimal. [http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html Here] you can found a online converter. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ex. of coordinate to be convert:&amp;lt;br /&amp;gt;&lt;br /&gt;
(40.1º 40.3' 11'' S) (73.7º 56.3' 38.5''W)&amp;lt;br /&amp;gt;&lt;br /&gt;
First group of number is the latitude, second group of number is the longitude.&amp;lt;br /&amp;gt;&lt;br /&gt;
With the converter you have:&amp;lt;br /&amp;gt;&lt;br /&gt;
Latitude=40.769722&amp;lt;br /&amp;gt;&lt;br /&gt;
Longitude=74.644028&amp;lt;br /&amp;gt;&lt;br /&gt;
If in latitude you read S (it's mean South) you must use minus sign&amp;lt;br /&amp;gt;&lt;br /&gt;
If in longitude you read W (it's mean West) you must use the following formula:&amp;lt;br /&amp;gt;&lt;br /&gt;
CorrectLong=360-Long&amp;lt;br /&amp;gt;&lt;br /&gt;
So the correct coordinates to be use are:&amp;lt;br /&amp;gt;&lt;br /&gt;
Latitude= -40.769722&amp;lt;br /&amp;gt;&lt;br /&gt;
Longitude= 285.355972 (360-74.644028)&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Compare of different DTM ====&lt;br /&gt;
Below is a comparison between different DTM (magnified for best viewing)&lt;br /&gt;
[[File:NASA_IMG_Importer_UI_Compare.jpg|left|thumb|615px|Magnify version of Tycho crater at different Map resolution. Click for full version]]&lt;br /&gt;
{{clr}}&lt;br /&gt;
=== Some trick for speed up in 3Dview ===&lt;br /&gt;
Before you start the import, change the View port shading to Bounding box. After the import set in User preference system VBOs and now change View port sahding to Object mode. If you have a Series 400 GeForce video card, before to change VBOs, uncheck Double side in Object data. Last thing: if you change in Sculpt mode, you can gain some FPS.&lt;br /&gt;
=== Some example ===&lt;br /&gt;
&amp;lt;vimeo width=&amp;quot;640&amp;quot; height=&amp;quot;360&amp;quot; &amp;gt;11281224&amp;lt;/vimeo&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;vimeo width=&amp;quot;640&amp;quot; height=&amp;quot;360&amp;quot; &amp;gt;13215159&amp;lt;/vimeo&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;vimeo width=&amp;quot;640&amp;quot; height=&amp;quot;360&amp;quot; &amp;gt;21869498&amp;lt;/vimeo&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;ValterVB</name></author>
		
	</entry>
</feed>