<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Direct3D 10 </title><link>http://forums.xna.com/forums/29.aspx</link><description>Only questions about the Direct3D 10 API are permitted here.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/198620.aspx</link><pubDate>Sat, 11 Jul 2009 22:09:56 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:198620</guid><dc:creator>TordinBjorn</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/198620.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=198620</wfw:commentRss><description>it dosent know how to render the alpha pixel, wich means, render it black or render it with the thing it is overlapping.&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/198604.aspx</link><pubDate>Sat, 11 Jul 2009 21:21:35 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:198604</guid><dc:creator>nick85</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/198604.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=198604</wfw:commentRss><description>Why would you not have the alpha blend state set?</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/198537.aspx</link><pubDate>Sat, 11 Jul 2009 15:22:42 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:198537</guid><dc:creator>TordinBjorn</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/198537.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=198537</wfw:commentRss><description>that dosen&amp;#39;t work if you haven&amp;#39;t set the alpha blend state, since it still dosent know how to handle the alpha&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/198527.aspx</link><pubDate>Sat, 11 Jul 2009 14:54:25 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:198527</guid><dc:creator>nick85</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/198527.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=198527</wfw:commentRss><description>Dude this is toatally simple. Just save it as a .png. It stores transparency.</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/198500.aspx</link><pubDate>Sat, 11 Jul 2009 10:31:48 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:198500</guid><dc:creator>TordinBjorn</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/198500.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=198500</wfw:commentRss><description>you have to set the blendsource desc, like this and it will work. becaus you can&amp;#39;t just tell dx10 to use alpha when it dosent know how to blend it!&lt;br /&gt;
&lt;br /&gt;
&lt;font face="Lucida Console" size="2"&gt;&lt;br /&gt;
ID3D10BlendState* g_pBlendStateNoBlend = NULL;&lt;br /&gt;
&lt;br /&gt;
D3D10_BLEND_DESC BlendState;&lt;br /&gt;
ZeroMemory(&amp;amp;amp;BlendState, sizeof(D3D10_BLEND_DESC));&lt;br /&gt;
BlendState.BlendEnable[0] = true;&lt;br /&gt;
BlendState.RenderTargetWriteMask[0] = D3D10_COLOR_WRITE_ENABLE_ALL;&lt;br /&gt;
BlendState.SrcBlend = D3D10_BLEND_SRC_ALPHA;&lt;br /&gt;
BlendState.DestBlend = D3D10_BLEND_INV_SRC_ALPHA;&lt;br /&gt;
BlendState.BlendOp = D3D10_BLEND_OP_ADD;&lt;br /&gt;
BlendState.SrcBlendAlpha = D3D10_BLEND_ZERO;&lt;br /&gt;
BlendState.DestBlendAlpha = D3D10_BLEND_ZERO;&lt;br /&gt;
BlendState.BlendOpAlpha = D3D10_BLEND_OP_ADD;&lt;br /&gt;
BlendState.AlphaToCoverageEnable = true;&lt;br /&gt;
g_pd3dDevice-&amp;amp;gt;CreateBlendState(&amp;amp;amp;BlendState, &amp;amp;amp;g_pBlendStateNoBlend);&lt;br /&gt;
float blendFactor[] = {0,0,0,0};&lt;br /&gt;
UINT sampleMask&amp;amp;nbsp;&amp;amp;nbsp; = 0xffffffff;&lt;br /&gt;
&lt;br /&gt;
g_pd3dDevice-&amp;amp;gt;OMSetBlendState(g_pBlendStateNoBlend, blendFactor, sampleMask);&lt;br /&gt;
&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;
i hope this helps!&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/193645.aspx</link><pubDate>Fri, 26 Jun 2009 12:19:23 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193645</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193645.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=193645</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Captain G:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;That didn&amp;#39;t seem to work, no matter where I put it.&lt;br /&gt;
&lt;br /&gt;
My textures are currently embedded into the .FBX files exported from 3ds max, though eventually I&amp;#39;d like to have the textures be coupled to the models in the code so that I can use the same texture on different models to save on memory.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m sure it&amp;#39;s apparent by now that I&amp;#39;m a noob at this, but any help anyone can offer is appreciated.&lt;br /&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Are you using BasicEffect to render your models? If so have you set the Alpha property on the mesh effect to some value less than 1.0f?&lt;br /&gt;
&lt;br /&gt;
Maybe also try these settings:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsDevice.RenderState.AlphaBlendEnable = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;graphicsDevice.RenderState.AlphaBlendOperation = BlendFunction.Add;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;graphicsDevice.RenderState.SourceBlend = Blend.SourceAlpha;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;graphicsDevice.RenderState.DestinationBlend = Blend.DestinationAlpha;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;graphicsDevice.RenderState.SeparateAlphaBlendEnabled = false;&lt;br /&gt;
&lt;br /&gt;
also try this (rather than Blend.DestinationAlpha):&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsDevice.RenderState.DestinationBlend = Blend.InverseSourceAlpha;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/193568.aspx</link><pubDate>Fri, 26 Jun 2009 04:58:51 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193568</guid><dc:creator>Captain G</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193568.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=193568</wfw:commentRss><description>That didn&amp;#39;t seem to work, no matter where I put it.&lt;br /&gt;
&lt;br /&gt;
My textures are currently embedded into the .FBX files exported from 3ds max, though eventually I&amp;#39;d like to have the textures be coupled to the models in the code so that I can use the same texture on different models to save on memory.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m sure it&amp;#39;s apparent by now that I&amp;#39;m a noob at this, but any help anyone can offer is appreciated.&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/189787.aspx</link><pubDate>Sun, 14 Jun 2009 02:21:40 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:189787</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/189787.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=189787</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://forums.xna.com//Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Captain G:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I also am having a little confusion with alphas. I&amp;#39;m placing simple 3D geometry in the world and moving it around. I don&amp;#39;t have any screen HUD things, yet I still need to do a spriteBatch.Begin() and End() in order for my 3D objects&amp;#39; alpha to work. I have nothing between the Begin() and End(), yet it still seems to do make the alphas work. Is there a setting I can change so I don&amp;#39;t even need the sprite batch?&lt;br /&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
GraphicsDevice.RenderState.AlphaBlendEnable = true;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/189762.aspx</link><pubDate>Sun, 14 Jun 2009 00:25:12 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:189762</guid><dc:creator>Captain G</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/189762.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=189762</wfw:commentRss><description>I also am having a little confusion with alphas. I&amp;#39;m placing simple 3D geometry in the world and moving it around. I don&amp;#39;t have any screen HUD things, yet I still need to do a spriteBatch.Begin() and End() in order for my 3D objects&amp;#39; alpha to work. I have nothing between the Begin() and End(), yet it still seems to do make the alphas work. Is there a setting I can change so I don&amp;#39;t even need the sprite batch?&lt;br /&gt;</description></item><item><title>Re: How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/116226.aspx</link><pubDate>Sun, 07 Dec 2008 18:36:48 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:116226</guid><dc:creator>George Clingerman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/116226.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=116226</wfw:commentRss><description>What exactly are you trying to do? If you&amp;#39;re using the sprite batch AlphaBlend is turn on by default (or you can explicitly set it if you want like this -&amp;gt; &amp;nbsp; spriteBatch.Begin(SpriteBlendMode.AlphaBlend);).&lt;br /&gt;
&lt;br /&gt;
Is there something that&amp;#39;s not working for you? If you could describe in a little more detail what you&amp;#39;re trying to achieve I&amp;#39;m sure we can get you pointed in the right direction.&lt;br /&gt;</description></item><item><title>How to alpha blend sprites?</title><link>http://forums.xna.com/forums/thread/114955.aspx</link><pubDate>Wed, 03 Dec 2008 19:09:59 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:114955</guid><dc:creator>Unholysavagery</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/114955.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=29&amp;PostID=114955</wfw:commentRss><description>I need to draw a sprite with alpha but I don&amp;#39;t know how and I Googled it and found little if any useful information.&lt;br /&gt;</description></item></channel></rss>