<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I’m a Game Developer Still in learning stage.I like 3D,2D Rendering,opengl….</description><title>Love Playing with pixels ;)</title><generator>Tumblr (3.0; @manwithsteelnerves)</generator><link>http://manwithsteelnerves.tumblr.com/</link><item><title>Started Jogging today…Lets see what change this will bring...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lw4hznma5V1qjesc5o1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Started Jogging today…Lets see what change this will bring to me ;) … Today morning i found out whole world will wake up early everyday other than me :/&lt;/p&gt;</description><link>http://manwithsteelnerves.tumblr.com/post/14150909872</link><guid>http://manwithsteelnerves.tumblr.com/post/14150909872</guid><pubDate>Mon, 12 Dec 2011 22:35:00 -0500</pubDate></item><item><title>Z-Fighting with vivek :)</title><description>Me:hey one doubt? free??&lt;br /&gt;&#13;
Vector:sure&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
ME:http://wiki.activeworlds.com/index.php?title=Z-buffer_fighting&lt;br /&gt;&#13;
 Wht can be the resons for this issue??? even if the depths are equal why can't the graphics card decide?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Vector: z-fighting occurs because the z buffer values are no linear&lt;br /&gt;&#13;
 Me: if i set two primitvies at same depth...does the depth buffer will be filled at the end or when ever we draw each primitve base (done depth func)?&lt;br /&gt;&#13;
 Vector: I did not understand the question&lt;br /&gt;&#13;
 Me: ok…if i'm drawing two quads at depth 50 ... whts the reason for having this issue? is it only because of the placement of nearplane?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Vector:When you specify z value. YOu are specifying the z value in world space. The "Depth" refers to distance from eye. This value is stored inthe depth buffer only after mult [Proj] * [View] [ Model] * [vertex]&lt;br /&gt;&#13;
  owing to float point preceision values... there will be a difeerence in z depth even if you specify same z value for each primitive&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Me:ok so based on the size of the depth buffer... we will have more values if the depth buffer size is more .... and at the same time  ...if we place Near plane at 0.1 the depth values will be some exact values so that when calculating depths, 'precision' will not effect the calculated depths ... is this right?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Vector:No.. The value in the z buffer is not the z value at all... it is more similar to 1/z ... this is because when we convert to homogenous coordinates after mult by proj matrix... and dividing by w.&lt;br /&gt;&#13;
  1/z has a graph that is non linear&lt;br /&gt;&#13;
 so z values can be differentiated or distinguished to aa higher 'precision' near at certain ranges of the graph. Putting near plane of 0.001  causes very high precision right near the camera... but precision drops a little farther out... This is undesirable... you want high precision from eye to say the mid of the scene.. as the primitives are farther away...you don't mind having less z precision..&lt;br /&gt;&#13;
 Im lookking for the graph i found long time ago...it will be clear then&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Me:ok seems i understood :)  send me the graph if u find it... tilll now i thought the values specified at the end of the glFrustum call will be taken directly as depth limits :( ...thanks for clarifying...&lt;br /&gt;&#13;
Vector:Cool hope this helped... ill try finding the graph ..it will really clear things up&lt;br /&gt;&#13;
Me:ok :)</description><link>http://manwithsteelnerves.tumblr.com/post/8076359007</link><guid>http://manwithsteelnerves.tumblr.com/post/8076359007</guid><pubDate>Tue, 26 Jul 2011 02:11:00 -0400</pubDate></item><item><title>Unit vectors??? What for?? ok here they are for ;)</title><description>&lt;p&gt;Until now I didn&amp;#8217;t find a reason why a vector is normalized to make it a Unit vector.&lt;/p&gt;
&lt;p&gt;Basically a  vector is a Geometric object which has a Magnitude and a Direction. It doesnt need to have a fixed position.&lt;/p&gt;
&lt;p&gt;Ex: I&amp;#8217;am moving towards east at 50kmph. Here the velocity vector tells us the direction and magnitude.There is no start point for a vector.It can be any where!&lt;/p&gt;

&lt;p&gt;So for a particular any magnitude and unique direction, we can have lots of different placed vectors. ex: (2,2)  , (3,3) ,(4,4)&amp;#8230; actually all these are having same directions with different magnitudes.&lt;/p&gt;
&lt;p&gt;      So how to represent them in a unique fashion??? Here comes the use of Unit Vector.&lt;/p&gt;
&lt;p&gt;A Unit Vector is a vector which will have 1 unit of magnitude and wil have a direction .From this unit vector we can derive any vector oriented in this direction! From the above example (1/sqrt(2),1/sqrt(2)) is the unit vector .From it we can create (2,2) , (3,3) etc&amp;#8230;simply any vector oriented in that direction ;)&lt;/p&gt;
&lt;p&gt;DotProduct: Dot product is exactly equal to cos(angleBetweenTheVectors)*|U|*|V| where U,V are two different vectors.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If we plot this dot product at different angles between the vectors we can find the result as a cosine graph! (think the two vectors are of unit length). &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So ok! But why we need this unique representation?? what this is for???&lt;/p&gt;
&lt;p&gt;    Assume you have a ball which is moving with  some velocity vector.For now think that we are not calculating the unit vector.Assume the velocity vector is changing on each collision with the walls or with other balls. Now if we want to calculate angle between two balls, we need to calculate its dot product and divide the value with each of its magnitude every time! In the same case if we have Unit vector of velocity and the maginitude is seperated from it, then we can directly have dot product as cosine of the angle between them! Easy right! And this is efficient too!This simply saves lot of calculations.&lt;/p&gt;
&lt;p&gt;And more over For lot of operations magnitude is not the main criteria.Usually we will consider mostly the direction.And this can be easily achieved by a unit vector.And with this vector we can create any kind of vector in the SAME direction with different Magnitude.&lt;/p&gt;
&lt;p&gt;Thats All for today! Will organize this post better if i find some time! Bye!&lt;/p&gt;</description><link>http://manwithsteelnerves.tumblr.com/post/8010125374</link><guid>http://manwithsteelnerves.tumblr.com/post/8010125374</guid><pubDate>Sun, 24 Jul 2011 15:15:39 -0400</pubDate></item><item><title>Some info on Filters</title><description>&lt;p&gt;Yesterday when discussing with Vivek about filters,We(I &amp;amp; Sid) Came across lot of new stuff :) . Vivek explained us clearly how filters on images will be done. Let me have a brief synopsis on what exactly it is and how it will be done.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;                    Basically we will have a matrix called &amp;#8216;Kernel&amp;#8217; and it will be applied on each and every pixel of the image on which  filter need to be applied. The process of converting an image pixels with a Kernel is called  &amp;#8217;Convolution&amp;#8217;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;so a simple blur filter to my knowledge can be as simple as this.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;         1&amp;#160;1 1&lt;/p&gt;
&lt;p&gt;         1&amp;#160;1 1&lt;/p&gt;
&lt;p&gt;         1&amp;#160;1 1&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This means we are just taking the consideration of surrounding pixels equally.This makes the image look blurry.IF the kernel matrix is in big size obviously we can have smoother effects and will need high processing as well!&lt;/p&gt;
&lt;p&gt;Got some more new stuff from him as well&amp;#8230;.&amp;#8217;Sobel filter&amp;#8217;,&amp;#8217;Sobel operator&amp;#8217; (when explaining about Edge Detection filters)&amp;#8230;. Need to find a day where I can work on it as its really interesting!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reference:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://docs.gimp.org/en/plug-in-convmatrix.html"&gt;http://docs.gimp.org/en/plug-in-convmatrix.html&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://manwithsteelnerves.tumblr.com/post/7813325669</link><guid>http://manwithsteelnerves.tumblr.com/post/7813325669</guid><pubDate>Tue, 19 Jul 2011 15:59:00 -0400</pubDate></item><item><title>Degenerate Triangles :O Some thing interesting!</title><description>&lt;p&gt;Today I came across a problem while displaying two separate quad&amp;#8217;s with GL_TRIANGLE_STRIP. The problem was, when using strip it will take previous given two indices and attach with the new vertex and make a triangle strip.Actually this is NOT what I wanted.&lt;/p&gt;
&lt;p&gt;         Suppose there are (1,2,3,4) (5,6,7,8) Quads which can be made by a GL_TRIANGLE_STRIP call. Now if i give this data as a batch,I will have 3,4,&amp;#8217;5&amp;#8217; and &amp;#8216;4&amp;#8217;,&amp;#8217;5&amp;#8217;,6 connected Triangle Strips as well! :O&lt;/p&gt;
&lt;p&gt;       So to solve this issue, I came to know we need to use &amp;#8220;Zero Area Sized Triangle strips&amp;#8221; which will be usually &lt;strong&gt;ignored/discarded&lt;/strong&gt; by Graphic cards as they mean they are &lt;strong&gt;EMPTY&lt;/strong&gt; areas which are not necessary to draw. These  &amp;#8221;Zero Area Sized Triangle strips&amp;#8221;  are called &amp;#8220;&lt;strong&gt;Degenerate Triangles&lt;/strong&gt;&amp;#8220;.These can be created by duplicating the vertex data. &lt;/p&gt;
&lt;p&gt;  So, 1,2,3,4,4,5,5,6,7,8 vertex data will yield the intended!&lt;/p&gt;
&lt;p&gt;  Here the Degenerate Triangles are (3,4,4) , (4,4,5) ,(4,5,5) , (5,5,6) &lt;/p&gt;
&lt;p&gt;Even though we are duplicating the data a bit &amp;#8230;it will be flushed in one single call with Triangle Strips! Nice right (^_^) &lt;/p&gt;
&lt;p&gt;For further Reference: &lt;/p&gt;
&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/487244/opengl-efficient-way-to-render-a-batch-of-geometry"&gt;http://stackoverflow.com/questions/487244/opengl-efficient-way-to-render-a-batch-of-geometry&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.gamedev.net/page/resources/_/reference/programming/sweet-snippets/concatenating-triangle-strips-r1871"&gt;http://www.gamedev.net/page/resources/_/reference/programming/sweet-snippets/concatenating-triangle-strips-r1871&lt;/a&gt;&lt;/p&gt;</description><link>http://manwithsteelnerves.tumblr.com/post/7812675594</link><guid>http://manwithsteelnerves.tumblr.com/post/7812675594</guid><pubDate>Tue, 19 Jul 2011 15:41:00 -0400</pubDate></item><item><title>http://manwithsteelnerves.tumblr.com/</title><description>&lt;a href="http://manwithsteelnerves.tumblr.com/"&gt;http://manwithsteelnerves.tumblr.com/&lt;/a&gt;</description><link>http://manwithsteelnerves.tumblr.com/post/6104757924</link><guid>http://manwithsteelnerves.tumblr.com/post/6104757924</guid><pubDate>Thu, 02 Jun 2011 07:35:00 -0400</pubDate></item></channel></rss>
