Ticket #949 (reopened defect)

Opened 2 years ago

Last modified 2 years ago

Fix texcoords, normals, and tangents in examples/blocks.py

Reported by: ArcRiley Owned by:
Priority: Medium Milestone: beta3
Component: Examples Version: Trunk
Keywords: Cc:

Description

Merge the new bump code into blocks.py, make it generic for which two textures are used (both black and color), and verify this is working with the normals map demo rotating in 3d with all the faces looking correct.

If a bug in the dot3 (normal map) code is found, open a ticket with specifics

Change History

Changed 2 years ago by JasonWard

  • status changed from new to closed
  • resolution set to fixed

Changed 2 years ago by ArcRiley

  • status changed from closed to reopened
  • resolution fixed deleted

Nothing was done to correct texcoords or tangents.

Line 58 and 59 (of [1201]) need to be modified so that these values are calculated rather than incorrectly copied from other values or set statically.

Tangents, for example, must be 90 degrees from the light normal in the "up" direction of the dot3 texture. The texcoords being incorrect causes the lines on four faces of the TexBlocks?.py "Marble" cube. When correct all four sides should look identical.

Note: See TracTickets for help on using tickets.