Hi guys. There is some code that worked in older versions GLSceneViewer1.Buffer.RenderToBitmap (bmp, Round (96 * 2)); I got a picture twice the size. Now I tried to use it - the labels are displaced. If dpi = 0, then everything is ok! Labels are made using TGLAbsoluteHUDText
Hi guys. There is some code that worked in older versions GLSceneViewer1.Buffer.RenderToBitmap (bmp, Round (96 * 2)); I got a picture twice the size. Now I tried to use it - the labels are displaced. If dpi = 0, then everything is ok!
Thanks for the advice! camera.nearplanebias is something that I have overlooked. Increasing this value, I got what I wanted! This is amazing! Thank you!
Hmm, thanks looked your decision. In the case of two cubes, this works (although it's also not always ideal). I tried on a complex scene - the render is wrong, some objects disappear, some objects appear.
Example is ready
Delphi. Well, I'll make an example.
Hi guys. I'm using a shader. When the camera is away from the object (GLCamera1.AdjustDistanceToTarget(Power(1.1, -ZoomValue / 480));), artifacts appear. I think that this is due to the insufficient accuracy of the calculations. How to deal with this?