Author Topic: Wireframes not draw correctly  (Read 8108 times)

Offline luftiguru

  • byte
  • *
  • Posts: 8
    • View Profile
Wireframes not draw correctly
« on: August 30, 2013, 12:50:58 pm »
Hello,
I use World.drawWireframe(..., 1, true) to overlay my objects with a wireframe. This works fine most of the time.
Recently, I stumbled over a object, whose faces are rendered correcly but the wireframe is not. It seems like some additional "wires" are added at very sharp edges of the object.
I added  the .obj file to this post. It seems to be consistent when viewing it using MeshLab.
Can someone reproduce the error? Is it a bug in jPCT-AE or in my object file?
Thank you.

I use jPCT-AE from 2013-07-04.

[attachment deleted by admin]

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Wireframes not draw correctly
« Reply #1 on: August 30, 2013, 02:57:44 pm »
That's well known (at least to me...) and not a bug. It's what i meant when i added this sentence to the docs:

Quote
Because of a "great" design decision in OpenGL ES, the result might not look particularly good though.

I can't remember the reason anymore, but it had something to do with the way in which OpenGL ES handles line drawing. There's no way to fix this, i'm afraid. If possible, revert to rendering points instead. They look fine.

Offline luftiguru

  • byte
  • *
  • Posts: 8
    • View Profile
Re: Wireframes not draw correctly
« Reply #2 on: August 30, 2013, 03:18:38 pm »
What a pity.
Nevertheless, thanks for the fast reply.