<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lOOney dOOdle &#187; 3D</title>
	<atom:link href="http://www.looneydoodle.com/tag/3d/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.looneydoodle.com</link>
	<description>Doodles, art, life and much more...</description>
	<lastBuildDate>Sat, 31 Dec 2011 01:47:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Building multiple buildings from a map inside maya</title>
		<link>http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/</link>
		<comments>http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 20:38:52 +0000</pubDate>
		<dc:creator>lOOney dOOdle</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Betaville]]></category>
		<category><![CDATA[buildings]]></category>
		<category><![CDATA[maya]]></category>
		<category><![CDATA[virtual world]]></category>

		<guid isPermaLink="false">http://www.looneydoodle.com/?p=286</guid>
		<description><![CDATA[<strong>Tools needed:</strong>

<a href="http://http://www.adobe.com/products/photoshop/family/">Adobe Photoshop</a><br />
<a href="http://usa.autodesk.com/maya/">Autodesk Maya</a>
<a href="http://maps.google.com">Google Maps</a>
<a href="http://earth.google.com">Google Earth</a>

<strong>What we will be making</strong>

We will learn to build a whole city block from ground up inside Maya. There are no textures involved in this tutorial, I ll do another tutorial later for texturing the buildings. This tutorial is especially for the benefit of 3D artists who need to get a lot of buildings or shapes designed in a small time. Here is a screenshot of the final product for this tutorial.

<img class="size-medium wp-image-348" title="Screen shot 2011-02-27 at 3.27.40 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.27.40-PM-300x244.png" alt="" width="300" height="244" />]]></description>
			<content:encoded><![CDATA[<p><strong>Tools needed:</strong></p>
<p><a href="http://http://www.adobe.com/products/photoshop/family/">Adobe Photoshop</a><br />
<a href="http://usa.autodesk.com/maya/">Autodesk Maya</a><br />
<a href="http://maps.google.com">Google Maps</a><br />
<a href="http://earth.google.com">Google Earth</a></p>
<p><strong>Lets get started</strong></p>
<p>For this post, i am using the map data from NYC&#8217;s gis website. Here is the link http://gis.nyc.gov/doitt/nycitymap/</p>
<p>The first thing you need to do is decide the area on the map you are going to work on. I am going to start small, just a block from downtown brooklyn for now. My ultimate motive for doing this is to publish it inside <a href="http://www.betaville.net">BetaVille</a>, the project i am working for as a 3D Artist right now. So, here is the block. All you need is a screenshot of the block.</p>
<div id="attachment_287" class="wp-caption aligncenter" style="width: 256px"><a rel="attachment wp-att-287" href="http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/block/"><img class="size-medium wp-image-287" title="Block Screenshot" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Block-246x300.png" alt="" width="246" height="300" /></a><p class="wp-caption-text">Screenshot for building the buildings ground up.</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now, Open this up in Photoshop. We are going to use the pen tool to pen on top of the edges of the buildings.</p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 304px"><a rel="attachment wp-att-296" href="http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/photoshopblock/"><img class="size-medium wp-image-296" title="PHotoshopBlock" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PHotoshopBlock-294x300.png" alt="" width="294" height="300" /></a><p class="wp-caption-text">Open it up in photoshop</p></div>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 37px"><a rel="attachment wp-att-297" href="http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/pentool/"><img class="size-full wp-image-297" title="PenTool" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PenTool.png" alt="" width="27" height="26" /></a><p class="wp-caption-text">Select the Pen Tool</p></div>
<div id="attachment_298" class="wp-caption aligncenter" style="width: 266px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PhotoshopAfterPen.png"><img class="size-full wp-image-298" title="PhotoshopAfterPen" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PhotoshopAfterPen.png" alt="" width="256" height="241" /></a><p class="wp-caption-text">Pen on top of the building edges</p></div>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-299" href="http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/exportpathstoillustrator/"><img class="size-medium wp-image-299" title="ExportPathsToIllustrator" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ExportPathsToIllustrator-300x102.png" alt="" width="300" height="102" /></a><p class="wp-caption-text">Export the paths to illustrator</p></div>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-300" href="http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/exportoptions/"><img class="size-medium wp-image-300" title="ExportOptions" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ExportOptions-300x77.png" alt="" width="300" height="77" /></a><p class="wp-caption-text">Export Options</p></div>
<p><span id="more-286"></span></p>
<p>Now lets open up Maya and import the illustrator file into the scene. Notice that the plane is vertical to your grid. This happens when your up axis is Y. Now Select all of it and group (Command + G on a mac and Ctrl + G  on windows). Rotate the X-Axis to a -90. It should now have nicely lined up with your grid.</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-2.25.14-PM.png"><img class="size-medium wp-image-307" title="Import" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-2.25.14-PM-300x291.png" alt="" width="300" height="291" /></a><p class="wp-caption-text">Import the file</p></div>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Imported.png"><img class="size-medium wp-image-308" title="Imported" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Imported-300x290.png" alt="" width="300" height="290" /></a><p class="wp-caption-text">Looks vertical to the grid</p></div>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/GroupAndRotate.png"><img class="size-medium wp-image-309" title="GroupAndRotate" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/GroupAndRotate-300x255.png" alt="" width="300" height="255" /></a><p class="wp-caption-text">Group them together and rotate</p></div>
<p>Now we switch the mode to surfaces and then hit Surfaces-&gt;Planar on the menu. Make sure the settings are the same as in the screenshot below by clicking on the little box next to Planar. After you make the planar mesh, duplicate it (Command + D on mac and Ctrl + D on win). Now hit the &#8220;w&#8221; key and move the duplicated mesh up till you can see the initial mesh clearly below it. Now select the initial mesh and delete it.</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 132px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ChangeToSurfaces.png"><img class="size-full wp-image-310" title="ChangeToSurfaces" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ChangeToSurfaces.png" alt="" width="122" height="158" /></a><p class="wp-caption-text">Change mode to surfaces</p></div>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ClickPlanar.png"><img class="size-medium wp-image-311" title="ClickPlanar" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ClickPlanar-300x179.png" alt="" width="300" height="179" /></a><p class="wp-caption-text">Use the Planar tool. Check settings with the screenshot before you use this tool.</p></div>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PlanarAttributes.png"><img class="size-medium wp-image-312" title="PlanarAttributes" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PlanarAttributes-300x224.png" alt="" width="300" height="224" /></a><p class="wp-caption-text">Settings for the Planar tool</p></div>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/DuplicateAndMoveUp.png"><img class="size-medium wp-image-313" title="DuplicateAndMoveUp" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/DuplicateAndMoveUp-300x166.png" alt="" width="300" height="166" /></a><p class="wp-caption-text">Duplicate the new mesh and move it up</p></div>
<div id="attachment_314" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Select-the-bottom-one-and-Delete-it.png"><img class="size-medium wp-image-314" title="Select the bottom one and Delete it" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Select-the-bottom-one-and-Delete-it-300x226.png" alt="" width="300" height="226" /></a><p class="wp-caption-text">Select the Old mesh and delete it.</p></div>
<p>Now you have a nice basic outline of the buildings in the new mesh. Center pivot and move it to the origin on the grid. Switch the mode to Polygons and select Edit Mesh -&gt; Extrude on the menu. Select the small box near it to check the settings and match it with the settings in the screenshot. Now you will see the extrude mesh arrows, all you have to do is select the Y axis arrow and pull it up to give your buildings some height. Hit &#8220;5&#8243; to view it in the textured mode.</p>
<div id="attachment_315" class="wp-caption aligncenter" style="width: 174px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Change-to-Polygons.png"><img class="size-full wp-image-315" title="Change to Polygons" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Change-to-Polygons.png" alt="" width="164" height="203" /></a><p class="wp-caption-text">Change Mode to Polygons</p></div>
<div id="attachment_316" class="wp-caption aligncenter" style="width: 220px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ModifyCenterPivot.png"><img class="size-medium wp-image-316" title="ModifyCenterPivot" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ModifyCenterPivot-210x300.png" alt="" width="210" height="300" /></a><p class="wp-caption-text">Center the pivot on the new mesh</p></div>
<div id="attachment_317" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PressXandMoveTocenter.png"><img class="size-medium wp-image-317" title="PressXandMoveTocenter" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/PressXandMoveTocenter-300x184.png" alt="" width="300" height="184" /></a><p class="wp-caption-text">Move mesh to the origin. you can hold &quot;X&quot; to make it stick to the grid</p></div>
<div id="attachment_320" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ExtrudeSelect.png"><img class="size-medium wp-image-320" title="ExtrudeSelect" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/ExtrudeSelect-300x107.png" alt="" width="300" height="107" /></a><p class="wp-caption-text">Select the options for Extrude on the menu</p></div>
<div id="attachment_321" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Extrude-Options.png"><img class="size-medium wp-image-321" title="Extrude Options" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Extrude-Options-300x206.png" alt="" width="300" height="206" /></a><p class="wp-caption-text">SEttings for Extrude</p></div>
<div id="attachment_322" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/AfterExtrude.png"><img class="size-medium wp-image-322" title="AfterExtrude" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/AfterExtrude-300x198.png" alt="" width="300" height="198" /></a><p class="wp-caption-text">Right after you select extrude, this is how it looks. Hold the blue arrow and drag it up to add height to your mesh.</p></div>
<div id="attachment_323" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/DragItUp.png"><img class="size-medium wp-image-323" title="DragItUp" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/DragItUp-300x286.png" alt="" width="300" height="286" /></a><p class="wp-caption-text">Finish Adding height</p></div>
<div id="attachment_324" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Hit5.png"><img class="size-medium wp-image-324" title="Hit5" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Hit5-300x247.png" alt="" width="300" height="247" /></a><p class="wp-caption-text">Press &quot;5&quot; on the keyboard to view the textured version</p></div>
<p><!--more--></p>
<p>Now you have the basic figure of the buildings and some height as well. What you dont know is the actual height of the buildings. Lets do some google maps exploring and figure out the height. Pull up the block on google street view.</p>
<div id="attachment_325" class="wp-caption aligncenter" style="width: 169px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/OngoogleMaps.png"><img class="size-full wp-image-325" title="OngoogleMaps" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/OngoogleMaps.png" alt="" width="159" height="184" /></a><p class="wp-caption-text">Look up on google maps</p></div>
<div id="attachment_326" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/StreetView.png"><img class="size-medium wp-image-326" title="StreetView" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/StreetView-200x300.png" alt="" width="200" height="300" /></a><p class="wp-caption-text">Look into street view</p></div>
<p>Now, the buildings in Brooklyn are roughly 12 feet high per floor. Using this, we can pretty much calculate the height of the building. You can also look for detailed info on the gis data from the city&#8217;s website. For our purposes we are just going to go with the 12 feet per floor assumption.</p>
<div id="attachment_327" class="wp-caption aligncenter" style="width: 215px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/3andHalfGFloorsAbout42feet.png"><img class="size-medium wp-image-327" title="3andHalfGFloorsAbout42feet" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/3andHalfGFloorsAbout42feet-205x300.png" alt="" width="205" height="300" /></a><p class="wp-caption-text">3 and a half floors, roughly 42 feet</p></div>
<div id="attachment_328" class="wp-caption aligncenter" style="width: 120px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/6floorsAbout72feet.png"><img class="size-medium wp-image-328" title="6floorsAbout72feet" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/6floorsAbout72feet-110x300.png" alt="" width="110" height="300" /></a><p class="wp-caption-text">6 floors , so roughly 72 feet</p></div>
<div id="attachment_329" class="wp-caption aligncenter" style="width: 165px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Around-10-Floors-120-feet.png"><img class="size-medium wp-image-329" title="Around 10 Floors 120 feet" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Around-10-Floors-120-feet-155x300.png" alt="" width="155" height="300" /></a><p class="wp-caption-text">Around 10 floors, so 120 feet</p></div>
<p>Now lets go back into maya with this newly founded info and finish up the buildings. My grid is set to one line every 12 feet just to keep things simple.</p>
<div id="attachment_330" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/MenuGrid.png"><img class="size-medium wp-image-330" title="MenuGrid" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/MenuGrid-300x90.png" alt="" width="300" height="90" /></a><p class="wp-caption-text">Set the grid settings</p></div>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/GridSettings1.png"><img class="size-medium wp-image-332" title="GridSettings" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/GridSettings1-300x275.png" alt="" width="300" height="275" /></a><p class="wp-caption-text">Settings for the grid</p></div>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/MenuSeparrate.png"><img class="size-medium wp-image-333" title="MenuSeparrate" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/MenuSeparrate-300x88.png" alt="" width="300" height="88" /></a><p class="wp-caption-text">Select the mesh and hit Mesh -&gt; Separate</p></div>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 278px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Separate-Meshes.png"><img class="size-medium wp-image-334" title="Separate Meshes" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Separate-Meshes-268x300.png" alt="" width="268" height="300" /></a><p class="wp-caption-text">Meshes separated</p></div>
<div id="attachment_335" class="wp-caption aligncenter" style="width: 295px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/120FeetBuilding.png"><img class="size-medium wp-image-335" title="120FeetBuilding" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/120FeetBuilding-285x300.png" alt="" width="285" height="300" /></a><p class="wp-caption-text">Select the 120 feet building, Press &quot;R&quot; on the keyboard and pull up the height to 120 feet</p></div>
<div id="attachment_336" class="wp-caption aligncenter" style="width: 261px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/72FeetBuilding.png"><img class="size-medium wp-image-336" title="72FeetBuilding" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/72FeetBuilding-251x300.png" alt="" width="251" height="300" /></a><p class="wp-caption-text">Similarly for the 72 feet building</p></div>
<div id="attachment_337" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/42FeetBuildings.png"><img class="size-medium wp-image-337" title="42FeetBuildings" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/42FeetBuildings-300x199.png" alt="" width="300" height="199" /></a><p class="wp-caption-text">And the 42 foot buildings, do them together.</p></div>
<p><!--more--></p>
<p>Now lets open up google earth to find out how big the block is. this is the final step to finish up the whole block. Use the measuring tool in google earth to measure the distance. Click on one corner and then click on the next corner to get the distance between the corners. change the scale to feet.</p>
<div id="attachment_338" class="wp-caption aligncenter" style="width: 67px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/EarthScaleTool.png"><img class="size-full wp-image-338" title="EarthScaleTool" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/EarthScaleTool.png" alt="" width="57" height="50" /></a><p class="wp-caption-text">Google Earth Scale tool</p></div>
<div id="attachment_339" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/203FeetLength.png"><img class="size-medium wp-image-339" title="203FeetLength" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/203FeetLength-300x187.png" alt="" width="300" height="187" /></a><p class="wp-caption-text">Length of the block is around 202 feet</p></div>
<div id="attachment_340" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/202FeetWidth.png"><img class="size-medium wp-image-340" title="202FeetWidth" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/202FeetWidth-300x126.png" alt="" width="300" height="126" /></a><p class="wp-caption-text">The width is 202 feet as well. A nice square block!</p></div>
<p>Now go back into maya and select everything. Adjust the mesh so that they line up on one edge to the center of the grid. You can pull the pivot to one corner by pressing (Fn + left on the mac) and pulling the pivot to where you want it. After this, just resize the length and width to 202 feet and we have a nice block from downtown brooklyn all built from ground up.</p>
<div id="attachment_341" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.05-PM.png"><img class="size-medium wp-image-341" title="Screen shot 2011-02-27 at 3.24.05 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.05-PM-300x230.png" alt="" width="300" height="230" /></a><p class="wp-caption-text">Switch to Top View</p></div>
<div id="attachment_342" class="wp-caption aligncenter" style="width: 163px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.22-PM.png"><img class="size-full wp-image-342" title="Screen shot 2011-02-27 at 3.24.22 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.22-PM.png" alt="" width="153" height="116" /></a><p class="wp-caption-text">Move Pivot Manually (Fn + Left)</p></div>
<div id="attachment_343" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.31-PM.png"><img class="size-medium wp-image-343" title="Screen shot 2011-02-27 at 3.24.31 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.31-PM-300x200.png" alt="" width="300" height="200" /></a><p class="wp-caption-text">Move Pivot to the center of the grid</p></div>
<div id="attachment_344" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.54-PM.png"><img class="size-medium wp-image-344" title="Screen shot 2011-02-27 at 3.24.54 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.24.54-PM-300x190.png" alt="" width="300" height="190" /></a><p class="wp-caption-text">Rotate the mesh to line up with the grid.</p></div>
<div id="attachment_345" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.25.19-PM.png"><img class="size-medium wp-image-345" title="Screen shot 2011-02-27 at 3.25.19 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.25.19-PM-300x147.png" alt="" width="300" height="147" /></a><p class="wp-caption-text">Freeze transformations</p></div>
<div id="attachment_346" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.25.30-PM.png"><img class="size-medium wp-image-346" title="Screen shot 2011-02-27 at 3.25.30 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.25.30-PM-300x210.png" alt="" width="300" height="210" /></a><p class="wp-caption-text">Freeze transformations resets the transformations of the mesh to 0,0,0</p></div>
<div id="attachment_347" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.27.24-PM.png"><img class="size-medium wp-image-347" title="Screen shot 2011-02-27 at 3.27.24 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.27.24-PM-300x234.png" alt="" width="300" height="234" /></a><p class="wp-caption-text">Resize the buildings</p></div>
<div id="attachment_348" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.27.40-PM.png"><img class="size-medium wp-image-348" title="Screen shot 2011-02-27 at 3.27.40 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.27.40-PM-300x244.png" alt="" width="300" height="244" /></a><p class="wp-caption-text">A whole block from ground up. Thats it Folks!</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Edit:<br />
After you complete all of this, go into the outliner and pull out the meshes from the group using the middle mouse button. This makes them individual meshes. Cheers.</p>
<div id="attachment_349" class="wp-caption aligncenter" style="width: 161px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.33.31-PM.png"><img class="size-medium wp-image-349" title="Screen shot 2011-02-27 at 3.33.31 PM" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-3.33.31-PM-151x300.png" alt="" width="151" height="300" /></a><p class="wp-caption-text">Pull em outta there with the middle mouse button.</p></div>
<p>&nbsp;</p>
<p><strong>Feel free to comment and ask questions.</strong></p>
<p><strong>Credits:</strong><br />
<a href="http://www.ashwinramesh.com">Ashwin Ramesh</a> for figuring out how to do this. </p>
<fb:like href=http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/ font=></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.looneydoodle.com/2011/02/building-multiple-buildings-from-a-map-inside-maya/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLAR Manager, Multi Marker Multi Collada</title>
		<link>http://www.looneydoodle.com/2010/04/flar-manager-multi-marker-multi-collada/</link>
		<comments>http://www.looneydoodle.com/2010/04/flar-manager-multi-marker-multi-collada/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 00:13:44 +0000</pubDate>
		<dc:creator>lOOney dOOdle</dc:creator>
				<category><![CDATA[College]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3D Studio]]></category>
		<category><![CDATA[AR Toolkit]]></category>
		<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[FLARManager]]></category>
		<category><![CDATA[Marker]]></category>

		<guid isPermaLink="false">http://www.looneydoodle.com/?p=173</guid>
		<description><![CDATA[Marker
I ve been toying around with Augmented Reality a lot lately. I came across FLARManager which is the easiest way to implement AR. Somehow i haven&#8217;t found any code out there till now that displays multiple collada files on multiple markers. So, here is my implementation of the concept.
package  {
import com.transmote.flar.FLARManager;
import com.transmote.flar.marker.FLARMarker;
import com.transmote.flar.marker.FLARMarkerEvent;
import com.transmote.flar.utils.geom.FLARPVGeomUtils;
import [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_182" class="wp-caption alignleft" style="width: 310px"><a href="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2010/04/patt001.png"><img class="size-medium wp-image-182 " title="patt001" src="http://www.looneydoodle.com/looneydoodle.com/wp-content/uploads/2010/04/patt001-300x300.png" alt="" width="300" height="300" /></a><p class="wp-caption-text">Marker</p></div>
<p>I ve been toying around with Augmented Reality a lot lately. I came across FLARManager which is the easiest way to implement AR. Somehow i haven&#8217;t found any code out there till now that displays multiple collada files on multiple markers. So, here is my implementation of the concept.</p>
<blockquote><p><code>package  {</code></p>
<p><code>import com.transmote.flar.FLARManager;</code></p>
<p><code>import com.transmote.flar.marker.FLARMarker;</p>
<p>import com.transmote.flar.marker.FLARMarkerEvent;</p>
<p></code><code>import com.transmote.flar.utils.geom.FLARPVGeomUtils;</code></p>
<p><code>import flash.display.Sprite;</code></p>
<p><code> </code><code>import flash.events.Event;</code></p>
<p><code>import org.libspark.flartoolkit.support.pv3d.FLARCamera3D;</code></p>
<p><code>import org.papervision3d.lights.PointLight3D;</code></p>
<p><code>import org.papervision3d.objects.DisplayObject3D;</code></p>
<p><code>import org.papervision3d.objects.parsers.DAE;</p>
<p>import org.papervision3d.render.LazyRenderEngine;</p>
<p>import org.papervision3d.scenes.Scene3D;</p>
<p>import org.papervision3d.view.Viewport3D;</p>
<p>public class MultiMarkerMultiDae extends Sprite {</p>
<p>private var flarManager:FLARManager;</p>
<p>private var scene3D:Scene3D;</p>
<p>private var camera3D:FLARCamera3D;</p>
<p>private var viewport3D:Viewport3D;</p>
<p>private var renderEngine:LazyRenderEngine;</p>
<p>private var pointLight3D:PointLight3D;</p>
<p>private var activeMarker1:FLARMarker;</p>
<p>private var activeMarker2:FLARMarker;</p>
<p>private var activeMarker3:FLARMarker;</p>
<p>private var activeMarker:FLARMarker;</p>
<p>private var modelContainer:DisplayObject3D;</p>
<p>private var modelContainer1:DisplayObject3D;</p>
<p>private var modelContainer3:DisplayObject3D;</p>
<p>private var markerId:int;</p>
<p>public function MultiMarkerMultiDae ()</p>
<p>{</p>
<p>// pass the path to the FLARManager xml config file into the FLARManager constructor.</p>
<p>// FLARManager creates and uses a FLARCameraSource by default.</p>
<p>// the image from the first detected camera will be used for marker detection.</p>
<p>this.flarManager = new FLARManager("flar/flarConfig.xml");</p>
<p>// add FLARManager.flarSource to the display list to display the video capture.</p>
<p>this.addChild(Sprite(this.flarManager.flarSource));</p>
<p>// begin listening for FLARMarkerEvents.</p>
<p>this.flarManager.addEventListener(FLARMarkerEvent.MARKER_ADDED, this.onMarkerAdded);</p>
<p>this.flarManager.addEventListener(FLARMarkerEvent.MARKER_UPDATED, this.onMarkerUpdated);</p>
<p>this.flarManager.addEventListener(FLARMarkerEvent.MARKER_REMOVED, this.onMarkerRemoved);</p>
<p>// wait for FLARManager to initialize before setting up Papervision3D environment.</p>
<p>this.flarManager.addEventListener(Event.INIT, this.onFlarManagerInited);</p>
<p>}</p>
<p>private function onFlarManagerInited (evt:Event) :void</p>
<p>{</p>
<p>this.flarManager.removeEventListener(Event.INIT, this.onFlarManagerInited);</p>
<p>this.scene3D = new Scene3D();</p>
<p>// initialize FLARCamera3D with parsed camera parameters.</p>
<p>this.camera3D = new FLARCamera3D(this.flarManager.cameraParams);</p>
<p>this.viewport3D = new Viewport3D(this.stage.stageWidth, this.stage.stageHeight);</p>
<p>this.addChild(this.viewport3D);</p>
<p>this.renderEngine = new LazyRenderEngine(this.scene3D, this.camera3D, this.viewport3D);</p>
<p>this.pointLight3D = new PointLight3D();</p>
<p>this.pointLight3D.x = 1000;</p>
<p>this.pointLight3D.y = 1000;</p>
<p>this.pointLight3D.z = -1000;</p>
<p>// load the model.</p>
<p>// (this model has to be scaled and rotated to fit the marker; every model is different.)</p>
<p>var model1:DAE = new DAE(true, "model1", true);</p>
<p>model1.load("assets/model4.dae");</p>
<p>model1.rotationX = 0;</p>
<p>model1.rotationY = 0;</p>
<p>model1.rotationZ = 0;</p>
<p>model1.scale = 10;</p>
<p>// load the model.</p>
<p>// (this model has to be scaled and rotated to fit the marker; every model is different.)</p>
<p>var model2:DAE = new DAE(true, "model2", true);</p>
<p>model2.load("assets/model4.dae");</p>
<p>trace("model4 loaded");</p>
<p>model2.rotationX = 0;</p>
<p>model2.rotationY=  0;</p>
<p>model2.rotationZ = 0;</p>
<p>model2.scale = 10;</p>
<p>// load the model.</p>
<p>// (this model has to be scaled and rotated to fit the marker; every model is different.)</p>
<p>var model3:DAE = new DAE(true, "model3", true);</p>
<p>model3.load("assets/model4.dae");</p>
<p>model3.rotationX = 0;</p>
<p>model3.rotationY=  0;</p>
<p>model3.rotationZ = 0;</p>
<p>model3.scale = 10;</p>
<p>//              // create a container for the model, that will accept matrix transformations.</p>
<p>// create a container for the model, that will accept matrix transformations.</p>
<p>this.modelContainer = new DisplayObject3D();</p>
<p>this.modelContainer.addChild(model1);</p>
<p>this.modelContainer.visible = false;</p>
<p>this.scene3D.addChild(this.modelContainer);</p>
<p>this.modelContainer1 = new DisplayObject3D();</p>
<p>this.modelContainer1.addChild(model2);</p>
<p>this.modelContainer1.visible = false;</p>
<p>this.scene3D.addChild(this.modelContainer1);</p>
<p>this.modelContainer3 = new DisplayObject3D();</p>
<p>this.modelContainer3.addChild(model3);</p>
<p>this.modelContainer3.visible = false;</p>
<p>this.scene3D.addChild(this.modelContainer3);</p>
<p>//------------------------------------------------------------------------- ---------</p>
<p>this.addEventListener(Event.ENTER_FRAME, this.onEnterFrame);</p>
<p>}</p>
<p>private function onMarkerAdded (evt:FLARMarkerEvent) :void</p>
<p>{</p>
<p>trace("["+evt.marker.patternId+"] added");</p>
<p>if(evt.marker.patternId == 1)</p>
<p>{</p>
<p>trace("Pattern 1 Added");</p>
<p>markerAdded(1);</p>
<p>this.activeMarker1 = evt.marker;</p>
<p>}</p>
<p>if(evt.marker.patternId == 2)</p>
<p>{</p>
<p>trace("Pattern 2 Added");</p>
<p>markerAdded(2);</p>
<p>this.activeMarker2 = evt.marker;</p>
<p>}</p>
<p>if(evt.marker.patternId == 3)</p>
<p>{</p>
<p>trace("Pattern 3 Added");</p>
<p>markerAdded(3);</p>
<p>this.activeMarker3 = evt.marker;</p>
<p>}</p>
<p>this.activeMarker = evt.marker;</p>
<p>}</p>
<p>private function onMarkerUpdated (evt:FLARMarkerEvent) :void</p>
<p>{</p>
<p>trace("["+evt.marker.patternId+"] updated");</p>
<p>if(evt.marker.patternId == 1)</p>
<p>{</p>
<p>trace("Pattern 1 Updated");</p>
<p>markerAdded(1);</p>
<p>this.activeMarker1 = evt.marker;</p>
<p>}</p>
<p>if(evt.marker.patternId == 2)</p>
<p>{</p>
<p>trace("Pattern 2 Updated");</p>
<p>markerAdded(2);</p>
<p>this.activeMarker2 = evt.marker;</p>
<p>}</p>
<p>if(evt.marker.patternId == 3)</p>
<p>{</p>
<p>trace("Pattern 3 Updated");</p>
<p>markerAdded(3);</p>
<p>this.activeMarker3 = evt.marker;</p>
<p>}</p>
<p>}</p>
<p>private function onMarkerRemoved (evt:FLARMarkerEvent) :void {</p>
<p>trace("["+evt.marker.patternId+"] removed");</p>
<p>if(evt.marker.patternId == 1)</p>
<p>{</p>
<p>trace("Pattern 1 Removed");</p>
<p>markerRemoved(1);</p>
<p>}</p>
<p>if(evt.marker.patternId == 2)</p>
<p>{</p>
<p>trace("Pattern 2 Removed");</p>
<p>markerRemoved(2);</p>
<p>}</p>
<p>if(evt.marker.patternId == 3)</p>
<p>{</p>
<p>trace("Pattern 3 Removed");</p>
<p>markerRemoved(3);</p>
<p>}</p>
<p>this.activeMarker = null;</p>
<p>this.activeMarker1 = null;</p>
<p>this.activeMarker2 = null;</p>
<p>this.activeMarker3 = null;</p>
<p>}</p>
<p>private function onEnterFrame (evt:Event) :void {</p>
<p>// apply the FLARToolkit transformation matrix to the Cube.</p>
<p>if (this.activeMarker) {</p>
<p>this.modelContainer.transform =    FLARPVGeomUtils.convertFLARMatrixToPVMatrix(this.activeMarker.transformMatrix);</p>
<p>}</p>
<p>if (this.activeMarker1) {</p>
<p>this.modelContainer.transform =    FLARPVGeomUtils.convertFLARMatrixToPVMatrix(this.activeMarker1.transformMatrix);</p>
<p>}</p>
<p>if (this.activeMarker2) {</p>
<p>this.modelContainer1.transform = FLARPVGeomUtils.convertFLARMatrixToPVMatrix(this.activeMarker2.transformMatrix);</p>
<p>}</p>
<p>if (this.activeMarker3) {</p>
<p>this.modelContainer3.transform = FLARPVGeomUtils.convertFLARMatrixToPVMatrix(this.activeMarker3.transformMatrix);</p>
<p>}</p>
<p>//            // apply the FLARToolkit transformation matrix to the Cube.</p>
<p>this.renderEngine.render();</p>
<p>}</p>
<p>//EVENTS FOR ADDED MARKER</p>
<p>private function markerAdded(markerId:int):void</p>
<p>{</p>
<p>trace(markerId);</p>
<p>var x:int = markerId;</p>
<p>switch(x)</p>
<p>{</p>
<p>case 1:</p>
<p>{</p>
<p>trace("1 Yeah");</p>
<p>if(modelContainer1.visible==false)</p>
<p>{</p>
<p>modelContainer1.visible=true;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>break;</p>
<p>}</p>
<p>case 2:</p>
<p>{</p>
<p>if(modelContainer.visible==false)</p>
<p>{</p>
<p>modelContainer.visible=true;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>break;</p>
<p>}</p>
<p>case 3:</p>
<p>{</p>
<p>trace("1 Yeah");</p>
<p>if(modelContainer3.visible==false)</p>
<p>{</p>
<p>modelContainer3.visible=true;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>break;</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>private function markerRemoved(markerId:int):void</p>
<p>{</p>
<p>var x:int = markerId;</p>
<p>switch(x)</p>
<p>{</p>
<p>case 1:</p>
<p>{</p>
<p>if(modelContainer1.visible==true)</p>
<p>{</p>
<p>modelContainer1.visible=false;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>break;</p>
<p>}</p>
<p>case 2:</p>
<p>{</p>
<p>if(modelContainer.visible==true)</p>
<p>{</p>
<p>modelContainer.visible=false;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>break;</p>
<p>}</p>
<p>}</p>
<p>case 3:</p>
<p>{</p>
<p>if(modelContainer3.visible==true)</p>
<p>{</p>
<p>modelContainer3.visible=false;</p>
<p>break;</p>
<p>}</p>
<p>else</p>
<p>break;</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p></code></p>
<p><code>}</code></p>
<p>Just link back to me if you use this code. Here is the example of how the code works. Download the marker <a href="http://www.looneydoodle.com/AugmentedReality/flar/patterns/patterns01.pdf">here</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.looneydoodle.com/AugmentedReality/launchMultiMarker.swf" /><embed type="application/x-shockwave-flash" width="640" height="480" src="http://www.looneydoodle.com/AugmentedReality/launchMultiMarker.swf"></embed></object></p></blockquote>
<p>If it does not load, click <a href="http://www.looneydoodle.com/AugmentedReality/launchMultiMarker.swf">here</a>.</p>
<fb:like href=http://www.looneydoodle.com/2010/04/flar-manager-multi-marker-multi-collada/ font=></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.looneydoodle.com/2010/04/flar-manager-multi-marker-multi-collada/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

