I’m hoping that some of you might be able to help out test a small project that does not behave correctly in Dx11. I’ve reported it as a bug to Unity, but they have been unable to reproduce. I’ve since updated my drivers and still the issue persists.
The project is very simple, it renders a unity cube with a geometry shader. The geometry shader takes triangles as input and outputs the edges as lines, essentially then the desired appearance would be that of a wireframe. Though this is just a stripped down version of a more complex shader to illustrate the issue, I’m not looking for a solution to display a wireframe.
Unfortunately in all the versions of Unity i’ve tested ( 5.2.2.f1, 5.3.2f1 and 5.4.0b14) the cube usually renders as solid white. However whilst viewing the scene in the scene window it tends to oscillate between a solid cube and a wireframe, this can sometime happen in the game view too, but its usually easier to see in the scene view, especially if you move the camera around. Indeed almost every time I start up the project and load the test scene I see the cube as a wireframe in the game window, but as soon as I press play it reverts back to solid or oscillating between the two states.
Stranger still is if you switch to using openGLCore the cube renders correctly as a wireframe constantly, so its only an issue running in dx11.
I’ve attached the project to this post. If anyone has 5 minutes to grab, test and reply here it i’d be very grateful. When replying please state your gpu, driver version and whether you can see the issue.
For reference my system is using an nvidia GTX970 and i’ve tried with both 361.43 and 364.72 drivers.
The project was last built in Unity 5.4.0b14, however it can be opened in Unity 5.2.2f1 with no issues, so I don’t think you need a beta version to test with. Of course being a Dx11 issue it goes without saying its only worth testing on Window systems.
Thanks Peter for taking the time to test this.
I assume by your lack of comments and the supplied picture that the cube remained as a wireframe for you constantly?
On initial opening in Unity 5.3.4p3 it shows a wireframe, when playing it quickly switches to a solid cube.
Sometimes when stopping, it turns into a wireframe again, but usually it stays solid.