Page 1 of 1

Custom renderer: missing vertices

Posted: Tue Jul 02, 2019 07:47
by manhnt
In my renderer (https://bitbucket.org/manhnt9/cegui/branch/saga), I notice that my geometry buffer filling is not complete.
The only correct geometry buffer is the CEGUI logo.

Here is what I see on the screen and the logo render call.
Image

OpenGL3 render calls for reference.
Image

The first draw call should have 108 vertices.
But mine only have 12.
Image

Here is my Geometry Buffer code: https://bitbucket.org/manhnt9/cegui/src ... Buffer.cpp
Could you give me some suggestions for further investigation?

Re: Custom renderer: missing vertices

Posted: Sun Jul 07, 2019 07:22
by Ident
I notice that my geometry buffer filling is not complete.

How do you know it is not complete?

Have you built a minimal repro case of just one image or text only widget and stepped through code to see what happens with the geom?

Re: Custom renderer: missing vertices

Posted: Sun Jul 07, 2019 20:06
by niello
Here I wrote a custom renderer for my engine and it works. You may have a look and compare it with yours. I wrote mine with a DX11 renderer as a reference, but there must be a little difference.
https://github.com/niello/deusexmachina ... c/UI/CEGUI

Re: Custom renderer: missing vertices

Posted: Mon Jul 08, 2019 02:56
by manhnt
Ident wrote:
I notice that my geometry buffer filling is not complete.

How do you know it is not complete?

Have you built a minimap repro case of just one image or text only widget and stepped through code to see what happens with the geom?


I can see draw calls and buffer in RenderDoc and see that it doesn't have a complete geometry (less vertices than OpenGL's draw call).
And thanks for the great idea, I should and will write a minimal app. Was trying to fix a complex samples framework ever since.

Re: Custom renderer: missing vertices

Posted: Mon Jul 08, 2019 02:57
by manhnt
niello wrote:Here I wrote a custom renderer for my engine and it works. You may have a look and compare it with yours. I wrote mine with a DX11 renderer as a reference, but there must be a little difference.
https://github.com/niello/deusexmachina ... c/UI/CEGUI


Thank you, I'll take a look!