Questions tagged [glscene]

GLScene is an OpenGL based 3D library for Delphi. It provides visual components and objects allowing description and rendering of 3D scenes in an easy, no-hassle, yet powerful manner.

GLScene is an OpenGL based 3D library for Delphi. It provides visual components and objects allowing description and rendering of 3D scenes in an easy, no-hassle, yet powerful manner.

GLScene is not just an OpenGL wrapper or utility library, it has grown to become a set of founding classes for a generic 3D engine with Rapid Application Development in mind. GLScene allows you to quickly design and render 3D scenes without having to learn the intricacies of OpenGL, if you know how to design a TForm, you'll easily master the basic operations of GLScene. The library comes with a large collections of demos showcasing the ease of use, and demonstrating RAD wasn't done at the expense of CPU/GPU horsepower.

http://glscene.sourceforge.net/wikka/HomePage

44 questions
0
votes
1 answer

Why can't I load GLScene as a package in C++Builder?

I am trying to use GLScene (a third-party FireMonkey component for C++Builder and Delphi). I downloaded the zip, and in it, among other things, are .bpl files for use in C++Builder. When I try to install the package in my project (a C++Builder…
Andrew Farm
  • 193
  • 1
  • 12
0
votes
1 answer

GLScene picking

I have been using GLSceneViewer1.Buffer.GetPickedObject( x, y ) to pick GLscene objects in a GLViewerMouseDown event per the pick demo. I need to select an object, change the color, with a left mouse click and deselect with another left mouse click,…
GrooverMD
  • 121
  • 3
  • 12
0
votes
1 answer

How to show extrusion or polygon wireframe in GLscene

I am learning how to use GLscene and am trying to render a stack of planar polygons that are layered so the polygons are coloured according to the layer number and each layer has a specific height (z depth). GLextrusion seems to be ideal to render…
Andy k
  • 1,012
  • 1
  • 10
  • 19
0
votes
1 answer

How to draw on a single GLSceneViewer using GLCanvas but not on all viewers?

I'm usually using TGLCanvas on GLDirectOpenGL1Render to draw lines like this: uses GLCanvas, GLRenderContextInfo {...} procedure TForm1.GLDirectOpenGL1Render(Sender: TObject; var rci: TRenderContextInfo); var glc: TGLCanvas; begin …
Kainax
  • 1,306
  • 14
  • 24
0
votes
3 answers

GLScene triangles count

Is there any way to find the total count of triangles in the scene? I searched in the documentation and class references, but was not able to find any procedure or method about that.
Milen
  • 1
  • 1
0
votes
1 answer

Make texture fit 4-point polygon/plane with GLScene or OpenGL for Delphi

I am using the latest GLScene trunk for Delphi XE2 and I have worked on a GUI-ish type of project which uses 3D instead of 2D to draw GUI elements on screen. It works, but the graphics placement isn't pixel-perfect for obvious reasons. I have…
xaid
  • 720
  • 6
  • 17
0
votes
0 answers

Load TGLImage or TGLTexture from stream

I am using GLScene SVN Snapshot 6432 with Delphi XE2 and it does not seem to be possible load a texture image from a stream. I have scanned through the documentation and searched the internet but all I can find is the declaration LoadFromFile, no…
xaid
  • 720
  • 6
  • 17
0
votes
1 answer

Delphi XE5 + GLSceneForm not working on some PC's

After upgrading to Delphi XE5 and latest GLScene, on some PC's the TGLSceneForm crashes the app completely (see log file below). However if I take the exact same app and compile it in Delphi 2010 (with older version of GLScene) it works…
Rick Wheeler
  • 1,056
  • 10
  • 21
0
votes
1 answer

Load new scene in GLScene

I'm trying to delete all the scene objects in the GLScene container and I use the following code snippet to do it, but for some unknown reasons it crashes raises the segmentation fault when I try to free the object. I tried to debug line by line and…
Sonya Blade
  • 279
  • 4
  • 21
0
votes
1 answer

Second material not showing in the glhudsprite

I try to show an image in a TGLHudSprite in some odd way... Here is my try.. i have a material library and a hudsprite... myMatlib: TGLMaterialLibrary mySprite: TGLHudSprite next i create this objects... myMatlib:=…
azrael11
  • 417
  • 6
  • 17
0
votes
1 answer

How find and free glScene objects....?

i wrote this code to dynamic create led var fLed: Tglhudsprite; i,fImgSnapNum: integer; ............ for i := 0 to fImgSnapNum - 1 do begin fLed := TGLHUDSprite.CreateAsChild(MainForm.Dummy_Sound); fLed.Name := 'fLed' +…
azrael11
  • 417
  • 6
  • 17
-1
votes
1 answer

Delphi to C# - soFromBeginning

I am writing a port from delphi to c# but i am stuck with this. soFromBeginning? FStream.Seek(FHeader.DirOffset, soFromBeginning); soFromBeginning isnt support by c# what can i use as a replacement in a Stream? it seems that soFromBeginning is…
-1
votes
1 answer

Why does the CSG Operation raise "Stack Overflow" in GLScene

In some cases, the method "TFGBSPNode.PerformSplit" trapped into an "dead-loop" causes "stack overflow" exception. I have traced the source code and found that the method "TFGBSPNode.FindSplitPlane" always gets the same value... unit unTest; …
avanlau
  • 11
  • 1
-2
votes
1 answer

Create a 3d plane with three points

We know a 3D plane is built by 3 points. Now in delphi I use GLScene there is a plane in which you cant see any arbitrary point to create a plan. My question is how to set a plane by 3 given points. According to SO rules I write my TGLPlane source…
naser daneshi
  • 264
  • 1
  • 10
1 2
3