<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - 3D representation of a graph with maratis]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=881</link>
		<description><![CDATA[The most recent posts in 3D representation of a graph with maratis.]]></description>
		<lastBuildDate>Thu, 28 Nov 2013 16:54:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6035#p6035</link>
			<description><![CDATA[<p>Thanks guys <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /> gonna make some experiments with this</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Thu, 28 Nov 2013 16:54:25 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6035#p6035</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6032#p6032</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Pretty cool ! By the way, what have you used to make the spheres looks like that ? i like that look !</p></blockquote></div><p>Like Tutorial Doctor say, it&#039;s ramp material using the reverse scalar product between the normal of the face and the position of the camera, like this higher is the scalar product, lower is the the value.<br />after I multiply the value and the MaterialEmit.</p><p>fragment shader:<br /></p><div class="codebox"><pre><code>    vec3 N = normalize(normal);
    float v = dot(normalize(-position), N);
    
    v = 2.0/pow((1+v), 4.5); // you can change 2.0 with what you want to play on the contrast
    gl_FragColor = vec4(MaterialEmit*v, 1.0);</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Thu, 28 Nov 2013 12:24:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6032#p6032</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6029#p6029</link>
			<description><![CDATA[<p>It looks like a sphere with a ramp material (gradient material).</p><p>You could do a 2 frame material animation to change the color (this is what I did for the light bulbs I posted that change color). This way you can just set a frame for the material to change the color of the bulb with code.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Wed, 27 Nov 2013 22:50:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6029#p6029</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6023#p6023</link>
			<description><![CDATA[<p>Pretty cool ! By the way, what have you used to make the spheres looks like that ? i like that look !</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Wed, 27 Nov 2013 15:52:42 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6023#p6023</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6022#p6022</link>
			<description><![CDATA[<p>thanks <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Mon, 25 Nov 2013 19:50:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6022#p6022</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6021#p6021</link>
			<description><![CDATA[<div class="quotebox"><cite>Alinor wrote:</cite><blockquote><div class="quotebox"><blockquote><p>I couldn&#039;t close the window. Perhaps add a key event for escaping?</p></blockquote></div><p>Yes, That would be a good improvement, but in fact I have no idea how to do this ^^</p><p>Thanks for your comments <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p></blockquote></div><p>In&nbsp; a lua script all you would have to do is:</p><div class="codebox"><pre><code>function onSceneUpdate()

if isKeyPressed(&quot;Q&quot;) then quit() end

end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 25 Nov 2013 18:29:48 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6021#p6021</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6019#p6019</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>I couldn&#039;t close the window. Perhaps add a key event for escaping?</p></blockquote></div><p>Yes, That would be a good improvement, but in fact I have no idea how to do this ^^</p><p>Thanks for your comments <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Mon, 25 Nov 2013 18:27:54 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6019#p6019</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6017#p6017</link>
			<description><![CDATA[<p>nice !</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 25 Nov 2013 09:10:17 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6017#p6017</guid>
		</item>
		<item>
			<title><![CDATA[Re: 3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6012#p6012</link>
			<description><![CDATA[<p>It&#039;s good to see this type of use for Maratis. I am checking it out!</p><p>I couldn&#039;t close the window. Perhaps add a key event for escaping?</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 25 Nov 2013 00:23:17 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6012#p6012</guid>
		</item>
		<item>
			<title><![CDATA[3D representation of a graph with maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6011#p6011</link>
			<description><![CDATA[<p>Hi maratis users <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>for one of my university project, I had to do a program that can store the differents points (representing the places of a ski resort) and the roads that link the points together. </p><p>all the informations is contain in a file like this one :</p><div class="codebox"><pre><code>5 // nb points
1    villaroger    1200    // name of the points / altitude    
2    2    1425        
3    3    2135        
4    4    2458        
5    aiguille-rouge    3226            
3 // nb edges
1    aiguille-rouge    TPH    2    5 // name of the edge / type of the edge / index of the start point / index of the end point
2    aiguille-rouge1    N    5    4
3    aiguille-rouge2    N    4    3</code></pre></div><p>The final purpose is to apply a shortest path algorithm on any of two points of the graph, so i decided to use maratis for a 3d graphical representation of the graph</p><p>controls :<br />-&gt; z,q,s,d : move in the scene (free flight code supply by anaël)<br />-&gt; maj : display the points name <br />-&gt; left click : select first point - second point<br />-&gt; right click : erase the selection</p><p>the source code of the project is contain in the folder, if someone is interested <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Have fun with maratis !</p><p><a href="https://www.dropbox.com/s/528kbh3nt4evrpi/published.zip">https://www.dropbox.com/s/528kbh3nt4evrpi/published.zip</a></p><p><a href="http://www.hostingpics.net/viewer.php?id=410985ensemble.png"><span class="postimg"><img src="http://img15.hostingpics.net/pics/410985ensemble.png" alt="http://img15.hostingpics.net/pics/410985ensemble.png" /></span></a></p><p><a href="http://www.hostingpics.net/viewer.php?id=442877shortest.png"><span class="postimg"><img src="http://img15.hostingpics.net/pics/442877shortest.png" alt="http://img15.hostingpics.net/pics/442877shortest.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Sun, 24 Nov 2013 20:14:20 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6011#p6011</guid>
		</item>
	</channel>
</rss>
