<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 7. Texturing in GLSL</title>
	<atom:link href="http://www.swiftless.com/tutorials/glsl/7_texturing.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html</link>
	<description>Game Programming and Computer Graphics Tutorials</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:19:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: BabyStuey</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-2513</link>
		<dc:creator>BabyStuey</dc:creator>
		<pubDate>Mon, 10 Oct 2011 08:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-2513</guid>
		<description>There&#039;s no link to a texture file in the download list for this tutorial. I found one here though: http://www.swiftless.com/tutorials/opengl/cplusplus/texture.zip</description>
		<content:encoded><![CDATA[<p>There&#8217;s no link to a texture file in the download list for this tutorial. I found one here though: <a href="http://www.swiftless.com/tutorials/opengl/cplusplus/texture.zip"  rel="nofollow">http://www.swiftless.com/tutorials/opengl/cplusplus/texture.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-2385</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 22 Sep 2011 16:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-2385</guid>
		<description>Hey Swift! 

I was wondering how you make the &quot;raw&quot; files? Like the texture.raw. I can&#039;t find any program to convert any file into raw. It may sound like a stupid question but please I am new to this and I need your help : )</description>
		<content:encoded><![CDATA[<p>Hey Swift! </p>
<p>I was wondering how you make the &#8220;raw&#8221; files? Like the texture.raw. I can&#8217;t find any program to convert any file into raw. It may sound like a stupid question but please I am new to this and I need your help : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maxnb</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-1749</link>
		<dc:creator>maxnb</dc:creator>
		<pubDate>Thu, 09 Jun 2011 13:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-1749</guid>
		<description>not sure if you notice this but your theme is cutting the text, take a look here:

http://i.imgur.com/fDh8z.png

look at: didn’t rename the method, naughty me

well &quot;rename the method&quot; gets cut/hidden so its not really possible to follow the text, please correct this. If you need help with that, I am wordpress theme developer and can help you probably with css/html, in that case drop me an email and I&#039;ll be glad to help :)</description>
		<content:encoded><![CDATA[<p>not sure if you notice this but your theme is cutting the text, take a look here:</p>
<p><a href="http://i.imgur.com/fDh8z.png"  rel="nofollow">http://i.imgur.com/fDh8z.png</a></p>
<p>look at: didn’t rename the method, naughty me</p>
<p>well &#8220;rename the method&#8221; gets cut/hidden so its not really possible to follow the text, please correct this. If you need help with that, I am wordpress theme developer and can help you probably with css/html, in that case drop me an email and I&#8217;ll be glad to help <img src='http://www.swiftless.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paras</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-1682</link>
		<dc:creator>Paras</dc:creator>
		<pubDate>Tue, 24 May 2011 13:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-1682</guid>
		<description>Hi Swiftless,

I have a following question,

 file = fopen( filename, “rb” );
    if ( file == NULL ) return 0;
    data = (unsigned char *)malloc( width * height * 3 );
    fread( data, width * height * 3, 1, file );
    fclose( file );
    
    glGenTextures( 1, &amp;texture ); //generate the texture with the loaded 
data
    glBindTexture( GL_TEXTURE_2D, texture ); //bind the texture to it’s 
array
    glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, 
GL_MODULATE ); /

when you use the function, glGenTextures(),

How does the openGL understand to read the texture from the pointer &quot;data&quot;? I mean where have you passed &#039;data &#039; to openGL.</description>
		<content:encoded><![CDATA[<p>Hi Swiftless,</p>
<p>I have a following question,</p>
<p> file = fopen( filename, “rb” );<br />
    if ( file == NULL ) return 0;<br />
    data = (unsigned char *)malloc( width * height * 3 );<br />
    fread( data, width * height * 3, 1, file );<br />
    fclose( file );</p>
<p>    glGenTextures( 1, &amp;texture ); //generate the texture with the loaded<br />
data<br />
    glBindTexture( GL_TEXTURE_2D, texture ); //bind the texture to it’s<br />
array<br />
    glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE,<br />
GL_MODULATE ); /</p>
<p>when you use the function, glGenTextures(),</p>
<p>How does the openGL understand to read the texture from the pointer &#8220;data&#8221;? I mean where have you passed &#8216;data &#8216; to openGL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hudeleli</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-1600</link>
		<dc:creator>hudeleli</dc:creator>
		<pubDate>Thu, 14 Apr 2011 09:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-1600</guid>
		<description>Thank you for your effort! Keep up with your great tutorials!</description>
		<content:encoded><![CDATA[<p>Thank you for your effort! Keep up with your great tutorials!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swiftless</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-920</link>
		<dc:creator>Swiftless</dc:creator>
		<pubDate>Wed, 18 Aug 2010 00:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-920</guid>
		<description>Hey Fonix,

That&#039;s a typo, just rename either of the variables to match up with the other.

Cheers,
Swiftless</description>
		<content:encoded><![CDATA[<p>Hey Fonix,</p>
<p>That&#8217;s a typo, just rename either of the variables to match up with the other.</p>
<p>Cheers,<br />
Swiftless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fonix</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-919</link>
		<dc:creator>Fonix</dc:creator>
		<pubDate>Tue, 17 Aug 2010 15:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-919</guid>
		<description>...and takes the paramters for the shader id, and the name of the variable inside the shader for our texture.
    int texture_location = glGetUniformLocation(shader.id(), “texture_color”);

and

uniform sampler2D color_texture;

dont seem to line up, is this intentional?</description>
		<content:encoded><![CDATA[<p>&#8230;and takes the paramters for the shader id, and the name of the variable inside the shader for our texture.<br />
    int texture_location = glGetUniformLocation(shader.id(), “texture_color”);</p>
<p>and</p>
<p>uniform sampler2D color_texture;</p>
<p>dont seem to line up, is this intentional?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swiftless</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-813</link>
		<dc:creator>Swiftless</dc:creator>
		<pubDate>Tue, 29 Jun 2010 01:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-813</guid>
		<description>Hey Bloodust,

I&#039;m surprised you got all the way to tutorial 7 before that :P

I&#039;ve mentioned that in the comments for the previous tutorials. The reason I don&#039;t have it, is because I made these tutorials on OSX and on OSX that call isn&#039;t needed.

Cheers,
Swiftless</description>
		<content:encoded><![CDATA[<p>Hey Bloodust,</p>
<p>I&#8217;m surprised you got all the way to tutorial 7 before that <img src='http://www.swiftless.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>I&#8217;ve mentioned that in the comments for the previous tutorials. The reason I don&#8217;t have it, is because I made these tutorials on OSX and on OSX that call isn&#8217;t needed.</p>
<p>Cheers,<br />
Swiftless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bloodust</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-811</link>
		<dc:creator>Bloodust</dc:creator>
		<pubDate>Sat, 26 Jun 2010 18:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-811</guid>
		<description>Great but missing glew initialization and without it my shader couldnt be created because 
&quot;Unhandled exception at 0x00000000&quot; 

add this to main before init()

 if(glewInit() !=  GLEW_OK)
		return 0;
or just
glewInit();</description>
		<content:encoded><![CDATA[<p>Great but missing glew initialization and without it my shader couldnt be created because<br />
&#8220;Unhandled exception at 0&#215;00000000&#8243; </p>
<p>add this to main before init()</p>
<p> if(glewInit() !=  GLEW_OK)<br />
		return 0;<br />
or just<br />
glewInit();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osk</title>
		<link>http://www.swiftless.com/tutorials/glsl/7_texturing.html/comment-page-1#comment-385</link>
		<dc:creator>Osk</dc:creator>
		<pubDate>Sun, 11 Apr 2010 01:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://swiftless.com/wordpress/?p=232#comment-385</guid>
		<description>@Swiftless:
actually my game using shader from yours tuts looks like this:
http://www.gamedev.pl/projects.php?x=view&amp;id=1198</description>
		<content:encoded><![CDATA[<p>@Swiftless:<br />
actually my game using shader from yours tuts looks like this:<br />
<a href="http://www.gamedev.pl/projects.php?x=view&#038;id=1198"  rel="nofollow">http://www.gamedev.pl/projects.php?x=view&#038;id=1198</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

