<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>RB Whitaker&#039;s Wiki - new forum posts</title>
		<link>https://rbwhitaker.wikidot.com/forum/start</link>
		<description>Posts in forums of the site &quot;RB Whitaker&#039;s Wiki&quot; - A Game Development Launchpad</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 15 Nov 2026 03:48:33 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-17934021#post-8128660</guid>
				<title>Collab #12 Announcement</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-17934021/collab-12-announcement#post-8128660</link>
				<description></description>
				<pubDate>Thu, 21 May 2026 21:54:40 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The forum is currently disabled because of recent spam attacks. But it is visible if you click on the right things. We've often organized collabs here in the forum, and I'd like to try to keep that chain alive for now, while we sort through what should happen with the forum going forward.</p> <p>So this is a marker to indicate that we're running Collab #12 on 31 May 2026, probably from 8am to 4pm MDT. You can come over to the Discord server to view more of the details and to join in the fun!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-8505826">Community Projects / Collab #12</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-17934021/collab-12-announcement">Collab #12 Announcement</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-17800335#post-7924162</guid>
				<title>Re: test</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-17800335/test#post-7924162</link>
				<description></description>
				<pubDate>Sun, 26 Apr 2026 20:59:42 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>response!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-580408">Website Discussion and Feedback / Other</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-17800335/test">test</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-17800335#post-7924150</guid>
				<title>test</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-17800335/test#post-7924150</link>
				<description></description>
				<pubDate>Sun, 26 Apr 2026 20:56:20 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>first post, I guess</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-580408">Website Discussion and Feedback / Other</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-17800335/test">test</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853648#post-7910766</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853648/events#post-7910766</link>
				<description></description>
				<pubDate>Thu, 23 Apr 2026 21:00:16 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>To really get to the bottom of this issue, I think I'd need to see your actual code. It's hard to diagnose the issue without seeing that.</p> <p>Events can be, and are, invoked, but only from within the class that defines it. You can't tell another class to raise/invoke its event, because only the object that owns it is allowed to do that. (Though you could sidestep this limitation by creating a method like <tt>public void RaiseChangedEvent()</tt>, which can be called from anywhere.)</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853648/events">Events</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853612#post-7908595</guid>
				<title>Title</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853612/enumerations#post-7908595</link>
				<description></description>
				<pubDate>Thu, 23 Apr 2026 05:29:28 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You're right, Anon. I fixed the tutorial a long time ago (2016?) and never replied to this comment. I'm sure you won't ever see this, because &quot;Anon&quot; and 11 years ago, but&#8230; here we are.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853612/enumerations">Enumerations</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-17573744#post-7524641</guid>
				<title>Aspadol 100 mg: Tapentadol Tablet for Effective Pain Management</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-17573744/aspadol-100-mg:tapentadol-tablet-for-effective-pain-manageme#post-7524641</link>
				<description></description>
				<pubDate>Wed, 28 Jan 2026 05:51:41 +0000</pubDate>
				<wikidot:authorName>James Cooper</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Aspadol 100&#160;mg is a prescription medication used for the management of moderate to severe pain. It contains tapentadol, a centrally acting analgesic that works through a dual mechanism by reducing pain signal transmission and enhancing the body’s natural pain control pathways. Aspadol 100&#160;mg is commonly prescribed for musculoskeletal pain, injury-related discomfort, and certain nerve pain conditions. Clinical use supports its effectiveness when taken as directed under medical supervision. The medication is known for providing balanced pain relief with a predictable response profile.<br /> For more information on Aspadol 100&#160;mg, visit Online Pills Store</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-580408">Website Discussion and Feedback / Other</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-17573744/aspadol-100-mg:tapentadol-tablet-for-effective-pain-manageme">Aspadol 100 mg: Tapentadol Tablet for Effective Pain Management</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-851702#post-7499180</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-851702/looping-in-c#post-7499180</link>
				<description></description>
				<pubDate>Sun, 11 Jan 2026 10:28:17 +0000</pubDate>
				<wikidot:authorName>Rey</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>before that, im thanking you for this crash course since i have no programming background whatsoever and this course written so casual that i easily able to follow it. first i was doing this:</p> <div class="code"> <pre><code>for (float baris = 0; baris &lt; 6; baris++) { for (float kolom = 0; kolom &lt; baris + 0.5; kolom = kolom + (float)0.5f) { Console.Write(&quot;*&quot;); } Console.WriteLine(); }</code></pre></div> <br /> with output like this: <div class="code"> <pre><code>* *** ***** ******* ********* ***********</code></pre></div> <br /> i figured out myself on how to add 2 stars every line by using float, but im absolutely clueless about adding the declining space so i clicked the first hint and then know what to do (my bad :c ): <div class="code"> <pre><code>for (float baris = 0; baris &lt; 6; baris++) { for (float kolom = 0; kolom &lt; baris + 0.5; kolom = kolom + (float)0.5f) { for (float spasi = 4; spasi &gt; baris - 1; spasi--) { Console.Write(&quot; &quot;); } Console.Write(&quot;*&quot;); } Console.WriteLine(); }</code></pre></div> <br /> with output like this (after trial and error understanding the logic behind it): <div class="code"> <pre><code> * * * * * * * * * * * * * * * * * * * * * * * * * ***********</code></pre></div> <br /> then stuck again since idk how to not let the spaces fill between the stars. and, well, i clicked hint again, this time all of it since 2nd hint only tips about how to make the spaces decreasing each rows. and i just realised my mistake for nesting the last for statement so i made an adjustment and it looked like this: <div class="code"> <pre><code>for (float baris = 0; baris &lt; 6; baris++) { for (float spasi = 4; spasi &gt; baris - 1; spasi--) { Console.Write(&quot; &quot;); } for (float kolom = 0; kolom &lt; baris + 0.5; kolom = kolom + (float)0.5f) { Console.Write(&quot;*&quot;); } Console.WriteLine(); }</code></pre></div> <br /> and im hyped about that code since the output is like this: <div class="code"> <pre><code> * *** ***** ******* ********* ***********</code></pre></div> <p>pretty happy with the result, im just pretty much clueless about what is what lol</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-851702/looping-in-c">Looping in C#</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1673938#post-7431760</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-1673938/importing-3d-models-into-the-monogame-content-pipeline#post-7431760</link>
				<description></description>
				<pubDate>Tue, 18 Nov 2025 22:39:42 +0000</pubDate>
				<wikidot:authorName>John</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>If you're storing 3D models, LiDAR scans, gaussian splats, or digital twins, check out echo3D, a 3D DAM solution to store, search, visualize, share, link, and manage these massive 3D/spatial assets. It's has an intuitive user interface and a bunch of integrations to most 3D design tools.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-676888">MonoGame / MonoGame Questions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-1673938/importing-3d-models-into-the-monogame-content-pipeline">Importing 3D Models into the MonoGame Content Pipeline</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853659#post-6802602</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853659/wrap-up#post-6802602</link>
				<description></description>
				<pubDate>Fri, 31 Jan 2025 13:58:06 +0000</pubDate>
				<wikidot:authorName>Francis</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi RB, very nice overview. Coming from embedded C, all those concepts seem completely on the other end of the spectrum, so this crash course was of great help to get started with C#. I ultimately want to create games and I figured C wasn't a very modern carrier to this end, so I aim at MonoGame.</p> <p>One thing I found hard was to imagine how these concepts are applicable in practice. They were not hard to grasp, but they are hard to justify. It looks like there are many ways to accomplish one thing, not all good, not all bad.</p> <p>Something that would be extremely valuable to me is some kind of &quot;cheatsheet&quot; that lists all the notable features with a few real-world use cases, or a broader justification for them. For example, why would someone define an indexer, let alone with multiple indexes? There must be a reason for this to exist, and the vector example did not convince me, because unless I'm mistaken, the usual class get/set properties already achieve the same purpose in a straightforward way.</p> <p>Thanks for this crash course, it really is a little gem!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853659/wrap-up">Wrap Up</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136039#post-6262678</guid>
				<title>You&#039;re awesome!</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136039/troubleshooting:drawing-text-with-spritefonts#post-6262678</link>
				<description></description>
				<pubDate>Mon, 04 Dec 2023 00:14:30 +0000</pubDate>
				<wikidot:authorName>Lasse Lauwerys</wikidot:authorName>				<wikidot:authorUserId>8923097</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you!! I wouldn't have been able to find this solution without your post!<br /> How do you even find something like this? You must be a super genius!<br /> Thanks!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136039/troubleshooting:drawing-text-with-spritefonts">Troubleshooting: Drawing Text With Spritefonts</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-622093#post-6149651</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-622093/monogame-texture-atlases#post-6149651</link>
				<description></description>
				<pubDate>Fri, 14 Jul 2023 06:58:38 +0000</pubDate>
				<wikidot:authorName>Pitor</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hello</p> <p>I can't find out, how to make different copies of particular texture copied to one sprite.</p> <p>I mean, something like creating scrren with for example 100 puzzles that appears randomly on destination screen.</p> <p>For the beginning I take texture from stream</p> <p>fTMP.t2dPicSource = Texture2D.FromStream(device, sstream);</p> <p>Later I can copy part of it to texture that will be displayed</p> <p>fTMP.screenRectangle = new Rectangle(fTMP.iOffsetXPic, fTMP.iOffsetYPic, fTMP.iOffsetWidthPic, fTMP.iOffsetHeightPic);<br /> fTMP.t2dPicToDisplay = fTMP.t2dPicSource.CreateTexture(graphicsDevice, fTMP.screenRectangle);</p> <p>And to display it</p> <p>Sprite.Draw(fTMP.t2dPicToDisplay, fTMP.screenRectangle, Microsoft.Xna.Framework.Color.White * fTMP.fOpacity);</p> <p>But the problem is with Texture2D.FromStream(), because it returns width not bigger than 2048 pixels.</p> <p>So, how can I get the part of the source texture, if it exceeds 2048 pixels? i. e. from 3000+ pixel?</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-622093/monogame-texture-atlases">MonoGame Texture Atlases</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853659#post-6103650</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853659/wrap-up#post-6103650</link>
				<description></description>
				<pubDate>Thu, 01 Jun 2023 21:34:57 +0000</pubDate>
				<wikidot:authorName>Dr BPW</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>10/10 amazing.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853659/wrap-up">Wrap Up</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853647#post-6067519</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853647/delegates#post-6067519</link>
				<description></description>
				<pubDate>Fri, 28 Apr 2023 21:47:36 +0000</pubDate>
				<wikidot:authorName>Dr BPW</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi! Not sure how important this is, but I think I've found a typo:</p> <p>&quot;The part that says the same is the iteration down the array.&quot; - I think 'says' should be 'stays' here?</p> <p>Also, you use the heading &quot;Defining a Delegate Type&quot; twice - is this intentional?</p> <p>Thank you so much for these amazing tutorials. Keep up the great work! Or don't - you've done enough.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853647/delegates">Delegates</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853648#post-6060465</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853648/events#post-6060465</link>
				<description></description>
				<pubDate>Thu, 20 Apr 2023 11:03:53 +0000</pubDate>
				<wikidot:authorName>H W</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi, I'm having an issue with the code examples you've put in your C# Events tutorial.<br /> I was going through it and all was fine until I reached the &quot;second flavour for raising an event&quot;.</p> <p>You used the following code:</p> <p>Action changed = Changed;<br /> if (changed != null) { Changed.Invoke(); }</p> <p>Which could be shorthanded to:</p> <p>Changed?.Invoke();</p> <p>This made sense, but my issue is that Changed is an event inside the &quot;Point&quot; class, and (after researching why it wasn't working) I found that events can't be invoked, only subsribed.</p> <p>Every time I go to write &quot;Changed&quot; it instantly turns it into &quot;changed&quot;, because that's the local variable.<br /> So now I have code that doesn't work and an error telling me &quot;The name 'Changed' does not exist in the current context&quot;.<br /> How do I fix it, and how come yours works and mine doesn't??</p> <p>Thank you in advance :)</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853648/events">Events</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853631#post-6053686</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853631/file-i-o-in-c#post-6053686</link>
				<description></description>
				<pubDate>Wed, 12 Apr 2023 10:25:33 +0000</pubDate>
				<wikidot:authorName>DrBPW</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi, I think I have found a typo on this page:</p> <p>&quot;Writing the File</p> <p>There's one very simple way to read from a file in C#. A File class has already been created for you that you can use to quickly write stuff to a file.&quot;</p> <p>Shouldn't this be 'one very simple way to write to a file'? Seems a bit confusing the way it is.</p> <p>Thanks again for these exceptional tutorials!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853631/file-i-o-in-c">File I/O in C#</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-15744670#post-6018446</guid>
				<title>confused about C# Pyramid &quot;assignment&quot;</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-15744670/confused-about-c-pyramid-assignment#post-6018446</link>
				<description></description>
				<pubDate>Thu, 16 Mar 2023 17:07:54 +0000</pubDate>
				<wikidot:authorName>Tango!</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hello everyone, I'm kind of new to programming. I've learnt all the beginning stuff of C++ and JavaScript, but I'm now focussing on C#.</p> <p>These tutorials have been amazingly clear and helpful, but I've reached the pyramid task and, bottom line, my brain died. I get loops, I get (mostly) how they work, but I don't get this. I'm confused about how that can print a triangle of *s.</p> <p>I've experimented with taking bits of the code away to see what it would display but I still can't figure it out. Could someone please break this down for me??<br /> Thank you in advance! :)</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-505041">C# / General C# Programming</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-15744670/confused-about-c-pyramid-assignment">confused about C# Pyramid &quot;assignment&quot;</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-853620#post-6008087</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-853620/properties#post-6008087</link>
				<description></description>
				<pubDate>Fri, 10 Mar 2023 17:57:52 +0000</pubDate>
				<wikidot:authorName>DrBPW</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Just let me thank you for these incredible tutorials. You have earned yourself a book sale when I'm done here!</p> <p>Ben</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-853620/properties">Properties</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-15727109#post-6006725</guid>
				<title>Big Big Thanks to R.B. Whitaker For This Site</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-15727109/big-big-thanks-to-r-b-whitaker-for-this-site#post-6006725</link>
				<description></description>
				<pubDate>Fri, 10 Mar 2023 00:01:41 +0000</pubDate>
				<wikidot:authorName>r3g</wikidot:authorName>				<wikidot:authorUserId>8515672</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've always had a ton of trouble when trying to get into programming over the last few years in my many attempts to self learn programming. This crash course after finding it has been a huge help to my ant brain in understanding concepts because of how well it is written such as methods/functions, OOP, and loops work.</p> <p>It honestly takes into account that someone may have absolutely no experience programming at all. I am most definitely buying the C# Player's Guide at some point in the future to support this project that R.B. has undertaken. Also I enjoy the old style look of the site.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-580408">Website Discussion and Feedback / Other</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-15727109/big-big-thanks-to-r-b-whitaker-for-this-site">Big Big Thanks to R.B. Whitaker For This Site</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-851678#post-5729871</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program#post-5729871</link>
				<description></description>
				<pubDate>Thu, 24 Nov 2022 20:35:33 +0000</pubDate>
				<wikidot:authorName>NewToC#</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Love the site, but missing the images such as &quot;StartPage.png&quot;, etc. on this page &quot;Hello World: Your First C# Program&quot;</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program">Hello World - Your First C# Program</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-2267859#post-5575521</guid>
				<title>Re: ASCII Text Game Results</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-2267859/ascii-text-game-results#post-5575521</link>
				<description></description>
				<pubDate>Sun, 11 Sep 2022 05:02:07 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just saw somebody else's game that looked quite a bit like this, and it made me dig around to find this. This was a fun game to make!</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-2149112">Community Projects / Collab #7 (Spring 2017)</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-2267859/ascii-text-game-results">ASCII Text Game Results</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-851678#post-5533022</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program#post-5533022</link>
				<description></description>
				<pubDate>Fri, 12 Aug 2022 16:38:58 +0000</pubDate>
				<wikidot:authorName>HRHSII</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Hi,<br /> None of the images show in this tutorial.<br /> Trying to open the images as a new tab displays:<br /> The file does not exist.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program">Hello World - Your First C# Program</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139711#post-5307542</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139711/packaging-your-game-for-other-xna-users#post-5307542</link>
				<description></description>
				<pubDate>Mon, 09 May 2022 07:16:23 +0000</pubDate>
				<wikidot:authorName>erwingame</wikidot:authorName>				<wikidot:authorUserId>8028637</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Nice informartion</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139711/packaging-your-game-for-other-xna-users">Packaging Your Game For Other XNA Users</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139715#post-5307538</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139715/using-clickonce-to-distribute-your-game#post-5307538</link>
				<description></description>
				<pubDate>Mon, 09 May 2022 07:15:33 +0000</pubDate>
				<wikidot:authorName>erwingame</wikidot:authorName>				<wikidot:authorUserId>8028637</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Nice explanation, thanks</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139715/using-clickonce-to-distribute-your-game">Using Clickonce To Distribute Your Game</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-562059#post-5307537</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-562059/troubleshooting:the-game-loop#post-5307537</link>
				<description></description>
				<pubDate>Mon, 09 May 2022 07:14:57 +0000</pubDate>
				<wikidot:authorName>erwingame</wikidot:authorName>				<wikidot:authorUserId>8028637</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Nice explanation</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-562059/troubleshooting:the-game-loop">Troubleshooting: The Game Loop</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141650#post-5180707</guid>
				<title>Technical optimisation</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader#post-5180707</link>
				<description></description>
				<pubDate>Wed, 19 Jan 2022 00:13:52 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>One rather <strong>technical</strong> question.</p> <p>Reading again the following excerpt…</p> <blockquote> <p>In the first pass, render the entire scene as you usually do, but anything that has any transparency (alpha value &lt; 1), set it to 0 so that it doesn't get rendered at all. In the second pass, do the same thing, but this time, anything that is completely opaque (alpha value == 1), set the value to 0, and render everything else with their proper alpha values.</p> </blockquote> <p>… and having garnered some more useful knowledge about shaders since my first visit to your tutorials, I am now aware that using mathematical computations instead of conditionals (ie <em>if</em>) is apparently better suited to the way shaders work (to go faster); is there such a way to program your suggestion? I was thinking about using <em>min</em> and/or <em>max</em>, but realize I am left scratching my head.</p> <p>My first idea for the first pass was to take α-1, multiply it by a big number, then add 1, and finally use <em>saturate</em>.</p> <div class="code"> <pre><code>color.a = saturate((color.a - 1) * some_big_number + 1);</code></pre></div> <br /> Nevertheless, I am unsure if such a fitting number, as it depends on the floating-point precision HLSL offers (color.a - 1 could be negative yet very close to zero).<br /> And it may not be possible to do something alike for the second pass.<br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader">Troubleshooting: Transparency Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141650#post-5179985</guid>
				<title>Re: Transparency shader does not render models</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader#post-5179985</link>
				<description></description>
				<pubDate>Mon, 17 Jan 2022 21:33:54 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Having run into this very same problem (I have moving sprites drawn on quads in a first-person labyrinth, whose walls are made up of cubes drawn as 3D primitives, and a skybox behind), I have found this answer, although it does not seem to be explained very educationally…<br /> (remove space)<br /> gamedev.stackexchange . com/a/131914</p> <p>As an idea: I could use two lists of elements to be drawn instead of just one, namely, one for cubes and one for quads, but I feel this approach somewhat lacks ‘genericness’. Isn’t there a more standard way using the depth buffer?</p> <p>PS: I have just implemented my idea, and it works perfectly! :) Not even performance problems, although the program performs sorting at every update; I guess looking at what sorting algorithm is used underneath would be a good idea if you really want to push optimisation, though.</p> <div class="code"> <pre><code> liste_opaques.ForEach(element =&gt; element.Draw3D(this)); Comparison&lt;Element&gt; comparaison = (element1, element2) =&gt; Vector2.Distance(element2.Position, position_joueur).CompareTo( Vector2.Distance(element1.Position, position_joueur) ); liste_transparents.Sort(comparaison); // tri selon distance décroissante au joueur liste_transparents.ForEach(element =&gt; element.Draw3D(this));</code></pre></div> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader">Troubleshooting: Transparency Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-563182#post-5122663</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-563182/troubleshooting:time-steps#post-5122663</link>
				<description></description>
				<pubDate>Mon, 01 Nov 2021 17:59:48 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am not sure for your first problem (the speed issue), but as for the second one, I am using MonoGame and had no problem with <em>IsFixedTimeStep</em> set to either <em>true</em> or <em>false</em>. We would probably need to take a look at the whole code to have an idea of what went wrong; in case you still have it, maybe you can share it, or at least the parts that may be relevant.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-563182/troubleshooting:time-steps">Troubleshooting: Time Steps</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-563182#post-5122662</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-563182/troubleshooting:time-steps#post-5122662</link>
				<description></description>
				<pubDate>Mon, 01 Nov 2021 17:59:35 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am not sure for your first problem (the speed issue), but as for the second one, I am using MonoGame and had no problem with <em>IsFixedTimeStep</em> set to either <em>true</em> or <em>false</em>. We would probably need to take a look at the whole code to have an idea of what went wrong; in case you still have it, maybe you can share it, or at least the parts that may be relevant.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-563182/troubleshooting:time-steps">Troubleshooting: Time Steps</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-566090#post-5120742</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-566090/troubleshooting:gametime#post-5120742</link>
				<description></description>
				<pubDate>Sat, 30 Oct 2021 09:28:29 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I would like to point out just a small mistake: towards the end, it is written ‘the <em>GameTime</em> and <em>TimeSpan</em> classes’, although as said before, <em>TimeSpan</em> is rather a structure (than a class).</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-566090/troubleshooting:gametime">Troubleshooting: GameTime</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-166175#post-5120062</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-166175/troubleshooting:video-playback#post-5120062</link>
				<description></description>
				<pubDate>Fri, 29 Oct 2021 14:00:53 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have the same problem (in MonoGame) and according to my findings online, the reason is that my project uses the OpenGL template: these two classes (<em>Video</em> and <em>VideoPlayer</em>) are unimplemented for it…<br /> The following comment gives a (complicated?) workaround, <strong>which I have not tested at all</strong>.<br /> <em>(remove space)</em><br /> community.monogame.net /t/videoplayer-class-is-missing/122/2</p> <p>If someone has a simple solution, or can make the one from the above link work, then you are more than welcome to share it. I shall first try Shai’s one; by the way, I have the DLL in the two following paths, to be more specific:<br /> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86<br /> C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Xbox360</p> <hr /> <p>Update: I tried adding the DLL, but it did not help. Then I tried with a DirectX project, and ran into… another error:</p> <blockquote> <p>Unhandled exception. System.NotImplementedException: The method or operation is not implemented.<br /> at Microsoft.Xna.Framework.Media.VideoPlayer.PlatformSetIsLooped()<br /> at ProjetDirectX.Game1.Update(GameTime gameTime) in &lt;path&gt;\Game1.cs:line 52</p> </blockquote> <p>I guess this means that <em>IsLooped</em> is declared in an interface, but not implemented.<br /> So I tried adding the DLL to the executable folder, but it did not work. Same story in the project folder.<br /> Shai: without using Visual Studio, do you know which specific operations should be performed? I mean, where should the DLL file be added, and should some other file (such as the .csproj) be modified? Thanks to anyone who could help.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-166175/troubleshooting:video-playback">Troubleshooting: Video Playback</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139951#post-5119603</guid>
				<title>Post-Processing Effects tutorial</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139951/troubleshooting:rendering-to-a-texture#post-5119603</link>
				<description></description>
				<pubDate>Thu, 28 Oct 2021 20:57:49 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> Just a quick notice: the following excerpt ought be changed to reflect that ‘11 - Post-Processing Effects’ now does. ;)</p> <blockquote> <p>I'm planning on putting a few tutorials in the HLSL and Effects Tutorials category that use this, but I haven't done that yet, so you might want to check back there later.</p> </blockquote> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139951/troubleshooting:rendering-to-a-texture">Troubleshooting: Rendering to a Texture</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141651#post-5118868</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141651/troubleshooting:post-processing-effects#post-5118868</link>
				<description></description>
				<pubDate>Wed, 27 Oct 2021 19:07:02 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> I have just tried the first plain shader, and only got the texture of the helicopter as a result; this is because you have to get the <strong>screen</strong> as your texture. (And not the texture of the helicopter; in my case, this is caused by the homonymous name <em>texture</em> from a former tutorial.)<br /> The tutorial does not seem to say it, but you have to write some C# to achieve this; you can still find the relevant code by clicking on ‘view source code’. <strong>Look for function <em>DrawSceneToTexture</em>.</strong></p> <p>PS: I am now getting to the ‘2 - Rendering to a Texture’ tutorial from the ‘Advanced XNA Tutorials’ list, and realize this is <strong>exactly</strong> what is needed here! I guess it would be an extremely good idea to hyperlink to it in the present tutorial.<br /> <em>(remove space)</em><br /> rbwhitaker.wikidot.com /render-to-texture</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141651/troubleshooting:post-processing-effects">Troubleshooting: Post Processing Effects</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141650#post-5118702</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader#post-5118702</link>
				<description></description>
				<pubDate>Wed, 27 Oct 2021 15:39:24 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I used the (bumped and textured) helicopter with a skybox from previous tutorials, and although the transparent helicopter was fine, this yielded a black background instead of the skybox. It appears that switching to alpha blending mode somehow discards the rendering of the skybox (I suspect its <em>SrcBlend</em> might be zero by default?).<br /> I have just fixed this by adding the following line at the beginning of <em>Pass1</em> in the <em>Skybox</em> technique from Skybox.fx.</p> <div class="code"> <pre><code>AlphaBlendEnable = FALSE;</code></pre></div> <p>I wonder whether you can switch this alpha blending from the C# code; this remark of yours seems to imply that it is possible.</p> <blockquote> <p>You can actually specify these render states from inside of an XNA game as well.</p> </blockquote> <p>Nevertheless, the 2D tutorial on blending only talks about a <em>BlendState</em> which you can use associated with a <em>SpriteBatch</em>, and looking for any blending in the API documentation, I found… said <em>BlendState</em>. And no mention of blending in the documentation for <em>RasterizerState</em> and <em>GraphicsDeviceManager</em>. So, could you please elaborate on how to manage modifying the blending mode directly from the game code? It would be a nice addition to the tutorial.</p> <p>I also notice that the program is getting a bit jerky (the framerate has gone down a little); is it reasonable that a mere single transparent bump-textured model with a skybox and a camera rotation already has such an impact on performance? (I do not think this is really caused by my hardware, since it is more recent than the tutorial itself.) Or do shaders take their toll?</p> <p>PS: since I was also wondering whether the constant switching between alpha blending and non-alpha blending was the possible cause for the lower framerate, I have just found a different workaround that seems not to have this drawback!<br /> I just set the skybox’s alpha to 1. (I wonder what the default value is; apparently, it may be 0 rather than 1, which seems unreasonable to me, but there may be some good reason I am unaware of.)<br /> For those interested, in practice: still in Skybox.fx, instead of</p> <div class="code"> <pre><code> AlphaBlendEnable = FALSE;</code></pre></div> <br /> in the technique, I put the following in the pixel shader (which is quite the same as applying the transparency in the tutorial): <div class="code"> <pre><code> float4 color = texCUBE(SkyBoxSampler, normalize(input.TextureCoordinate)); color.a = 1.0; return color;</code></pre></div> <p>PPS: found it! (I realized my mistake was thinking that <em>GraphicsDevice</em> was from class <em>GraphicsDeviceManager</em>, which it is not.) To modify the blending state (to opaque), add the following lines just before drawing the skybox.</p> <div class="code"> <pre><code> BlendState blendStateSkybox = new BlendState(); GraphicsDevice.BlendState = blendStateSkybox;</code></pre></div> <br /> Apparently, this means that the default BlendState object is in opaque mode.<br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141650/troubleshooting:transparency-shader">Troubleshooting: Transparency Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141647#post-5117517</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141647/troubleshooting:creating-a-reflection-shader#post-5117517</link>
				<description></description>
				<pubDate>Tue, 26 Oct 2021 09:23:11 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> I just have a couple of quick remarks.</p> <p>1) Regarding <em>WorldInverseTranspose</em>: I am not sure the following sentence is correct; did you mean <em>before</em> the transformation, considering the matrix <em>WorldInverseTranspose</em> is used? And by the way, <strong>why</strong> do we need to do this? Isn’t <em>input.Normal</em> already in absolute coordinates, just like <em>input.Position</em>? I am a little confused.</p> <blockquote> <p>In the next line, we calculate where the vertex's normal is, after the world transformation.</p> </blockquote> <p>2) In <em>SkyboxSampler</em>, there is a new parameter called <em>mipfilter</em>; nevertheless, the tutorial gives no explanation about it. I think it would be a good idea. Looking for it, I see a notion of ‘mipmap’, which is new too.<br /> ‘The filtering option for combining pixels between two mipmap levels.’<br /> ‘MipFilter is used durring autogeneration of mipmaps. It describes the minification filter used to generate lower levels.’</p> <p>3) I notice there is no image capture in this tutorial, as opposed to the previous ones; I think it would be nice to include one: it would be useful, especially for viewing the page offline (so that you do not have to play the video).</p> <p>4) The end of the tutorial claims there ‘might’ be refraction and simple glass tutorials, apparently, but are these two lacking from the ‘Effects and HLSL Tutorials’ list? (How unfortunate!)</p> <blockquote> <p>The next step might be to try out the refraction and simple glass shaders</p> </blockquote> <p>Once again, thank you for another nice tutorial.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141647/troubleshooting:creating-a-reflection-shader">Troubleshooting: Creating a Reflection Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141633#post-5116696</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes#post-5116696</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2021 10:39:15 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> I would like to notify you of what I think are two small mistakes:<br /> 1) In the following sentence, I guess you rather meant <em>CullMode.CullClockwiseFace</em>.</p> <blockquote> <p>By setting the cull mode to CullMode.None', we are saying &quot;draw only the backward triangles&quot;.</p> </blockquote> <p>2) The following instruction causes a compiling error because of type conflict; I think this is caused by the fact that <em>string</em> is mutable, and thus, the first <em>skyBoxTexture</em> gets interpreted as the local parameter of the <em>Skybox</em> constructor rather than as the instance variable.</p> <div class="code"> <pre><code>skyBoxTexture = Content.Load&lt;TextureCube&gt;(skyboxTexture);</code></pre></div> <br /> Switching to the following line solves the problem: <div class="code"> <pre><code>this.skyBoxTexture = Content.Load&lt;TextureCube&gt;(skyboxTexture);</code></pre></div> <p>Thank you for the great tutorial(s).</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes">Troubleshooting: Skyboxes</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141633#post-5116690</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes#post-5116690</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2021 10:32:13 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I had the same problem, and indeed, according to the error message (‘You cannot modify a default rasterizer state object.’), you have to create another RasterizerState. And if you try using a single non-default RasterizerState for both cull modes, you run into a problem too (‘You cannot modify the rasterizer state after it has been bound to the graphics device!’).<br /> So, I think your solution is natural; I can confirm it works for me too (I had done the same, except without factorising inside an ancillary function).</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes">Troubleshooting: Skyboxes</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141633#post-5116679</guid>
				<title>Re: Here&#039;s my story</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes#post-5116679</link>
				<description></description>
				<pubDate>Mon, 25 Oct 2021 10:15:52 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It looks like your shader (.fx file) is looking for TANGENT0, although it should not in this tutorial.<br /> So you can either remove the line(s) that does/do this in your .fx file, or generate the tangent frames that your model lacks; see here (the page is referring the exact same error):<br /> <em>(remove spaces)</em><br /> rbwhitaker.wikidot . com/bump-map-shader-2</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141633/troubleshooting:skyboxes">Troubleshooting: Skyboxes</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141630#post-5115817</guid>
				<title>Re: Nothing happens</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141630/troubleshooting:creating-a-bump-map-shader#post-5115817</link>
				<description></description>
				<pubDate>Sun, 24 Oct 2021 08:03:11 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There may a need to regenerate the tangent frames from XNA-MonoGame. I know I had to do it to make the helicopter example work: without doing this, the image got pitch black. Actually, during the 3D tutorials, I also had to first convert the Helicopter.fbx file from the old to the new format, so this may have had some effect on the tangent frames, but this is speculative.<br /> (Since your comment is older than the new format, it may be an entirely different problem, but this can still be useful to other people!)</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141630/troubleshooting:creating-a-bump-map-shader">Troubleshooting: Creating a Bump Map Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141630#post-5115557</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141630/troubleshooting:creating-a-bump-map-shader#post-5115557</link>
				<description></description>
				<pubDate>Sat, 23 Oct 2021 23:44:19 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>One big caveat: in your shader code summary, you did not remove the declarations of <em>DiffuseColor</em> and <em>DiffuseIntensity</em>, but this made my execution throw an exception. This is caused by my having two <em>SetValue</em> in Game1.cs associated to them (I have to initialize HLSL parameters this way because I target OpenGL platforms(1)), while the HLSL compiler actually <strong>removes</strong> (some) dead stores(2), including these two variables!<br /> Conclusion: both variables should be simply removed.</p> <p>(1) See this other comment of mine (remove spaces):<br /> rbwhitaker.wikidot . com/troubleshoot:shaders-in-xna/comments/show#post-5113594</p> <p>(2) See the documentation (remove spaces):<br /> docs.monogame . net/articles/content/custom_effects.html</p> <blockquote> <p>The effect compiler is aggressive about removing unused parameters, be sure the parameters you are setting are actually used.</p> </blockquote> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141630/troubleshooting:creating-a-bump-map-shader">Troubleshooting: Creating a Bump Map Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141628#post-5115552</guid>
				<title>Texture location</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader#post-5115552</link>
				<description></description>
				<pubDate>Sat, 23 Oct 2021 23:25:54 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>One small piece of good news regarding the following excerpt:</p> <blockquote> <p>Probably, right now, you have the textures located in the same directory as your model, but not included in your project. We will want to include the textures into our project so that we can load them in our game, but if you just include them as they are, you will likely get an error that says you are trying to load the texture twice. (The model will try to load it by default, and now you are trying to load it yourself.)</p> </blockquote> <p>In MonoGame at least, you <strong>can</strong> add the texture that is located with the model to the ‘content project’ and then load it through the code directly without any problem. It works fine for me.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader">Troubleshooting: Texturing Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141628#post-5115318</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader#post-5115318</link>
				<description></description>
				<pubDate>Sat, 23 Oct 2021 16:49:16 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have one question: in the shader code, when declaring-defining <em>textureSampler</em>, you wrote <em>(ModelTexture)</em> with parentheses; out of curiosity, I tried compiling without those, and ran into an error (from MGCB). Why exactly are those parentheses needed? Is it some requirement akin to that of preprocessor macros in C/C++ (where you can get into trouble because of operator priorities, for example)?</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader">Troubleshooting: Texturing Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141628#post-5115307</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader#post-5115307</link>
				<description></description>
				<pubDate>Sat, 23 Oct 2021 16:33:20 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was about to answer to Hershil Patel about the reason, and indeed, your fix is correct: the problem was that <em>VertexShaderFunction</em> could well return an <em>output</em> with zero as its <em>Color</em>, which then causes <em>textureColor * (input.Color)</em> to evaluate to 0 in <em>PixelShaderFunction</em>, and thus, the texture component of the pixel gets obliterated.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141628/troubleshooting:texturing-shader">Troubleshooting: Texturing Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141627#post-5114348</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141627/troubleshooting:diffuse-lighting-shader#post-5114348</link>
				<description></description>
				<pubDate>Fri, 22 Oct 2021 16:20:54 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think the reason is that when comparing <em>input.Normal</em> and <em>DiffuseLightDirection</em> (through the dot product), both need to be set in the same coordinate ‘base’; since <em>DiffuseLightDirection</em> is given as an <strong>absolute</strong> while <em>input.Normal</em> is <strong>relative</strong> to its vertex, you need to compute an absolute version of <em>input.Normal</em>, and that is what <em>normal</em> is: you can see <em>WorldInverseTranspose</em> as the ‘detransforming’ operation.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141627/troubleshooting:diffuse-lighting-shader">Troubleshooting: Diffuse Lighting Shader</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-141624#post-5113594</guid>
				<title>OpenGL</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-141624/troubleshooting:shaders-in-xna#post-5113594</link>
				<description></description>
				<pubDate>Thu, 21 Oct 2021 16:12:56 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I tried the tutorial with MonoGame using a project targetting OpenGL platforms (more precisely, through the ’MonoGame Cross-Platform Desktop Application (OpenGL)’ (<em>mgdesktopgl</em>) template), and only had a black result, with no helicopter visible.<br /> So I took a look at the documentation, and I have just solved this problem: for OpenGL projects, <strong>default values for effect parameters do not work</strong>. So I uncommented both lines from Game1.cs assigning to AmbientColor and AmbientIntensity, and it worked (with a greenish helicopter)!</p> <p><em>(remove spaces)</em><br /> docs.monogame . net/articles/content/custom_effects.html<br /> (found from docs.monogame . net/articles/migrate_xna.html)</p> <blockquote> <p>Note that on GL platforms default values on Effect parameters do not work. Either set the parameter from code or use a real constant like a #define.</p> </blockquote> <p>Note that the previous documentation page also shows how you can use preprocessor directives to write conditionals, according to the target platform for example, so you might want to consider using it to avoid getting into the kind of trouble I was in.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-141624/troubleshooting:shaders-in-xna">Troubleshooting: Shaders In XNA</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139955#post-5112043</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139955/troubleshooting:index-and-vertex-buffers#post-5112043</link>
				<description></description>
				<pubDate>Tue, 19 Oct 2021 18:04:58 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There are three points I would like to tackle.</p> <p>1) Using the way taught by the first tutorial, you can associate multiple colours with one vertex depending on faces, but with an index buffer, it looks like you can only associate one single colour to any given vertex. Is there any workaround that lets you have multiple colours but still use indices?</p> <p>2) One question: in the tutorial, I have noticed that the constructor for <em>VertexBuffer</em> uses <em>GraphicsDevice</em> as its first argument, while the constructor for <em>IndexBuffer</em> is called with <em>graphics.GraphicsDevice</em>; I have taken a quick look in the documentation, but to no avail. Could you please elaborate on this difference?</p> <p>3) When compiling, I got a warning that the signature <em>(PrimitiveType, int, int, int, int, int)</em> for <em>DrawIndexedPrimitives</em> is deprecated, and that <em>(PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount)</em> should be used instead; the following resulting code does indeed also work well.</p> <div class="code"> <pre><code>GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, 20);</code></pre></div> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139955/troubleshooting:index-and-vertex-buffers">Troubleshooting: Index and Vertex Buffers</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139889#post-5104722</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139889/troubleshooting:creating-a-content-pipeline-extension#post-5104722</link>
				<description></description>
				<pubDate>Sun, 10 Oct 2021 10:30:14 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> I have one big question or request about porting this tutorial to MonoGame: I am using MonoGame without Visual Studio, through a mix of command line (essentially for creating the project templates) and another EDI (I am using Sublime Text, for the record).<br /> The big issue then are <strong>references</strong>: I am wondering exactly what manual modifications have to be added (to .csproj files, I guess) so that you can compile the DLL(s), because I tried running the command <tt>dotnet build</tt> in LevelLibrary, and although I added the following to LevelLibrary.csproj:</p> <div class="code"> <div class="hl-main"> <pre><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">ItemGroup</span><span class="hl-brackets">&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">Compile</span><span class="hl-code"> </span><span class="hl-var">Include</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">Level.cs</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">Compile</span><span class="hl-code"> </span><span class="hl-var">Include</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">LevelReader.cs</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">ItemGroup</span><span class="hl-brackets">&gt;</span></pre></div> </div> <p>… the console tells me that it cannot find <em>Ling</em>, <em>Xna</em>, <em>ContentTypeReader</em>, and <em>ContentReader</em>; furthermore, I do not have an Assembly file, which there is in the complete version of your project (the ZIP file).<br /> I have searched for tutorials on the matter, but to no avail. It would be nice to see a clear answer.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139889/troubleshooting:creating-a-content-pipeline-extension">Troubleshooting: Creating a Content Pipeline Extension</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139889#post-5104720</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139889/troubleshooting:creating-a-content-pipeline-extension#post-5104720</link>
				<description></description>
				<pubDate>Sun, 10 Oct 2021 10:30:01 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> I have one big question or request about porting this tutorial to MonoGame: I am using MonoGame without Visual Studio, through a mix of command line (essentially for creating the project templates) and another IDE (I am using Sublime Text, for the record).<br /> The big issue then are <strong>references</strong>: I am wondering exactly what manual modifications have to be added (to .csproj files, I guess) so that you can compile the DLL(s), because I tried running the command <tt>dotnet build</tt> in LevelLibrary, and although I added the following to LevelLibrary.csproj:</p> <div class="code"> <div class="hl-main"> <pre><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">ItemGroup</span><span class="hl-brackets">&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">Compile</span><span class="hl-code"> </span><span class="hl-var">Include</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">Level.cs</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;</span><span class="hl-reserved">Compile</span><span class="hl-code"> </span><span class="hl-var">Include</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">LevelReader.cs</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-brackets">/&gt;</span><span class="hl-code"> </span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">ItemGroup</span><span class="hl-brackets">&gt;</span></pre></div> </div> <p>… the console tells me that it cannot find <em>Ling</em>, <em>Xna</em>, <em>ContentTypeReader</em>, and <em>ContentReader</em>; furthermore, I do not have an Assembly file, which there is in the complete version of your project (the ZIP file).<br /> I have searched for tutorials on the matter, but to no avail. It would be nice to see a clear answer.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139889/troubleshooting:creating-a-content-pipeline-extension">Troubleshooting: Creating a Content Pipeline Extension</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139885#post-5101531</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139885/troubleshooting:wireframe-and-point-modes#post-5101531</link>
				<description></description>
				<pubDate>Wed, 06 Oct 2021 13:32:33 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Reusing the code from the 3D tutorials, setting WireFrame did not work at all for me, and I found out where the problem was: if you also use <em>_spriteBatch.Begin()</em> somewhere in your code (as in my case, for writing the message associated with the ‘Picking’ tutorial from the ‘Input’ series), then it will reinitiate <em>GraphicsDevice.RasterizerState</em> to its old state, apparently, so you need to force <tt>GraphicsDevice.RasterizerState = rasterizerState;</tt> each time you use <em>_spriteBatch.Begin()</em>.</p> <p>The following page gave me the solution; it says that ‘fillmode [is reset] back to solid’, but according to my tests and solution, this wording is a bit ambiguous: apparently, it is not the <em>FillMode</em> property that gets changed, but <em>GraphicsDevice.RasterizeState</em>.<br /> <em>(remove spaces)</em><br /> stackoverflow . com/questions/15673330/xna-is-there-a-way-to-set-the-rasterizerstate-to-wireframe-just-once</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139885/troubleshooting:wireframe-and-point-modes">Troubleshooting: Wireframe and Point Modes</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-851678#post-5100903</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program#post-5100903</link>
				<description></description>
				<pubDate>Tue, 05 Oct 2021 17:21:56 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello,<br /> This is not such a big deal, but in my case at least, compiling and running the program in release mode also makes it terminate by default after printing ‘Hello World!’. Maybe there was some change in convention for the console since the time this tutorial was written (as I guess the behaviour is system-dependent)?<br /> (This happened to me when I followed this tutorial, and it crossed my mind once again as I am currently looking at the XNA-MonoGame ‘Console Windows’ tutorial!)</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-851678/hello-world-your-first-c-program">Hello World - Your First C# Program</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139720#post-5100848</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139720/troubleshooting:changing-the-window-size#post-5100848</link>
				<description></description>
				<pubDate>Tue, 05 Oct 2021 15:50:30 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I just want to report one small problem(?): I reused the 2D tutorials’ code for this one; in particular, clicking has particles pop around my mouse pointer.<br /> I realize that when I toggle the resolution from default to those of my screen (using <em>PreferredBackBufferWidth</em> and <em>PreferredBackBufferHeight</em>) with or without full screen mode, the particles then get generated slightly above the mouse pointer (or below in full screen mode); in fact, this may be linked to the window’s location a bit below the real top of my screen.</p> <p>Once I move the window a bit, the particles get generated at the right location once again. So I suppose the resolution switch can lead to a ‘decoherence’ (appropriate for particles, if you are into quantum physics! ;)) between the program’s internal coordinates and those displayed, if said switch causes the window to get moved around.</p> <p>I have just tried using <em>Mouse.SetPosition</em> to force the mouse pointer into some specific coordinates, but this does not remove the shift.<br /> Although I have not tried the following, I guess using an image as a proxy for the mouse pointer should solve the problem, because it would then probably be located at the program’s internal coordinates.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139720/troubleshooting:changing-the-window-size">Troubleshooting: Changing the Window Size</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-139720#post-5100838</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-139720/troubleshooting:changing-the-window-size#post-5100838</link>
				<description></description>
				<pubDate>Tue, 05 Oct 2021 15:36:28 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I know this is several years old, but for the record, I have just tested your code (only switching font and assets’s names to my own) and it worked fine! The resized window never showed blue, whether I had even toggled full screen mode or not.<br /> I guess MonoGame has improved since then; in particular, the full screen toggling issue mentioned in tutorial 3 has been solved according to the given reference*, so this may be just one of those former problems.</p> <p>* <em>(remove spaces)</em><br /> github . com/MonoGame/MonoGame/issues/2495</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-139720/troubleshooting:changing-the-window-size">Troubleshooting: Changing the Window Size</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136199#post-5099833</guid>
				<title>Non-XACT vs XACT</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136199/troubleshooting:3d-audio-effects-location#post-5099833</link>
				<description></description>
				<pubDate>Mon, 04 Oct 2021 13:56:39 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><strong>(The following regards the case of MonoGame.)</strong></p> <p>Even with a mono sound file, I realize there is another problem (at least in my case): using the XACT-generated files, there is some sound localisation; nevertheless, it seems possibly partial and most importantly somewhat jagged when the emitter crosses over to the left/right side.</p> <p>On the other hand, using the non-XACT sound file (with the SoundEffectInstance class), everything sounds fine (with smooth transition from left to right and right to left)! So I am wondering if the problem comes from XACT itself. I noticed XACT has a 360 Pan property for the ‘helicopter’ wave in the lower left pane, so I checked ‘Enable’ and put the max pan to 360, but this did not change a thing.</p> <p>Maybe the problem has to do with the absence of a standard importer and processor for XACT-generated files (as seen in MGCB Editor)? This is merely a wild guess.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136199/troubleshooting:3d-audio-effects-location">Troubleshooting: 3D Audio Effects Location</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136199#post-5099124</guid>
				<title>Mono vs stereo</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136199/troubleshooting:3d-audio-effects-location#post-5099124</link>
				<description></description>
				<pubDate>Sun, 03 Oct 2021 17:38:30 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>One important point I have just solved: you <strong>need</strong> to use a <strong>mono</strong> sound file, rather than a stereo one.<br /> Mine was stereo, and it drove me crazy that I was getting no location effect at all; I wondered whether the problem arose from XACT, but testing the non-XACT version of playing the sound, there was no sound location either. I finally realized stereo was definitely the cause, and turned the file to mono through Audacity: now, everything works fine!</p> <p>I noticed the following page warns of an exception if one tries to use a stereo file, but as it turned out, <strong>I did not get one</strong>; beware, people!<br /> <em>(remove spaces)</em><br /> gamefromscratch . com/monogame-tutorial-audio/</p> <blockquote> <p>// WARNING!!!! Apply3D requires sound effect be Mono!<br /> Stereo will throw exception</p> </blockquote> <p>I surmise that the MonoGame people decided that it was better not to terminate the program for a generally minor miss at execution, which makes sense; however, this is bad for testing, as you can overlook the problem. As I did for some time.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136199/troubleshooting:3d-audio-effects-location">Troubleshooting: 3D Audio Effects Location</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136201#post-5099093</guid>
				<title>Re: This resource could not be created.</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136201/troubleshooting:3d-audio-effects-attenuation#post-5099093</link>
				<description></description>
				<pubDate>Sun, 03 Oct 2021 16:46:48 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I know this comment is an old one, but anyway, as this could help someone: the correct path in tutorial 8 was <tt>&quot;Content/<strong>Sound</strong>/Sound Bank.xsb&quot;</tt>; maybe you overlooked some similar intermediate folder.<br /> In my case, compiling directly from XACT in order to produce the three files for MonoGame, I know they are created in a ‘Win’ subfolder (there is also an ‘Xbox’ subfolder), which I had to take care of.<br /> Also: in MGCB Editor, maybe you need to switch the ‘Build Action’ for the file to ‘<strong>Copy</strong>’ instead of ‘Build’ (I know this has to be done in order for MonoGame to correctly process these specific files), but I am not sure whether this is the case through XNA Game Studio.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136201/troubleshooting:3d-audio-effects-attenuation">Troubleshooting: 3D Audio Effects - Attenuation</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136189#post-5098776</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136189/troubleshooting:audio-suggestions-for-games#post-5098776</link>
				<description></description>
				<pubDate>Sun, 03 Oct 2021 10:35:44 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Having realized that the hyperlinked helicopter sound effect from ‘8 - 3D Audio Effects: Location’ appears not to work (I have tried downloading directly the suggested MP3, but the file seems corrupted in some way), I think that Flash Kit must have gone through some big trouble because of Adobe’s termination of Flash; searching for a replacement for the helicopter sound (as I want to try it reusing my program from the 3D tutorials, since there is already a nice moving helicopter!), I have found the following website, <strong>Sound Jay</strong>, which claims to give <strong>royalty-free</strong> sounds and music up for download, both in WAV and MP3 formats. Maybe it could be named as an alternative to Flash Kit in your tutorial?</p> <p><em>(remove spaces)</em><br /> 1) Main page:<br /> soundjay . com/index . html<br /> 2) ‘Terms of Use’:<br /> soundjay . com/tos . html<br /> 3) Helicopter sounds, including ‘Helicopter Hovering’, which sounds nice for tutorial 8:<br /> soundjay . com/helicopter-sound-effect . html</p> <p>PS: I just realized that XACT refused to open my helicopter.wav; I opened it up with Audacity, changed nothing and merely exported it as a WAV again, and it worked. So, there may be some artifact in the file or its format that needs to be taken care of, which is easy, fortunately.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136189/troubleshooting:audio-suggestions-for-games">Troubleshooting: Audio Suggestions for Games</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136195#post-5098700</guid>
				<title>MonoGame</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136195/troubleshooting:playing-sound-with-an-xact-project#post-5098700</link>
				<description></description>
				<pubDate>Sun, 03 Oct 2021 08:10:34 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Since the MonoGame version for this tutorial is not available (yet), I am giving the following link, which shows you how to do in section ‘Using XACT’. Actually, the main (and only?) difference is to build the three files (.xgs, .xsb and .xwb) from XACT (this is just one push of a button), and then add these directly to the game content as usual (through MGCB Editor, for example). <strong>/!\ In MGCB Editor, do not forget to put the ‘Build Action’ for these files as ‘Copy’ rather than ‘Build’!</strong> I just ran into an error for not doing it.</p> <p><em>(remove spaces)</em><br /> gamefromscratch . com/monogame-tutorial-audio/</p> <p><strong>Note:</strong> I did not need to launch AudConsole3.exe to make the software work; actually, the console closed as soon as I tried to open it. I suspect XACT already takes care of the background process. I do not know whether this is due to my having the ‘Refresh’ version of XNA Game Studio 4.0.<br /> <strong>PS:</strong> actually, AudConsole3.exe (XACT Auditioning Utility) <strong>is</strong> needed if you want to hears sounds inside of XACT… Unfortunately, I do not know how to make the console/terminal stay up and running. If anyone knows, you are welcome.</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136195/troubleshooting:playing-sound-with-an-xact-project">Troubleshooting: Playing Sound with an XACT Project</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136193#post-5098129</guid>
				<title>Running XACT without Visual Studio</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136193/troubleshooting:using-xact#post-5098129</link>
				<description></description>
				<pubDate>Sat, 02 Oct 2021 13:09:53 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There is a way of installing XACT without having Visual Studio (which is my case); maybe you ran into the same problem, and since this seems to be of general interest, I am putting this here.<br /> The following page explains how to proceed; I have just been through it, and had no trouble. It was short and XACT now runs on my machine!<br /> <em>(remove spaces)</em><br /> www.gamefromscratch . com/post/2015/07/23/Installing-XNA-Tools-Like-XACT-without-Visual-Studio-2010.aspx</p> <p>PS: by the way, I used the Refresh version of XNA Game Studio 4.0 instead of the ‘regular’ one (given by the aforesaid page), because it does apparently fix some bugs, but everything went identical.<br /> <em>(remove spaces)</em><br /> www.microsoft . com/en-us/download/details.aspx?id=27599<br /> For the record, found here (in French): sorceryforce .net/fr/tips/mono-game-loop-play-sound-from-middle-by-xact#toc3</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136193/troubleshooting:using-xact">Troubleshooting: Using XACT</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136193#post-5098126</guid>
				<title>Running XACT without Visual Studio</title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136193/troubleshooting:using-xact#post-5098126</link>
				<description></description>
				<pubDate>Sat, 02 Oct 2021 13:08:37 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There is a way of installing XACT without having Visual Studio (which is my case); maybe you ran into the same problem, and since this seems to be of general interest, I am putting this here.<br /> The following page explains how to proceed; I have just been through it, and had no trouble. It was short and XACT now runs on my machine!<br /> <em>(remove spaces)</em><br /> www.gamefromscratch . com/post/2015/07/23/Installing-XNA-Tools-Like-XACT-without-Visual-Studio-2010.aspx</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136193/troubleshooting:using-xact">Troubleshooting: Using XACT</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136189#post-5097251</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136189/troubleshooting:audio-suggestions-for-games#post-5097251</link>
				<description></description>
				<pubDate>Fri, 01 Oct 2021 13:41:20 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>As a suggestion: since the page ‘Audio Library’ is still empty, maybe you could add a link there pointing towards the ‘Audio Suggestions for Games’ tutorial.<br /> (remove spaces)<br /> rbwhitaker.wikidot . com/audio-library</p> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136189/troubleshooting:audio-suggestions-for-games">Troubleshooting: Audio Suggestions for Games</a>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-136191#post-5097237</guid>
				<title></title>
				<link>https://rbwhitaker.wikidot.com/forum/t-136191/troubleshooting:playing-sound-effects#post-5097237</link>
				<description></description>
				<pubDate>Fri, 01 Oct 2021 13:10:40 +0000</pubDate>
				<wikidot:authorName>Albur</wikidot:authorName>				<wikidot:authorUserId>7676634</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Testing the methods, I have found out something interesting: I wanted to make a playing sound restart from the beginning, so I tried the following.</p> <div class="code"> <pre><code>soundEffectInstance.Stop(); soundEffectInstance.Play();</code></pre></div> <br /> Nevertheless, this only stopped the sound, <strong>without having it played again</strong>.<br /> I came up with the following solution, which works well. <div class="code"> <pre><code>while (soundEffectInstance.State == SoundState.Playing) { soundEffectInstance.Stop(); } soundEffectInstance.Play();</code></pre></div> <br /> It looks like there is some (short) delay before a sound actually stops. I have just checked the API documentation<br /> (remove spaces), and it claims that is should be immediate, but this seems incorrect or at least take one execution cycle(?).<br /> docs.monogame . net/api/Microsoft.Xna.Framework.Audio.SoundEffectInstance.html#Microsoft_Xna_Framework_Audio_SoundEffectInstance_Stop <blockquote> <p>Immediately stops playing a SoundEffectInstance.</p> </blockquote> <br/>Forum category: <a href="https://rbwhitaker.wikidot.com/forum/c-38229">Hidden / Per page discussions</a><br/>Forum thread: <a href="https://rbwhitaker.wikidot.com/forum/t-136191/troubleshooting:playing-sound-effects">Troubleshooting: Playing Sound Effects</a>
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>