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

45 questions
2
votes
1 answer

GLScene (OpenGL library) mesh axes wrong way round

I'm having a play about with GLScene (an OpenGL based library) in a Delphi 7 project and having trouble trying to alter the "global" (not sure what the correct terminology is for this!) axes of a model. Essentially, a model loads in sideways, so…
sxthomson
  • 563
  • 2
  • 5
  • 18
1
vote
1 answer

GLScene - convert 3D vector into current camera vector

I have x,y,z vector in the 3D world and I want to make that vector have the same direction with the current camera vector position. I use Delphi/GLScene
zac
  • 4,495
  • 15
  • 62
  • 127
1
vote
1 answer

Delphi - GLScene how to get x,y,z of a picked object

I have a scene with basic geometry (pick demo) I want when I select any object to return the x,y and z of the mouse cursor otherwise return -1
zac
  • 4,495
  • 15
  • 62
  • 127
1
vote
2 answers

How to stop GLScene GLSceneViewer component crashing Delphi 10.3 IDE?

I'm updating an existing GLScene app to Delphi 10.3. I've got latest GLScene installed (from https://sourceforge.net/projects/glscene/) but TGLSceneViewer component is causing an error. Even on a new project when I drop a TGLSceneViewer on a form I…
1
vote
0 answers

How to make GLPlane always have front-to-camera direction ( Delphi, GLScene )

I have a GLScene with a camera that rotates by mouse events procedure TForm1.GLSceneViewer1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin mdx:=X; mdy:=Y; end; procedure…
kandiral
  • 51
  • 3
1
vote
0 answers

Why is glscene imposter not rendered fully but cut-off?

I hope someone can help. I created an imposter with Delphi GLScene but it seems that the imposter is not rendered fully but that it is cut-off. The imposter is to the right in the attached image and the 3D model to the left. The funny thing is that…
1
vote
0 answers

GLscene - Long delay between adding scene objects and scene appearance

I have a routine which adds a few hundred (mainly TGLextrusionsolid) objects into the scene. The routine loads all the objects into GLscene with no problems in a few milliseconds but after exiting the loading code and allowing entry back into the…
Andy k
  • 1,056
  • 1
  • 11
  • 22
1
vote
0 answers

GLDirectOPenGL in GLScene

I'm using GLScene and have a problem with working GLDirectOPenGL. I want to draw a tringle on a scene but It draw only 3 edge of tringle and cannot to colorise the tringle. As you can see the trinanle has dot style that I dont want and not…
naser daneshi
  • 284
  • 1
  • 10
1
vote
0 answers

Reducing memory usage of GLScene textures

I am using GLScene to view images on planes. I have a hard time figuring out why a 1.2 megabyte photo uses over 50mb of memory when loaded to a texture which is applied to a plane. I have tried setting the Texture Compression to tcHighSpeed since…
xaid
  • 740
  • 6
  • 18
1
vote
1 answer

GLScene FreeForm RayCastIntersect Problems

I am using the GLScene RayCastIntersect function with Delphi (XE2) to determine the intersect point between a segment of a ballistic trajectory and a FreeForm mesh. If I import the mesh and use the RayCastIntersect function then the intersection…
1
vote
1 answer

Decal texture in GLScene

I'm wanting to put a visual highlight (selection box really) onto one of many TGLPlane's which have many different textures assigned to them. How would I apply a second decal texture to that plane using GLScene? Some background. The various…
Ian Macintosh
  • 369
  • 4
  • 13
1
vote
1 answer

Off-screen OpenGL rendering using Mesa3D in a Win32 service

Various questions have been posted on the subject of off-screen rendering, especially as it concerns a Win32 service, such as the following questions in which Mesa3D has been suggested as an option... Offscreen rendering to a texture in a win32…
Andreas T
  • 11
  • 2
1
vote
4 answers

Can i change Emition Color to a GLHudSprite object in GLScene?

i use this function to get the material function AddMaterial(aMatLib: TGlMaterialLibrary; aFileName, aMaterialName: string):TGlLibMaterial; begin result := aMatLib.Materials.Add; with result do begin with Material do begin …
azrael11
  • 417
  • 6
  • 18
0
votes
0 answers

GLSL Raycasting with Delphi GLScene

I use a modified version of GLScene Texture3D demo, exploring the use shaders with GLScene. I can get shaders to work, but not raycasting algorithm (single pass). In FormCreate, a unit cube is specified: //unit cube, for raycasting FVertexArray[0]…
Ronald Ruijs
  • 67
  • 1
  • 11
0
votes
1 answer

Glscene Ugly Texture with Materiallib

I am using GLScene in my delphi project. I add some freeform on my scene (for example tooth). in the past I don't use material libs. I add my texture via the material property directrly of the freeform. Now I have to use materiallibs because I want…