<?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</title><link>http://forums.xna.com/forums/27.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/197497.aspx</link><pubDate>Wed, 08 Jul 2009 05:18:50 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:197497</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/197497.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=197497</wfw:commentRss><description>&lt;br /&gt;
Yes I read chapter 4 but this chapter is in different language, I think language is VC++. Thats why i didn&amp;#39;t get. I am working on C#.&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/197237.aspx</link><pubDate>Tue, 07 Jul 2009 14:29:56 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:197237</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/197237.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=197237</wfw:commentRss><description>&lt;p&gt;Did you read Chapter 4 from my book that I linked to above?  That explains swap chains.&lt;/p&gt;
&lt;p&gt;With only 7 methods, the swap chain interface is one the smallest and simplest interfaces in Direct3D.&lt;/p&gt;
&lt;p&gt;Do you have a specific question?&lt;/p&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/197186.aspx</link><pubDate>Tue, 07 Jul 2009 10:21:57 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:197186</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/197186.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=197186</wfw:commentRss><description>&lt;br /&gt;
Hi &lt;strong&gt;Legalize&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for your reply.&lt;br /&gt;
&lt;br /&gt;
Can you send me any sample application with code or any example of swap chain. So that i can understand swap chain. &lt;br /&gt;
&lt;br /&gt;
I have searched a lot on Google but i haven&amp;#39;t get any example or book regarding swap chain. I am making my application in C#.&lt;br /&gt;
&lt;br /&gt;
Please help.&lt;br /&gt;
&lt;br /&gt;
Thanks and Regards&lt;br /&gt;
&lt;br /&gt;
Rajeev Khatri&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/197118.aspx</link><pubDate>Tue, 07 Jul 2009 04:48:35 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:197118</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/197118.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=197118</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;Rajeev Khatri:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;So you mean that we cant use swap chain for rendering multiple windows.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Just the opposite.  You &lt;strong&gt;can&lt;/strong&gt; use a swap chain for rendering to multiple windows.  You can use either the default swap chain on the device, a single additional swap chain for all windows (ignoring the default swap chain on the device), or you can use any number of swap chains for any number of windows and they don&amp;#39;t need to be matched one to one.  The point is that the Present method, either on the IDirect3DDevice9 interface or on the IDirect3DSwapChain9 interface, takes an HWND argument that is used as the target of the presentation if you specify something other than zero.&lt;br /&gt;
&lt;br /&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;Can you tell me any other way for rendering multiple windows.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;
&lt;br /&gt;
Create a device with a back buffer that is as large as the largest window you need to draw.  Whenever you need to draw a window, set the viewport on the back buffer to the size of the window.  Clear the viewport and draw into it.  Call Present on the device with the handle of the window that needs to be drawn and the pSourceRect parameter pointing to a rectangle that is the size of the window.&lt;br /&gt;
&lt;br /&gt;
Poof.&lt;br /&gt;
&lt;br /&gt;
You can now redraw as many windows as you like with a single back buffer.  No extra swap chains needed.  Even better still, you&amp;#39;ll end up with more video memory left over for your textures and other resources because you&amp;#39;re sharing a single back buffer between all the windows instead of giving each window its own back buffer.&lt;br /&gt;
&lt;br /&gt;
Relevant link to Device.Present overload from SlimDX documentation:&lt;br /&gt;
&lt;a href="http://tinyurl.com/m4fb58"&gt;http://tinyurl.com/m4fb58&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
A similar overload of Present is provided for the SwapChain class in SlimDX.</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/196796.aspx</link><pubDate>Mon, 06 Jul 2009 07:27:50 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196796</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196796.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=196796</wfw:commentRss><description>&lt;br /&gt;
Hello &lt;strong&gt;legalize&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for your reply.&lt;br /&gt;
&lt;br /&gt;
So you mean that we cant use swap chain for rendering multiple windows. Can you tell me any other way for rendering multiple windows. I have already mentioned in the above queries that what is the exact problem i am facing. Even i have uploaded a sample application with code and few .jpg image file in which you can easily analize the problem.&lt;br /&gt;
&lt;br /&gt;
Please Help.&lt;br /&gt;
&lt;br /&gt;
Thanks and Regards&lt;br /&gt;
&lt;br /&gt;
Rajeev Khatri&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/196491.aspx</link><pubDate>Sun, 05 Jul 2009 05:02:24 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:196491</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/196491.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=196491</wfw:commentRss><description>&lt;p&gt;A swap chain doesn&amp;#39;t require an HWND in windowed mode (which is what you need for multiple windows or multiple monitors that aren&amp;#39;t in an adapter group device).  You can supply the HWND when you call Present on the swap chain.&lt;/p&gt;
&lt;p&gt;Furthermore, multiple swap chains aren&amp;#39;t needed to handle either multiple windows or multiple monitors.  Its just one way of doing it.  The default swap chain can Present to any HWND in windowed mode.&lt;/p&gt;
&lt;p&gt;Depending on your application architecture, it may be easier to manage a single swap chain (the default swap chain associated with a device) and simply use the viewport to restrict rendering to a portion of the back buffer, Present with an HWND and a RECT specifying the appropriate portion of your back buffer that matches the size of the window to which you&amp;#39;re presenting.&lt;/p&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/195825.aspx</link><pubDate>Thu, 02 Jul 2009 19:49:12 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:195825</guid><dc:creator>NightCreature</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/195825.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=195825</wfw:commentRss><description>Yes, but the technique used for rendering on multiple monitors is also used to render to multiple windows. The swap chain is created for a particular HWND which is what the multimon example shows.</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/195316.aspx</link><pubDate>Wed, 01 Jul 2009 14:14:24 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:195316</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/195316.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=195316</wfw:commentRss><description>If you use SlimDX its all the same.  I&amp;#39;m not sure about XNA.  You should not use Managed DirectX.</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/195277.aspx</link><pubDate>Wed, 01 Jul 2009 11:12:41 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:195277</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/195277.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=195277</wfw:commentRss><description>&lt;br /&gt;
Thanks for your reply. &lt;br /&gt;
&lt;br /&gt;
Acutally I am looking for rendering in Multiple windows not in Multiple monitors. Like i have to display multiple child windows in a Parent window. I have uploaded the sample application in the &lt;strong&gt;above Queries.&lt;/strong&gt; you can check from there, What exactly the problem is? And book as you referred me, I am understanding about &lt;strong&gt;Swap Chain.&lt;/strong&gt; Any Sample application or Sample Code for Swap Chain in C#.&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/194910.aspx</link><pubDate>Tue, 30 Jun 2009 14:54:54 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:194910</guid><dc:creator>NightCreature</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/194910.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=194910</wfw:commentRss><description>Look for rendering in multiple-viewports or on multiple monitors</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/194909.aspx</link><pubDate>Tue, 30 Jun 2009 14:54:24 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:194909</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/194909.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=194909</wfw:commentRss><description>Read &lt;a href="http://www.xmission.com/~legalize/book/download/04-2D%20Applications.pdf"&gt;Chapter 4. 2D Applications&lt;/a&gt; from my book &lt;a href="http://www.xmission.com/~legalize/book/download/"&gt;The Direct3D Graphics Pipeline&lt;/a&gt;. That explains swap chains and Present.  If its still unclear after reading that, ask more questions.</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/194843.aspx</link><pubDate>Tue, 30 Jun 2009 11:02:50 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:194843</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/194843.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=194843</wfw:commentRss><description>&lt;br /&gt;
Thanks for your reply.&lt;br /&gt;
&lt;br /&gt;
Can you send me any sample code or sample application. So that i can understand.&lt;br /&gt;
&lt;br /&gt;
Actually I dont have knowledge of Swap Chain. I have tried a lot but didn,t get successful. &lt;br /&gt;
&lt;br /&gt;
please help me.&lt;br /&gt;
&lt;br /&gt;
Thanks and Regards&lt;br /&gt;
&lt;br /&gt;
Rajeev Khatri&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/194424.aspx</link><pubDate>Mon, 29 Jun 2009 02:43:59 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:194424</guid><dc:creator>legalize</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/194424.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=194424</wfw:commentRss><description>In addition to what Ralf said, you really shouldn&amp;#39;t be using multiple devices for this.  A single device can render to an arbitrary number of windows.&lt;br /&gt;
&lt;br /&gt;
You can create one swap chain per window, or you can create a single swap chain that is as large as the largest window you need to support and simply Present to that window directly.&lt;br /&gt;
&lt;br /&gt;
Devices are very heavyweight objects and there are very few reasons to create more than one of them.  Rendering to multiple windows is definately not one of those few reasons.</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/193946.aspx</link><pubDate>Sat, 27 Jun 2009 06:25:25 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193946</guid><dc:creator>Ralf Kornmann</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193946.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=193946</wfw:commentRss><description>Sorry for the late answer&lt;br /&gt;
&lt;br /&gt;
The managed layer includes support for Direct3D 9, too.&lt;br /&gt;
&lt;br /&gt;
SlimDX is like the managed layer a replacement for the deprecated MDX. Have a look at &lt;a href="http://slimdx.org/"&gt;http://slimdx.org/&lt;/a&gt;&lt;br /&gt;</description></item><item><title>Re: How to render multiple windows using multiple devices?</title><link>http://forums.xna.com/forums/thread/192223.aspx</link><pubDate>Mon, 22 Jun 2009 08:27:22 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:192223</guid><dc:creator>Rajeev Khatri</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/192223.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=27&amp;PostID=192223</wfw:commentRss><description>&lt;br /&gt;
Hi Ralf&lt;br /&gt;
&lt;br /&gt;
Have you seen the uploading files. Actually I am using DirectX-9 Version not DirectX-10. &lt;br /&gt;
&lt;br /&gt;
What is Slimdx? I dont have knowledge about this. Can you explain?&lt;br /&gt;</description></item></channel></rss>