Wireframe material connects faces!?

Problems building or running the engine, queries about how to use features etc.
Post Reply
mmmmm
Gnoblar
Posts: 9
Joined: Wed Jul 16, 2014 9:22 am

Wireframe material connects faces!?

Post by mmmmm »

I have a material using "polygon_mode wireframe".

This works, but ogre connects polygons it should not connect:
Wireframe - This is how it looks (error)
Wireframe - This is how it looks (error)
Here is how the faces look like (the planes are only single sided)
Original geometry
Original geometry
How meshy renders it correctly:
Meshy renders it corrently
Meshy renders it corrently
meshy.png (3.09 KiB) Viewed 503 times

I tried to open the mesh with meshy and there it works fine. Any recommendations?
I am using Ogre 1.10 for iOS and WebGL.

Thanks for your help!
paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Wireframe material connects faces!?

Post by paroj »

the problem:
https://stackoverflow.com/questions/462 ... s/14368103

the solution:
http://codeflow.org/entries/2012/aug/02 ... ordinates/

however it is (obviously) not implemented as doing so is not trivial:
1. either the RTSS needs to emit a geometry shader that computes the barycentric coordinates (requires GLES3.2, the RTSS does not support geometry shaders right now)
2. or the RTSS needs to compute barycentric coordinates on the CPU and add them as a VBO to the mesh. (no support in RTSS for such things exits either)

the easiest path is probably to write your own custom shader and manually compute the barycentric coord VBO.
Post Reply