Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8089834

Fixed texture delta in Sphere texture mapping won't fit for high divisions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 8, 9
    • javafx

      In line 342 of Sphere.java, a fixed texture delta is introduced:
               float textureDelta = 1.f / 256;

      I am not sure whether such delta is necessary at all, instead of using the exact ends of 0.0 or 1.0 for the texture mapping at the poles of the sphere?

      At least for higher divisions than the default divisions of 64, e.g. 512, that fixed textureDelta would be too big and lead to wrong results.

            Unassigned Unassigned
            jehrkejfx Jens Ehrke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: