java3d
  1. java3d
  2. JAVA3D-611

Texture file is too large for hardware : message not that clear

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: not determined
    • Component/s: j3d-core
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      611

      Description

      See issue Thread
      http://forums.java.net/jive/thread.jspa?messageID=326232

      Just a small issue for java3d; An improvement of the exception message.

      A) What about :
      If you have theses lines, and use a texture greater than would the client
      machine harware Graphic card can support.

      TextureLoader tl = new TextureLoader("Tex4096.bmp","RGB",canvas);
      texture = tl.getTexture();
      texture.setMipMapMode(Texture2D.MULTI_LEVEL_MIPMAP);

      B) Exception Message is heuuuuuuu....mipmaping my head ...
      ==> You get this :
      Exception in thread "main" java.lang.IllegalArgumentException: Texture: mipmap
      image not set at level2

      C) Simple message with info would be ... just better
      ==> I think this error doesn't happen often. so it is perhgaps difficult to
      automatly think "Of course this image is too large". So the message should I
      think perhaps be clearer for not-smart people like me .. or most of us out there.
      What about something like this :
      "java.lang.IllegalArgumentException: Texture: mipmap image is perhaps too big
      for the hardware GPU. On this Machine it is limited to : 2048X2048."
      (note :the value is 20048x20048 is not hardware coded !)

      Thanks .
      Thierry

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            java3d-issues
            Reporter:
            tmilard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: