<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: I must be stupid, stupid, stupid.</title>
	<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/</link>
	<description>DFWBL !!!</description>
	<pubDate>Tue, 06 Jan 2009 20:59:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: rince</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2831</link>
		<pubDate>Mon, 11 Dec 2006 01:10:35 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2831</guid>
					<description>FSAA using multisampling or supersampling? Also in 1280x720 or 640x480?</description>
		<content:encoded><![CDATA[<p>FSAA using multisampling or supersampling? Also in 1280&#215;720 or 640&#215;480?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Davide Pasca</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2830</link>
		<pubDate>Sun, 10 Dec 2006 10:48:34 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2830</guid>
					<description>I agree that OpenGL is confusing and obsolete. However I remember clearly I had some hard time trying to get FSAA going with Float 16 frame buffer on the XBox 360, which uses Direct3D, but also some custom tiled video RAM buffer.

AA is a requirement for shipping titles, yet most samples don't implement it (at least last I checked a few months back). Only a couple had FSAA going, but how to mix that with float buffers, etc, was not explained.
I did it eventually, but it was definitely not straightforward.</description>
		<content:encoded><![CDATA[<p>I agree that OpenGL is confusing and obsolete. However I remember clearly I had some hard time trying to get FSAA going with Float 16 frame buffer on the XBox 360, which uses Direct3D, but also some custom tiled video RAM buffer.</p>
<p>AA is a requirement for shipping titles, yet most samples don&#8217;t implement it (at least last I checked a few months back). Only a couple had FSAA going, but how to mix that with float buffers, etc, was not explained.<br />
I did it eventually, but it was definitely not straightforward.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rince</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2829</link>
		<pubDate>Sat, 09 Dec 2006 20:42:40 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2829</guid>
					<description>Well for once I am not relying on opengl to do 'magic enabling' for me =) 

I choose interfaces that let me see and control what I am doing =) 

So I do still have problems, but they are of a different nature. =)</description>
		<content:encoded><![CDATA[<p>Well for once I am not relying on opengl to do &#8216;magic enabling&#8217; for me =) </p>
<p>I choose interfaces that let me see and control what I am doing =) </p>
<p>So I do still have problems, but they are of a different nature. =)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Davide Pasca</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2827</link>
		<pubDate>Sat, 09 Dec 2006 18:51:29 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2827</guid>
					<description>ummmmm I was trying to convey the idea that programming, implementing techniques is a pain because there are many unknowns and there is hardly a sure well defined portable way to do things. I think Mark Kilgard through nVidia released a detailed paper about stencil shadows, but there is no such thing for shadow maps. However, even for stencil shadows, there is the problem of the edges revealing themselves (actual geometry vs shading) which doesn't seem to concern most explanations, but is a real problem in the implementations (a couple of possible solutions came out in the recent years).

Writing code is not math, although having the math behind is important. Being a programmer myself, I know that I'm not going to stopped, however I'm frustrated by the lack of actual specific documentation. And in some cases one is supposed to read tons of bullshit (for example the OpenGL extension documentation, which includes some sort of log of decisions along with the specification).

Currently I'm dealing with the GL_COMPARE_R_TO_TEXTURE_ARB texture parameter. This should magically enable tex2dproj() to do a Z compare between the current position's Z and the depth texture's Z.
To debug, it would be a great start to have the plain formula used by tex2dproj(), but that isn't available in the standard CG documentation..

I shouldn't be telling you about implementation issues. If you have no problems then you are not earning your pay ;)</description>
		<content:encoded><![CDATA[<p>ummmmm I was trying to convey the idea that programming, implementing techniques is a pain because there are many unknowns and there is hardly a sure well defined portable way to do things. I think Mark Kilgard through nVidia released a detailed paper about stencil shadows, but there is no such thing for shadow maps. However, even for stencil shadows, there is the problem of the edges revealing themselves (actual geometry vs shading) which doesn&#8217;t seem to concern most explanations, but is a real problem in the implementations (a couple of possible solutions came out in the recent years).</p>
<p>Writing code is not math, although having the math behind is important. Being a programmer myself, I know that I&#8217;m not going to stopped, however I&#8217;m frustrated by the lack of actual specific documentation. And in some cases one is supposed to read tons of bullshit (for example the OpenGL extension documentation, which includes some sort of log of decisions along with the specification).</p>
<p>Currently I&#8217;m dealing with the GL_COMPARE_R_TO_TEXTURE_ARB texture parameter. This should magically enable tex2dproj() to do a Z compare between the current position&#8217;s Z and the depth texture&#8217;s Z.<br />
To debug, it would be a great start to have the plain formula used by tex2dproj(), but that isn&#8217;t available in the standard CG documentation..</p>
<p>I shouldn&#8217;t be telling you about implementation issues. If you have no problems then you are not earning your pay ;)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rince</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2826</link>
		<pubDate>Sat, 09 Dec 2006 18:20:46 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2826</guid>
					<description>Well if I know the theory and the maths implementation details never seem to stop me. 

What is your actual problem? Is opengl interface too convoluted for you to figure out how to implement what you want?</description>
		<content:encoded><![CDATA[<p>Well if I know the theory and the maths implementation details never seem to stop me. </p>
<p>What is your actual problem? Is opengl interface too convoluted for you to figure out how to implement what you want?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Davide Pasca</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2819</link>
		<pubDate>Sat, 09 Dec 2006 03:07:53 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2819</guid>
					<description>Mr. Rince...

I agree, maybe OpenGL sucks.. but your answer doesn't make sense.
My complaint is about how things are not explained anywhere in detail, and you just explained the theory again 8)

With OpenGL was also pretty difficult to get the Z buffer allocated right with the Framebuffer Objects thing. Bind this, attach that.. bha !</description>
		<content:encoded><![CDATA[<p>Mr. Rince&#8230;</p>
<p>I agree, maybe OpenGL sucks.. but your answer doesn&#8217;t make sense.<br />
My complaint is about how things are not explained anywhere in detail, and you just explained the theory again 8)</p>
<p>With OpenGL was also pretty difficult to get the Z buffer allocated right with the Framebuffer Objects thing. Bind this, attach that.. bha !
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rince</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2818</link>
		<pubDate>Fri, 08 Dec 2006 22:53:30 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2818</guid>
					<description>Maybe opengl sucks?

Seems to me like I would render the scene from the lights perspective into z only texture (shadow map). Set that texture on one of the texture stages. Then render the scene from cameras perspective and also for each vertex calculate their shadow map u,v and z in light space. This could be done by transforming the vertex by the light space draw matrix and then normalizing the x,y to 0..1 range to get the uvs Then I would pass the calculated shadow map uv's and light space z to the pixel shader. In the pixel shader I would use the shadow map uv's to look up the z value from the shadow map and compare it to the light space z value that i am passing down to determine if the pixel is in shadow or not?</description>
		<content:encoded><![CDATA[<p>Maybe opengl sucks?</p>
<p>Seems to me like I would render the scene from the lights perspective into z only texture (shadow map). Set that texture on one of the texture stages. Then render the scene from cameras perspective and also for each vertex calculate their shadow map u,v and z in light space. This could be done by transforming the vertex by the light space draw matrix and then normalizing the x,y to 0..1 range to get the uvs Then I would pass the calculated shadow map uv&#8217;s and light space z to the pixel shader. In the pixel shader I would use the shadow map uv&#8217;s to look up the z value from the shadow map and compare it to the light space z value that i am passing down to determine if the pixel is in shadow or not?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Davide Pasca</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2815</link>
		<pubDate>Fri, 08 Dec 2006 04:38:16 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2815</guid>
					<description>Sorry Duddie !

I promised a shady story, but first I need to focus on my shadow story (ah ah).

BTW, things good a good turn as I figured my shadow map projection matrix was being loaded improperly.

I was using:

cgGLSetMatrixParameterfr( mat_param, mat._m[0] );

..in place of..

cgGLSetMatrixParameterfc( mat_param, mat._m[0] );

Because I use the OpenGL format of matrices, I was mistakenly loading the matrix as a row-matrix, but it should have been as a column-matrix.

And here comes facking OpenGL too !! I can't believe the standard tells people to think column matrices but to store row matrices ! ..in a one dimensional array, nonetheless.
This has had so much negative repercussion, especially when one considers that there is then Direct3D that tells you to think row matrices and store them that way.</description>
		<content:encoded><![CDATA[<p>Sorry Duddie !</p>
<p>I promised a shady story, but first I need to focus on my shadow story (ah ah).</p>
<p>BTW, things good a good turn as I figured my shadow map projection matrix was being loaded improperly.</p>
<p>I was using:</p>
<p>cgGLSetMatrixParameterfr( mat_param, mat._m[0] );</p>
<p>..in place of..</p>
<p>cgGLSetMatrixParameterfc( mat_param, mat._m[0] );</p>
<p>Because I use the OpenGL format of matrices, I was mistakenly loading the matrix as a row-matrix, but it should have been as a column-matrix.</p>
<p>And here comes facking OpenGL too !! I can&#8217;t believe the standard tells people to think column matrices but to store row matrices ! ..in a one dimensional array, nonetheless.<br />
This has had so much negative repercussion, especially when one considers that there is then Direct3D that tells you to think row matrices and store them that way.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: duddie</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2814</link>
		<pubDate>Fri, 08 Dec 2006 03:40:42 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2814</guid>
					<description>So we expected shady story and instead we are being served with some 3D... disappointment !!!!</description>
		<content:encoded><![CDATA[<p>So we expected shady story and instead we are being served with some 3D&#8230; disappointment !!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Davide Pasca</title>
		<link>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2813</link>
		<pubDate>Fri, 08 Dec 2006 03:12:22 +0000</pubDate>
		<guid>http://v3.kazzuya.com/i-must-be-stupid-stupid-stupid/#comment-2813</guid>
					<description>nVidia documentation can't give the damn formula for tex2dproj()  ..what does it do ?!
The CG reference doesn't have it ! The CG User Manual says it does project, also mentions some swizzling, what does it mean ? Do I have to specify .xyw ? It's it already assumed to be that way ?
Does tex2dproj() really output x/w, y/w, z/w ?

That's only an example.. I'm using a mathematical function and I don't have the facking formula for it !!
How hard is it to put the formula in the documentation ?? It should be all over the places, but instead it's a mission do find that simple vital information.

I don't want to do trial and error forever, I want to know what I'm doing !!!

Fuck ATI and nVidia !!!</description>
		<content:encoded><![CDATA[<p>nVidia documentation can&#8217;t give the damn formula for tex2dproj()  ..what does it do ?!<br />
The CG reference doesn&#8217;t have it ! The CG User Manual says it does project, also mentions some swizzling, what does it mean ? Do I have to specify .xyw ? It&#8217;s it already assumed to be that way ?<br />
Does tex2dproj() really output x/w, y/w, z/w ?</p>
<p>That&#8217;s only an example.. I&#8217;m using a mathematical function and I don&#8217;t have the facking formula for it !!<br />
How hard is it to put the formula in the documentation ?? It should be all over the places, but instead it&#8217;s a mission do find that simple vital information.</p>
<p>I don&#8217;t want to do trial and error forever, I want to know what I&#8217;m doing !!!</p>
<p>Fuck ATI and nVidia !!!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
