Maor - 2023-08-28

Hi,
we're trying to upgrade our software from XE7 and a very old GLScene framework to D11 Alexandria.

We have an issue where the initial render is fine, but as soon as we do transformations such as rotate, zoom, or move, all the objects are rendering black. Text doesn't render at all and appear as black dots in random spots.

This is the code that produces a bitmap:

  bmp := TBitmap.Create;
  bmp.Height := GlSceneViewer.Height;
  bmp.Width := GlSceneViewer.Width;
  bmp.PixelFormat := pf32bit;
  GlSceneViewer.Buffer.RenderToBitmap(bmp);
  Result := bmp;

Works fine the very old GLScene framework (v1.0.0.0714 from ~2008), but broken with any recent version of GLScene. We tried v1.6, v2.2, v2.3.

We are also experincing issues with nVidia cards where the same routine for bitmap production works on Intel iGPU, but nVidia T600 on a laptop shows the same black objects effect.

I tried using TGLSceneViewer.CreateSnapShotBitmap() but that produces the same black objects issue.

It seems like the buffer is running out of memory or something but there are no exceptions.

The other bizarre issue is once the initial image is rendered, a call to CreateSnapShotBitmap() produces the same image as shown on-screen but all objects are black (no texture).

Any idea what is going on?

Any help will be greatly appreciated!

   Maor