<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Camera readjustment based on models]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=1095</link>
		<description><![CDATA[The most recent posts in Camera readjustment based on models.]]></description>
		<lastBuildDate>Mon, 01 Dec 2014 08:29:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Camera readjustment based on models]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7428#p7428</link>
			<description><![CDATA[<p>you can smooth the movement of the camera.</p><p>Instead of setting the camera position to the ray hit directly :<br />cam_pos = ray_hit</p><p>Do something like :<br />smooth = 0.1 -- a number between 0 and 1<br />cam_pos = cam_pos&nbsp; + (ray_hit - cam_pos)*smooth</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 01 Dec 2014 08:29:43 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7428#p7428</guid>
		</item>
		<item>
			<title><![CDATA[Re: Camera readjustment based on models]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7427#p7427</link>
			<description><![CDATA[<p>Thanks, that seemed to have done the trick.</p><p>However, the camera is shaky now, because the terrain is utilizing triangle-mesh as its shape, and terrain is textured in an odd way.<br />My way of resolving this was by putting a flat, invisible object just slightly above the terrain. Thus, the player walks freely without a shaking camera.<br />Nevertheless I have many objects in my terrain, and it would be rather cumbersome to do so for every piece of the terrain. Is there any way to adjust the camera to function smoothly without the object?</p>]]></description>
			<author><![CDATA[dummy@example.com (cygorx)]]></author>
			<pubDate>Sun, 30 Nov 2014 20:35:45 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7427#p7427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Camera readjustment based on models]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7418#p7418</link>
			<description><![CDATA[<p>Hi,</p><p>you could send a ray from the camera position to the player position,<br />if the ray hit something it means there is a possible occlusion.</p><p>Till the ray hit something you can move the camera position in the direction of the player.<br />When there the ray doesn&#039;t hit anything you can move the camera back to normal.</p><p>rayHit : <a href="http://wiki.maratis3d.org/index.php?title=RayHit">http://wiki.maratis3d.org/index.php?title=RayHit</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 25 Nov 2014 08:30:58 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7418#p7418</guid>
		</item>
		<item>
			<title><![CDATA[Camera readjustment based on models]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7414#p7414</link>
			<description><![CDATA[<p>Hey,</p><p>In my game I have many walls with one sided normals that are only projecting the texture on the inside of the room. When my camera collides with the walls it just goes through them and it can see through the wall from the other side since the texture isn&#039;t being projected on the outside of the wall. I have seen in most games, like minecraft, that when the third person camera collides with an object, it zooms in on the player to avoid the collision. How should I go about doing this?</p><p>Thanks in advanced</p>]]></description>
			<author><![CDATA[dummy@example.com (cygorx)]]></author>
			<pubDate>Sun, 23 Nov 2014 20:41:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7414#p7414</guid>
		</item>
	</channel>
</rss>
