Here is my wish to 2017: with many TGLLines, user is creating a structure. Regarding some parameters, this structure is moving in a TGLCadencer. I want to keep visible all displays of this movement, to resume I want to have a persistence (no attenuation) of my moving objects. In attachment, you have two images that illustrate my request.
I think there is a way to di this with creating as many structures (ie lot of TGLLines per structure) as passages in cadencer.
Buffer's properties of TGLSceneWiever component have some ContextOptions.
If I set roNoColorBufferClear option to False, I have an interesting result (see attached).
However I have two issues:
1- I loose background color
2- my scene didn't repaint when camera moving.
I tried to draw a white rectangle. To do this, I implemented this code in the my scene BeforeRender event by using a TGLCanvas.
At the first launch of BeforeRender I draw a white background then I turn off this event. On the white background, I draw my moving objects and I keep the persistence.
I had to remove my Viewer DoubleBuffered option to avoid flicker.
It works but if someone has a more efficient solution I don't say no.
Last edit: LefjuCabro 2017-02-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi GLScene's community,
Here is my wish to 2017: with many TGLLines, user is creating a structure. Regarding some parameters, this structure is moving in a TGLCadencer. I want to keep visible all displays of this movement, to resume I want to have a persistence (no attenuation) of my moving objects. In attachment, you have two images that illustrate my request.
I think there is a way to di this with creating as many structures (ie lot of TGLLines per structure) as passages in cadencer.
Regards,
Last edit: LefjuCabro 2017-01-10
Buffer's properties of TGLSceneWiever component have some ContextOptions.
If I set roNoColorBufferClear option to False, I have an interesting result (see attached).
However I have two issues:
1- I loose background color
2- my scene didn't repaint when camera moving.
Did someone has an idea to get persistence ?
Last edit: LefjuCabro 2017-02-08
I tried to draw a white rectangle. To do this, I implemented this code in the my scene BeforeRender event by using a TGLCanvas.
At the first launch of BeforeRender I draw a white background then I turn off this event. On the white background, I draw my moving objects and I keep the persistence.
I had to remove my Viewer DoubleBuffered option to avoid flicker.
It works but if someone has a more efficient solution I don't say no.
Last edit: LefjuCabro 2017-02-14