Page 1 of 1

Discussions on Saga3D renderer development

Posted: Tue Mar 12, 2019 06:07
by manhnt
Hi, I'm implementing a renderer and have some questions. Hope that you guys can help me answer it.

- When is a RenderTarget (RT) created?
- Is it true that there're only 1 RT for the whole runtime that CEGUI draws to?
- If there're multiple RT, what is each RT associated with: geometry buffer, effect, ... etc ?

I personally think that there's just 1 render target that CEGUI renders to and present that surface.
So there're multiple geometry buffers (GUI Elements) are drawn into that RT each frame and there is no second RT.

Re: The use of RenderTarget in RendererModule?

Posted: Tue Mar 12, 2019 06:56
by manhnt
I figured out that each window has a RT, so there're multiple RT.
Then when having multiple windows, how can the root window displays all other children windows?
Where do I look for code that collects all children window's render target and composite to the main window?

Re: The use of RenderTarget in RendererModule?

Posted: Tue Mar 12, 2019 18:09
by Ident
By default we render to one target but you can have multiples: This might help http://cegui.org.uk/wiki/Rendering_to_texture_(RTT)_in_CEGUI

Re: Discussions on Saga3D renderer development

Posted: Wed Mar 13, 2019 12:02
by manhnt
Thanks Ident, I'll refer to it.
Since I won't create new topic for every problem I meet (that may flood the forums), I changed this thread's title.

My current problem is that CEGUI behaves inconsistently on feeding geometry buffer for different renderers.
Here is my test video: https://www.youtube.com/watch?v=CJZ5v6ZdjVM