<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Nomenclature on scenes]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=889&amp;type=atom" />
	<updated>2018-09-18T12:58:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=889</id>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3934#p3934" />
			<content type="html"><![CDATA[<p>Honestly, I do not even know what to say.<br />Here&#039;s a video of how to create and use scripts:<br /><a href="https://www.youtube.com/watch?v=XsyS4ANO0sE">https://www.youtube.com/watch?v=XsyS4ANO0sE</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-18T12:58:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3934#p3934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3929#p3929" />
			<content type="html"><![CDATA[<p>I have tried but it says script can not be attached due to monobehavior etc.</p><p>Similarly we want labels for place names too.</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-18T12:44:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3929#p3929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3927#p3927" />
			<content type="html"><![CDATA[<p>You need to attach this script to every building for which you want to display labels.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-18T12:42:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3927#p3927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3923#p3923" />
			<content type="html"><![CDATA[<p>Should&nbsp; I attach this script on building post processing??&nbsp; Sorry,&nbsp; m very new to unity</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-17T17:41:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3923#p3923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3917#p3917" />
			<content type="html"><![CDATA[<p>Something like that:<br /></p><div class="codebox"><pre><code>using System.Linq;
using InfinityCode.RealWorldTerrain.OSM;
using UnityEngine;

public class ShowBiuldingAddress : MonoBehaviour
{
    public float yOffset = 40;
    public Font font;
    public int fontSize= 16;
    private GameObject textGO;

    private void Start ()
    {
        RealWorldTerrainOSMMeta meta = GetComponent&lt;RealWorldTerrainOSMMeta&gt;();
        if (meta == null || font == null)
        {
            Destroy(this);
            return;
        }

        RealWorldTerrainOSMMetaTag nameTag = meta.metaInfo.FirstOrDefault(m =&gt; m.title == &quot;name&quot;);
        if (nameTag == null)
        {
            Destroy(this);
            return;
        }

        textGO = new GameObject(&quot;Text&quot;);
        textGO.transform.SetParent(transform, false);
        textGO.transform.localPosition += new Vector3(0, yOffset, 0);
        TextMesh textMesh = textGO.AddComponent&lt;TextMesh&gt;();
        textMesh.alignment = TextAlignment.Center;
        textMesh.anchor = TextAnchor.MiddleCenter;
        textMesh.font = font;
        textMesh.fontSize = fontSize;
        textMesh.text = nameTag.info;
    }

    private void Update()
    {
        textGO.transform.LookAt(Camera.main.transform);
        textGO.transform.Rotate(Vector3.up, 180);
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-16T00:52:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3917#p3917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3916#p3916" />
			<content type="html"><![CDATA[<p>Runtime</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-14T12:38:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3916#p3916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3914#p3914" />
			<content type="html"><![CDATA[<p>I asked you about something else:<br />Do you want to show labels runtime or in the scene view?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-14T11:36:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3914#p3914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3912#p3912" />
			<content type="html"><![CDATA[<p>Yes. Labels for building or places.</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-14T01:47:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3912#p3912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3909#p3909" />
			<content type="html"><![CDATA[<p>Oops. I for some reason thought that you are asking about Online Maps.</p><p>Do you want to show labels runtime or in the scene view?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-13T17:24:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3909#p3909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3906#p3906" />
			<content type="html"><![CDATA[<p>I mean to say that suppose we have osm file of buildings . now i want to put labels on building using information available in osm file ; how to do that in RWT?</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-13T04:39:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3906#p3906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3904#p3904" />
			<content type="html"><![CDATA[<p>If you mean buildings painted in tiles, then most likely you&#039;d better use overlay.<br />If you mean 3D buildings, use TextMesh.<br /><a href="https://docs.unity3d.com/ScriptReference/TextMesh.html">https://docs.unity3d.com/ScriptReference/TextMesh.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-12T17:46:31Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3904#p3904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3903#p3903" />
			<content type="html"><![CDATA[<p>Hello Alex, <br />Here I want to overly&nbsp; building&nbsp; names over buildings</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-12T17:38:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3903#p3903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3897#p3897" />
			<content type="html"><![CDATA[<p>Hello.</p><p>It depends on the complexity of the shape.<br />If the shape is relatively simple, just draw it using a line or polygon.<br />If the shape is complex, you need to rasterize it, divide it into tiles (for example using MapTiler), and use it as overlay.<br /><a href="http://infinity-code.com/atlas/online-maps/pages/TilesetMapTilerOverlayExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-09-12T16:31:03Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3897#p3897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Nomenclature on scenes]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3890#p3890" />
			<content type="html"><![CDATA[<p>Hello Alex, </p><p>How do we put shape file or osm data of nomenclature in to the scene.&nbsp; </p><p>Regards<br />Jai</p>]]></content>
			<author>
				<name><![CDATA[jaisingla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=789</uri>
			</author>
			<updated>2018-09-12T02:33:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3890#p3890</id>
		</entry>
</feed>
