Author Topic: Improve wireframe rendering  (Read 551 times)

2017-10-16, 12:11:17
Reply #15

Frood

  • Active Users
  • **
  • Posts: 755
    • View Profile
    • Rakete GmbH
Never underestimate the power of a well placed level one spell.

2017-10-16, 14:22:45
Reply #16

-Ben-Battler-

  • Active Users
  • **
  • Posts: 164
    • View Profile

2017-10-17, 15:40:55
Reply #17

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 8460
  • Turning coffee to features since 2009
    • View Profile
I know why this is happening - the pixel to world ratio used to "normalize" the width to 1px changes on grazing angles, because you see more of the grazing surface in one pixel. But you would need to compensate for this based on direction, which is currently not possible - the line width changes for all directions, even those not needing it.

So currently it works correctly for perpendicular lines, but not for those parallel with the perspective projection. Looking at the results, it will be probably best to change the way this works.
Rendering is magic.
Private scene uploader | How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-10-17, 16:40:38
Reply #18

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 4180
  • KolaLoka
    • View Profile
    • My Models
Would it be possible to compute anisotropic pixels depending on angle, or is it too complex? If not possible, then yeah, i would prefer constant width parallel lines at the expense of perpendicular ones, as often those are not visible at grazing angles anyway.

Or maybe we need a swith - favor parallel vs perpendicular? Just kidding :]