<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>More info, feel free to append to Blender ticket as you see fit.
      I clicked on "Image" between the 2 main panels, and set the image
      to "tuna.png"  it looked like the image was applied (yay), but
      tuna.png did not appear in the .x3d, and the output was still
      "Image None" at line 654. And output x3d did not show the texture
      in FreeWRL or view3dscene.<br>
    </p>
    <p>An investigation of the Blender file:</p>
    <p>$ strings x3d_texture_2.83.blend|grep png<br>
      Untitled.png<br>
      //tuna.png<br>
      Desktop/Untitled.png<br>
    </p>
    <p>So there's still some places to cover.  I do not yet know how to
      make image non-None. I did some settings in base color to tuna
      (not tuna.png).  It will take some time to figure out all the
      windows/panels.  There are a lot of choices in Blender.   It would
      probably be worth it to take some classes!<br>
    </p>
    <p>Note: This is the only place in the export code that
      <Appearance> appears, so this pretty much has to be the
      code, and we just need to figure out how to set image variable
      properly in the preceding code.</p>
    <p><font color="#1cff00">If a python programmer could translate this
        line (614? of
        /usr/share/blender/scripts/addons/io_scene_x3d/export_x3d.py )
        to English, it would help!</font></p>
    <p><font color="#1cff00">for (material_index, image), polygons_group
        in polygons_groups.items():</font></p>
    <p>I think this is where the image variable comes from.<br>
    </p>
    <p>John<br>
    </p>
    <div class="moz-cite-prefix">On 6/24/21 3:08 PM, John Carlson wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d0c587e9-19a4-026b-f786-e4d8e8a0aeae@gmail.com">I added
      these lines to the Blender X3D exporter, at line 654
      <br>
      <br>
                         print("Image", image)
      <br>
                          print("Use H3D", use_h3d)
      <br>
      <br>
      <br>
      Here is the output:
      <br>
      <br>
      Image None
      <br>
      Use H3D False
      <br>
      <br>
      So...the image is not set?  Let's do some snooping:
      <br>
      <br>
      coderextreme@coderextreme-Kubuntu20:~/Downloads$ strings
      x3d_texture_2.82.blend |grep png
      <br>
      Untitled.png
      <br>
      //Untitled.png
      <br>
      Desktop/Untitled.png
      <br>
      coderextreme@coderextreme-Kubuntu20:~/Downloads$ strings
      x3d_texture_2.79.blend |grep png
      <br>
      Untitled.png
      <br>
      //Untitled.png
      <br>
      Desktop/Untitled.png
      <br>
      <br>
      I don't have these pngs.
      <br>
      <br>
      I will look and see how to set the png for the texture, meanwhile,
      I don't think that the png exists, therefore, image is None, and
      the ImageTexture and TextureTransform don't print!
      <br>
      <br>
      I'll get back to you!
      <br>
      <br>
      John
      <br>
      <br>
      On 6/24/21 1:34 PM, John Carlson wrote:
      <br>
      <blockquote type="cite">Note:
        <br>
        <br>
        <a class="moz-txt-link-freetext" href="https://developer.blender.org/T66534">https://developer.blender.org/T66534</a>
        <br>
        <br>
        Has some sample files to start with.
        <br>
        <br>
        On 6/22/21 7:48 AM, Michalis Kamburelis wrote:
        <br>
        <br>
        <blockquote type="cite">I wrote a document outlining my
          Blender->X3D exporter wishlist, and
          <br>
          how to submit patches to Blender:
          <br>
          <br>
<a class="moz-txt-link-freetext" href="https://docs.google.com/document/d/1ad5XsU43gQGxqC7ehSBr21mdX2dQjKZCSXUQtvRwTHw/edit?usp=sharing">https://docs.google.com/document/d/1ad5XsU43gQGxqC7ehSBr21mdX2dQjKZCSXUQtvRwTHw/edit?usp=sharing</a>
          <br>
          <br>
          Please feel free to distribute it to whoever is interested.
          Comments welcome :)
          <br>
          <br>
          Regards,
          <br>
          Michalis
          <br>
          <br>
          _______________________________________________
          <br>
          x3d-public mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
  </body>
</html>