<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GBuffer in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035611#M25918</link>
    <description>&lt;PRE&gt;int width = 1024;&lt;BR /&gt;    int height = 768;&lt;BR /&gt;&lt;BR /&gt;    BitmapInfo bi("MyBitmap");&lt;BR /&gt;    bi.SetType(BMM_TRUE_32);&lt;BR /&gt;    bi.SetWidth(width);&lt;BR /&gt;    bi.SetHeight(height);&lt;BR /&gt;    Bitmap *bm = TheManager-&amp;gt;Create(&amp;amp;bi);&lt;BR /&gt;&lt;BR /&gt;    if (!bm)&lt;BR /&gt;    {&lt;BR /&gt;        MessageBox (NULL, "Not Creating a bitmap", "Error", NULL);&lt;BR /&gt;        return;&lt;BR /&gt;&lt;BR /&gt;       &lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    GBuffer *gbuf = bm-&amp;gt;GetGBuffer(); // Error here&lt;BR /&gt;&lt;BR /&gt;    if (!gbuf) {&lt;BR /&gt;        MessageBox (NULL, "Not Creating a GBuffer", "Error", NULL);   &lt;BR /&gt;        return;&lt;BR /&gt;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Is this the correct way to create a GBuffer from the top view ? I am getting a null pointer from the line commented with //Error I did not do any rendering, but assuming this would work, no? Thanks Jack</description>
    <pubDate>Wed, 01 Oct 2008 18:08:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-01T18:08:00Z</dc:date>
    <item>
      <title>GBuffer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035611#M25918</link>
      <description>&lt;PRE&gt;int width = 1024;&lt;BR /&gt;    int height = 768;&lt;BR /&gt;&lt;BR /&gt;    BitmapInfo bi("MyBitmap");&lt;BR /&gt;    bi.SetType(BMM_TRUE_32);&lt;BR /&gt;    bi.SetWidth(width);&lt;BR /&gt;    bi.SetHeight(height);&lt;BR /&gt;    Bitmap *bm = TheManager-&amp;gt;Create(&amp;amp;bi);&lt;BR /&gt;&lt;BR /&gt;    if (!bm)&lt;BR /&gt;    {&lt;BR /&gt;        MessageBox (NULL, "Not Creating a bitmap", "Error", NULL);&lt;BR /&gt;        return;&lt;BR /&gt;&lt;BR /&gt;       &lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    GBuffer *gbuf = bm-&amp;gt;GetGBuffer(); // Error here&lt;BR /&gt;&lt;BR /&gt;    if (!gbuf) {&lt;BR /&gt;        MessageBox (NULL, "Not Creating a GBuffer", "Error", NULL);   &lt;BR /&gt;        return;&lt;BR /&gt;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Is this the correct way to create a GBuffer from the top view ? I am getting a null pointer from the line commented with //Error I did not do any rendering, but assuming this would work, no? Thanks Jack</description>
      <pubDate>Wed, 01 Oct 2008 18:08:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035611#M25918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-01T18:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: GBuffer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035612#M25919</link>
      <description>GetGBuffer() returns a pointer to the GBuffer for the bitmap or NULL if none.&lt;BR /&gt;As you've just created the bitmap, it's empty so there's no GBuffer. Try this code on a bitmap containing GBuffer  data.</description>
      <pubDate>Wed, 01 Oct 2008 19:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035612#M25919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-01T19:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: GBuffer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035613#M25920</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;GetGBuffer() returns a pointer to the GBuffer for the bitmap or NULL if none.&lt;BR /&gt;As you've just created the bitmap, it's empty so there's no GBuffer. Try this code on a bitmap containing GBuffer  data.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Hi&lt;BR /&gt;Do I have to render it once to a bitmap (onto the screen) before GBuffer can swing into action?&lt;BR /&gt;BTW, when using GBuffer, how do you convert bitmap coordinates back into 3D coordinates?&lt;BR /&gt;I actually want to process the rendered bitmap for creating a navgrid....&lt;BR /&gt;Thanks&lt;BR /&gt;Jack</description>
      <pubDate>Wed, 01 Oct 2008 20:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/gbuffer/m-p/4035613#M25920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-01T20:06:00Z</dc:date>
    </item>
  </channel>
</rss>

