<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Mixing 3D and 2D in one scene?</title>
<description> So let&amp;#039;s say I have a 3D scene going in GX; so far so good. Now, I want to draw 2D graphics on the screen on top of this. Say a HUD of some sort, a Lives Left indicator, doesn&amp;#039;t matter what. So what&amp;#039;s the best way (or any way, for that matter) to do this?

The only solution that comes to mind for me is allocating an extra framebuffer for GX, then using that as a texture in the ortho view. Or switching to ortho view halfway through drawing (is this possible?). Anyway, I&amp;#039;d just like to know how this should be done. Also, if mixing it with libwiisprite is possible that would be nice too.</description><link>http://forum.wiibrew.org/read.php?11,1255,1255#msg-1255</link><lastBuildDate>Thu, 23 Apr 2026 04:22:06 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,1255,4350#msg-4350</guid>
<title>Re: Mixing 3D and 2D in one scene?</title><link>http://forum.wiibrew.org/read.php?11,1255,4350#msg-4350</link><description><![CDATA[ Draw your 3d scene, then set to the orthographic projection and then, draw quads with z = 0 like you would on 3d.<br /><br />In my library:<br />/**<br />* Set the 2D projection here and draw the 2d objects on it<br />*/<br />rs-&gt;setDepthTest(false);<br /><br />rs-&gt;setMatrixMode(MATRIXMODE_PROJECTION);<br />rs-&gt;pushMatrix();<br />rs-&gt;identityMatrix();<br />rs-&gt;setOrthographic(0, rs-&gt;getScreenWidth(), 0, rs-&gt;getScreenHeight(), -1, 1);<br /><br />rs-&gt;setMatrixMode(MATRIXMODE_MODELVIEW);<br />rs-&gt;pushMatrix();<br />rs-&gt;identityMatrix();<br /><br />for (std::list<drawable2D*>::const_iterator dit = m2DObjects.begin(); dit != m2DObjects.end(); ++dit)<br />{<br />drawable2D* obj = (*dit);<br />assert(obj != NULL);<br /><br />obj-&gt;draw();<br />}<br /><br />Check the functions on:<br />[<a href="http://code.google.com/p/knowledge/source/browse/trunk/src/wiiRenderSystem.cpp" rel="nofollow">code.google.com</a>]]]></description>
<dc:creator>razor85</dc:creator>
<category>Coding</category><pubDate>Sun, 30 Nov 2008 02:13:51 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,1255,4324#msg-4324</guid>
<title>Re: Mixing 3D and 2D in one scene?</title><link>http://forum.wiibrew.org/read.php?11,1255,4324#msg-4324</link><description><![CDATA[ Hi, i&#039;m trying to show a hand cursor over my perspective scene, using regular openGL tutorials, and failing miserably...<br /><br />anyone kind enough to point me to the right way?]]></description>
<dc:creator>gcbzzzz</dc:creator>
<category>Coding</category><pubDate>Sat, 29 Nov 2008 21:06:43 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,1255,1551#msg-1551</guid>
<title>Re: Mixing 3D and 2D in one scene?</title><link>http://forum.wiibrew.org/read.php?11,1255,1551#msg-1551</link><description><![CDATA[ Eluan: Thanks for the response. I wasn&#039;t sure if that would work at first (why I asked), but I did eventually try that a few days ago and managed to get libwiisprite to render perfectly over a 3D scene :)]]></description>
<dc:creator>AerialX</dc:creator>
<category>Coding</category><pubDate>Wed, 03 Sep 2008 02:58:26 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,1255,1518#msg-1518</guid>
<title>Re: Mixing 3D and 2D in one scene?</title><link>http://forum.wiibrew.org/read.php?11,1255,1518#msg-1518</link><description><![CDATA[ Switch to orthogonal/perspective on-the-fly, as needed.]]></description>
<dc:creator>Eluan</dc:creator>
<category>Coding</category><pubDate>Tue, 02 Sep 2008 12:39:39 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,1255,1255#msg-1255</guid>
<title>Mixing 3D and 2D in one scene?</title><link>http://forum.wiibrew.org/read.php?11,1255,1255#msg-1255</link><description><![CDATA[ So let&#039;s say I have a 3D scene going in GX; so far so good. Now, I want to draw 2D graphics on the screen on top of this. Say a HUD of some sort, a Lives Left indicator, doesn&#039;t matter what. So what&#039;s the best way (or any way, for that matter) to do this?<br /><br />The only solution that comes to mind for me is allocating an extra framebuffer for GX, then using that as a texture in the ortho view. Or switching to ortho view halfway through drawing (is this possible?). Anyway, I&#039;d just like to know how this should be done. Also, if mixing it with libwiisprite is possible that would be nice too.]]></description>
<dc:creator>AerialX</dc:creator>
<category>Coding</category><pubDate>Tue, 26 Aug 2008 19:42:57 +0200</pubDate></item>
</channel>
</rss>