<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx</link><description>Retourner au sommaire des cours Nous avions vu dans le troisi&amp;egrave;me tutorial ( ici ) qu&amp;#39;il y avait plusieurs type de reliasons. Toutes ont des avantages et des d&amp;eacute;fauts. Si la reliaison TriangleList permet de cr&amp;eacute;er n&amp;#39;importe quelle</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1745938</link><pubDate>Wed, 16 Dec 2009 12:57:20 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1745938</guid><dc:creator>XP</dc:creator><description>&lt;p&gt;10/10 for this magnificent and extraordinary tutorial that helped us to get a good A++;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1745938" width="1" height="1"&gt;</description></item><item><title>Annexe : Intégration de Xna dans WPF</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1703481</link><pubDate>Mon, 20 Jul 2009 12:52:13 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1703481</guid><dc:creator>Graphic Stream</dc:creator><description>&lt;p&gt;Retourner au sommaire des cours Il existe de nombreuses m&amp;eacute;thodes pour afficher des sc&amp;egrave;nes&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1703481" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1696926</link><pubDate>Sun, 28 Jun 2009 17:08:16 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1696926</guid><dc:creator>valentin</dc:creator><description>&lt;p&gt;Créé un second vertex buffer et initialize le de la même manière.&lt;/p&gt;
&lt;p&gt;Créé une méthode DrawVertexBuffer qui prend en parametre le vertexbuffer à afficher, un truc du genre :&lt;/p&gt;
&lt;p&gt;protected override void DrawVertexBuffer(VertexBuffer buffer)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.graphics.GraphicsDevice.Vertices[0].SetSource(buffer, 0, VertexPositionColor.SizeInBytes);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.graphics.GraphicsDevice.Indices = this.indexBuffer;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.graphics.GraphicsDevice.VertexDeclaration = new VertexDeclaration(this.graphics.GraphicsDevice, VertexPositionColor.VertexElements);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;graphics.GraphicsDevice.Clear(Color.CornflowerBlue);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// TODO: Add your drawing code here &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.effect.Begin();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach (EffectPass pass in effect.CurrentTechnique.Passes)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pass.Begin();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, 8, 0, 12);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pass.End();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;effect.End();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;base.Draw(gameTime);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Ensuite dans la méthode Draw tu appelle deux fois cette méthode avec tes deux vertexbuffers :&lt;/p&gt;
&lt;p&gt;protected override void Draw(GameTime gameTime)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; this.DrawVertexBuffer(this.VertexBuffer);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; this.DrawVertexBuffer(this.VertexBuffer2);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1696926" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1696921</link><pubDate>Sun, 28 Jun 2009 16:40:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1696921</guid><dc:creator>roberta</dc:creator><description>&lt;p&gt;comment faire pour afficher 2 cubes avec 2 vertexBuffer différents? merci&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1696921" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1696043</link><pubDate>Sun, 21 Jun 2009 17:04:40 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1696043</guid><dc:creator>valentin</dc:creator><description>&lt;p&gt;Oui on peut, Xna supporte tout un tas de formats de base et notamment pour les modèles 3D : X et Fbx.&lt;/p&gt;
&lt;p&gt;Ensuite tu peux trouver sur le net des importers déjà créés ou bien réaliser tes propres importers.&lt;/p&gt;
&lt;p&gt;(pour ce dernier point regarder le livre blanc que je consacre au content pipeline :) ).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1696043" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1696042</link><pubDate>Sun, 21 Jun 2009 16:55:39 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1696042</guid><dc:creator>Amine</dc:creator><description>&lt;p&gt;Merci pour ces merveilleux tutoriaux.&lt;/p&gt;
&lt;p&gt;Q: est ce qu&amp;#39;on peut importer des modélisation créer par blender.&lt;/p&gt;
&lt;p&gt;On attend avec impatience la suite. Encore mille merci. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1696042" width="1" height="1"&gt;</description></item><item><title>Tutoriaux Xna Game Studio : sommaire général</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1695909</link><pubDate>Fri, 19 Jun 2009 14:36:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695909</guid><dc:creator>Graphic Stream</dc:creator><description>&lt;p&gt;(Tutoriaux adapt&amp;eacute;s au Xna Game Studio 3.1) Premi&amp;egrave;re partie : Apprentissage XNA Tutorial&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695909" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#1656680</link><pubDate>Sat, 13 Dec 2008 16:26:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1656680</guid><dc:creator>ahmed</dc:creator><description>&lt;p&gt;tu es fort, j&amp;#39;ai bien aime tes tutorials, ne t&amp;#39;arrête pas la s&amp;#39;il vous plait,continue.&lt;/p&gt;
&lt;p&gt;et surtout !!! sur le HLSL, je suis nul &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1656680" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#692974</link><pubDate>Mon, 19 Mar 2007 08:22:19 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:692974</guid><dc:creator>valentin</dc:creator><description>&lt;p&gt;Oui pour Maya tu as la Maya PLE (personal learning edition) :&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.autodesk.fr/adsk/servlet/index?siteID=458335&amp;amp;id=8803009"&gt;http://www.autodesk.fr/adsk/servlet/index?siteID=458335&amp;amp;id=8803009&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;gratuite dans un but non commercial. C'est moins cher que les 6000 € :)&lt;/p&gt;
&lt;p&gt;Pour 3Ds Max, je me souviens juste d'une trial de 30 jours...&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=5972446"&gt;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=5972446&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=692974" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#689559</link><pubDate>Sat, 17 Mar 2007 23:51:21 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:689559</guid><dc:creator>dEM</dc:creator><description>&lt;p&gt;Bonjour,&lt;/p&gt;
&lt;p&gt;tout d'abord un grand merci pour ce tutoriel, bien fait et facile &amp;#224; suivre, m&amp;#234;me pour les novices !&lt;/p&gt;
&lt;p&gt;Une petite question sur Maya et 3DS... Les prix vus sur internet avoisinent les 6000€ pour les dernieres versions. Mais est-il possible de se procurer des versions moins lourdes et beaucoup plus cheap ???&lt;/p&gt;
&lt;p&gt;Merci par avance, et bonne continuation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=689559" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#538431</link><pubDate>Fri, 02 Feb 2007 23:47:38 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:538431</guid><dc:creator>valentin</dc:creator><description>&lt;p&gt;Oui cela est possible, on touche &amp;#224; ce moment l&amp;#224; aux techniques de blending (m&amp;#233;lange). On verra justement cela plus tard. On peut aussi s'amuser avec la m&amp;#233;thode SetSource vue plus haut dans cet article.&lt;/p&gt;
&lt;p&gt;La programmation manuelle des vertices ici sert principalement &amp;#224; bien comprendre comment s'orienter et se positionner dans l'espace car c'est le lecteur qui cr&amp;#233;&amp;#233; ses formes. La seconde raison c'est qu'on est souvent confront&amp;#233; au besoin de lire des formes 3D dans un format non maitris&amp;#233; par DiretX. Il convient donc d'en extraite toutes les donn&amp;#233;es 3D comme les vertices, les indices ... pour reformer les buffers et appeller soit meme les m&amp;#233;thodes de dessin. Enfin effectivement on peut &amp;#234;tre amen&amp;#233; &amp;#224; cr&amp;#233;er ses formes sois-m&amp;#234;me. C'est d'abord un exercice amusant et c'est ensuite bien utile dans de nombreux cas. Les effets de particules comme vous le dites, mais aussi l'affichage de grilles de graduation dans les &amp;#233;diteurs de monde, il y'a des tas de cas o&amp;#249; cela peut &amp;#234;tre utile.&lt;/p&gt;
&lt;p&gt;Merci pour tes remarques :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=538431" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#534853</link><pubDate>Thu, 01 Feb 2007 21:55:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:534853</guid><dc:creator>william montaz</dc:creator><description>&lt;p&gt;Tout d'abord. Merci mille fois. Tes tutos sont excellents.&lt;/p&gt;
&lt;p&gt;Etant moi meme &amp;#233;tudiant en informatique ca me passione bien.&lt;/p&gt;
&lt;p&gt;Deux questions : en utilisant les indices, on peut remarquer que les couleurs ne sont pas trait&amp;#233;es de la meme facon ke dans le tuto 5. logique vu ke l'on a plus ke 8 vertices et une couleur pour chaque. Existe-t-il des classes pouvant associer plusieurs couleurs a un vertex ? ( c un peu bizarre comme question mais ki sait ?! )&lt;/p&gt;
&lt;p&gt;vu que pour des figures complexes on utilise d'autres logiciels ( 3dsmax... ), a quoi peut servir la programmation &amp;quot;manuelle&amp;quot; des vertices ( hormis son caractere instructif ) ? cr&amp;#233;e des effets de particules ? projections ???&lt;/p&gt;
&lt;p&gt;j'attend impatiemment les prochains tutos. &lt;/p&gt;
&lt;p&gt;ps: sur le net, je me lache pour l'orthographe donc dsl aux puristes horrifi&amp;#233;s!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=534853" width="1" height="1"&gt;</description></item><item><title>re: XNA Tutorial 6 : Les indices</title><link>http://msmvps.com/blogs/valentin/archive/2007/01/18/xna-tutorial-6-les-indices.aspx#533538</link><pubDate>Thu, 01 Feb 2007 09:47:53 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:533538</guid><dc:creator>jago138</dc:creator><description>&lt;p&gt;Bonjour,&lt;/p&gt;
&lt;p&gt;je vous f&amp;#233;licite pour ces tutoriels qui mon beaucoup aider dans mon apprentissage...&lt;/p&gt;
&lt;p&gt;un grand merci a vous !&lt;/p&gt;
&lt;p&gt;en plus ils sont tres bien expliquer. chapeau !&lt;/p&gt;
&lt;p&gt;j'attends avec grande impatience la suite :)&lt;/p&gt;
&lt;p&gt;++&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=533538" width="1" height="1"&gt;</description></item></channel></rss>