<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: transparency of a texture</title>
		<atom:link href="http://cycling74.com/forums/topic/transparency-of-a-texture/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/transparency-of-a-texture/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 09:35:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-38880</guid>
					<title><![CDATA[transparency of a texture]]></title>
					<link>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-38880</link>
					<pubDate>Mon, 14 Jul 2008 15:29:15 +0000</pubDate>
					<dc:creator>volker böhm</dc:creator>

					<description>
						<![CDATA[
						<p>hello,</p>
<p>i&#8217;m using a pixelated image as a texture to a gridshape (opencylinder).<br />
i use the alpha channel of the texture to achieve transparency , so  <br />
that one can see inside or even through the cylinder if the pixel  <br />
values are dark.</p>
<p>this works fine with blend enable etc.<br />
but only if i look at the cylinder in a certain angle. e.g. if i look  <br />
from above down on the cylinder it works, but not if i look from below.<br />
i noticed these &#8220;planes&#8221; appearing inside the cylinder that finally  <br />
&#8220;kill&#8221; my wonderful transparency.<br />
they are obviously connected to the dimension count &#8211; but i don&#8217;t get  <br />
it where/why they come from?</p>
<p>yes, my understanding of openGL is quite limited and i could use a  <br />
hint for the right direction.</p>
<p>attached is a patch that hopefully demonstrates what i mean.<br />
give it a slight shove up or down to rotate the cylinder.</p>
<p>thanks.<br />
volker.</p>
<p>max v2;<br />
#N vpatcher 493 109 919 713;<br />
#P origin 0 -60;<br />
#P hidden button 184 117 15 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 2;<br />
#P comment 70 155 40 196617 noise on/off;<br />
#P window linecount 1;<br />
#P hidden newex 212 117 75 196617 loadmess 0.75;<br />
#P toggle 76 181 15 0;<br />
#P flonum 96 181 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#N vpatcher 249 269 743 720;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 0;<br />
#P newex 177 113 44 196617 del 500;<br />
#P window linecount 1;<br />
#P newex 208 83 48 196617 loadbang;<br />
#P newex 97 109 58 196617 metro 500;<br />
#P inlet 97 80 15 0;<br />
#P window linecount 0;<br />
#P newex 97 297 53 196617 jit.pack;<br />
#P newex 97 333 142 196617 jit.matrix oo 4 char 160 160;<br />
#P inlet 269 106 15 0;<br />
#P flonum 269 141 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 97 210 182 196617 jit.expr @expr &#8220;(in[0] > in[1])*in[0]&#8220;;<br />
#P window linecount 1;<br />
#P newex 97 157 122 196617 jit.noise 1 float32 16 16;<br />
#P inlet 44 62 15 0;<br />
#P outlet 97 382 15 0;<br />
#P connect 8 0 9 0;<br />
#P connect 9 0 2 0;<br />
#P connect 11 0 2 0;<br />
#P connect 2 0 3 0;<br />
#P connect 3 0 7 0;<br />
#P fasten 1 0 6 0 49 326 102 326;<br />
#P connect 7 0 6 0;<br />
#P connect 6 0 0 0;<br />
#P connect 3 0 7 1;<br />
#P connect 3 0 7 2;<br />
#P connect 3 0 7 3;<br />
#P connect 10 0 11 0;<br />
#P connect 5 0 4 0;<br />
#P connect 4 0 3 1;<br />
#P pop;<br />
#P newobj 56 203 51 196617 p noiz;<br />
#N vpatcher 437 44 1240 743;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P hidden message 498 154 14 196617 6;<br />
#P hidden message 554 151 14 196617 4;<br />
#P hidden message 576 274 20 196617 20;<br />
#P number 576 295 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 576 319 68 196617 auto_time $1;<br />
#P toggle 495 295 15 0;<br />
#P message 495 319 75 196617 auto_rotate $1;<br />
#P hidden newex 570 432 77 196617 t 0.3 0.3 0.2 1;<br />
#P comment 553 176 55 196617 destination;<br />
#P flonum 612 467 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 577 467 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 542 467 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 507 467 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 507 487 128 196617 pak erase_color 0. 0. 0. 1.;<br />
#P number 554 192 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 507 192 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 488 212 95 196617 pak blend_mode 1 0;<br />
#P comment 507 177 55 196617 source;<br />
#P newex 40 92 139 196617 jit.gl.texture duu @name uno;<br />
#P inlet 22 28 15 0;<br />
#P hidden message 63 545 68 196617 camera 0 0 4;<br />
#P flonum 340 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 302 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 262 125 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 237 152 85 196617 pak scale 1. 1. 1.;<br />
#P newex 495 353 210 196617 jit.gl.handle duu @depth_enable 1 @radius  <br />
2.;<br />
#P toggle 315 480 15 0;<br />
#P newex 276 479 35 196617 sel 27;<br />
#P message 315 498 68 196617 fullscreen $1;<br />
#P newex 233 522 148 196617 jit.window duu @depthbuffer 1;<br />
#P newex 231 479 40 196617 key;<br />
#P number 145 142 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 145 170 54 196617 dim $1 $1;<br />
#P user jit.fpsgui 76 224 60 196617 0;<br />
#P flonum 359 173 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 321 173 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 281 173 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 346 326 15 0;<br />
#P message 346 349 94 196617 smooth_shading $1;<br />
#P hidden newex 657 172 50 196617 loadbang;<br />
#P toggle 258 326 15 0;<br />
#P message 258 349 81 196617 depth_enable $1;<br />
#P newex 22 199 64 196617 t b l erase b;<br />
#P newex 145 407 332 196617 jit.gl.gridshape duu @texture uno @shape  <br />
opencylinder @blend_enable 1;<br />
#B color 5;<br />
#P newex 22 592 83 196617 jit.gl.render duu;<br />
#P hidden message 495 262 14 196617 1;<br />
#P newex 253 197 95 196617 pak position 0. 0. 0.;<br />
#P connect 27 0 4 0;<br />
#P fasten 3 0 2 0 150 493 27 493;<br />
#P hidden fasten 26 0 2 0 68 577 27 577;<br />
#P connect 4 0 2 0;<br />
#P fasten 4 2 2 0 63 275 27 275;<br />
#P fasten 33 0 2 0 512 582 27 582;<br />
#P connect 27 0 28 0;<br />
#P hidden connect 7 0 26 0;<br />
#P connect 4 3 13 0;<br />
#P connect 15 0 14 0;<br />
#P connect 8 0 3 0;<br />
#P connect 0 0 3 0;<br />
#P connect 22 0 3 0;<br />
#P connect 5 0 3 0;<br />
#P fasten 30 0 3 0 493 254 150 254;<br />
#P fasten 14 0 3 0 150 204 150 204;<br />
#P fasten 21 0 3 0 500 400 150 400;<br />
#P fasten 18 0 17 0 320 517 238 517;<br />
#P hidden fasten 1 0 6 0 500 285 263 285;<br />
#P connect 6 0 5 0;<br />
#P connect 23 0 22 1;<br />
#P fasten 16 0 19 0 236 498 273 498 273 477 281 477;<br />
#P connect 10 0 0 1;<br />
#P fasten 24 0 22 2 307 146 292 146;<br />
#P fasten 11 0 0 2 326 192 314 192;<br />
#P fasten 25 0 22 3 345 146 317 146;<br />
#P fasten 19 0 20 0 281 497 312 497 312 477 320 477;<br />
#P connect 20 0 18 0;<br />
#P fasten 12 0 0 3 364 192 342 192;<br />
#P hidden fasten 1 0 9 0 500 285 351 285;<br />
#P connect 9 0 8 0;<br />
#P hidden connect 7 0 1 0;<br />
#P hidden connect 1 0 41 0;<br />
#P connect 41 0 40 0;<br />
#P connect 42 0 21 0;<br />
#P connect 40 0 21 0;<br />
#P hidden connect 7 0 46 0;<br />
#P hidden connect 46 0 31 0;<br />
#P hidden connect 39 0 34 0;<br />
#P fasten 31 0 30 1 512 209 535 209;<br />
#P fasten 34 0 33 1 512 484 541 484;<br />
#P hidden connect 39 1 35 0;<br />
#P hidden connect 7 0 45 0;<br />
#P hidden connect 45 0 32 0;<br />
#P fasten 35 0 33 2 547 484 570 484;<br />
#P hidden connect 7 0 39 0;<br />
#P fasten 32 0 30 2 559 209 577 209;<br />
#P hidden connect 7 0 44 0;<br />
#P hidden connect 44 0 43 0;<br />
#P connect 43 0 42 0;<br />
#P hidden connect 39 2 36 0;<br />
#P fasten 36 0 33 3 582 484 599 484;<br />
#P hidden connect 39 3 37 0;<br />
#P fasten 37 0 33 4 617 484 628 484;<br />
#P pop;<br />
#P newobj 85 245 49 196617 p openGL;<br />
#P user jit.pwindow 55 323 162 162 0 1 0 0 1 0;<br />
#P number 103 107 35 9 50 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 56 72 23 0;<br />
#P newex 56 128 57 196617 qmetro 50;<br />
#P comment 83 76 100 196617 < -- start;<br />
#P comment 132 183 100 196617 noise threshod;<br />
#P hidden connect 12 0 3 0;<br />
#P connect 3 0 2 0;<br />
#P connect 2 0 7 0;<br />
#P connect 7 0 5 0;<br />
#P connect 9 0 7 1;<br />
#P connect 7 0 6 0;<br />
#P hidden connect 10 0 8 0;<br />
#P connect 8 0 7 2;<br />
#P connect 4 0 2 1;<br />
#P hidden connect 10 0 12 0;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-136076</guid>
					<title><![CDATA[Re: transparency of a texture]]></title>
					<link>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-136076</link>
					<pubDate>Mon, 14 Jul 2008 17:27:16 +0000</pubDate>
					<dc:creator>Rob Ramirez</dc:creator>

					<description>
						<![CDATA[
						<p>turning off depth_enable and setting the blend_mode to 6 5 or 6 1 seems to do the trick. unless i misunderstand&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-136077</guid>
					<title><![CDATA[Re: transparency of a texture]]></title>
					<link>http://cycling74.com/forums/topic/transparency-of-a-texture/#post-136077</link>
					<pubDate>Tue, 15 Jul 2008 13:37:26 +0000</pubDate>
					<dc:creator>volker böhm</dc:creator>

					<description>
						<![CDATA[
						<p>
On 14 Jul 2008, at 19:27, Robert Ramirez wrote:<br />
><br />
> turning off depth_enable and setting the blend_mode to 6 5 or 6 1  <br />
> seems to do the trick. unless i misunderstand&#8230;<br />
> ______________________________________________</p>
<p>thanks, robert. i tried that and it works.<br />
however, what i liked about mod 6 4 is that the original shape of the  <br />
cylinder is still present.<br />
but this obviously is not possible.<br />
volker.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

