User Activity

  • Posted a comment on discussion Open Discussion on GLScene

    Thanks Pavel, I don't know about the design time problem but for me the problem occurred when reading a 3ds file I saved from Blender years ago. Then, a few months ago the 3ds file could no longer be loaded and I recently located that the problem was the shininess property. There must have been a change in the code at some point? No errors were thrown so the error was not easy to locate. When debugging, I could see that the shininess value read from the file was in the thousands. I have no idea where...

  • Posted a comment on discussion Open Discussion on GLScene

    Hi, I think I have located a bug. In unit GLS.File3DS, at line 1536, shininess is assigned directly as a result of the MaxInteger function. However, shininess is limited to 0..128 (TGLShininess = 0..128), and if the result of MaxInteger is outside that range the code simply fails without and error. To fix it, I have added code to first read to a temporary variable and then check the range before assigning. I don't have rights to do the change in the code base, so could someone fix ths? function GetOrAllocateMaterial(materials:...

  • Posted a comment on discussion Help on GLScene

    Hi Eric, I struggled with this as well when I first implemented the TGLTerrainRenderer many years ago. It is not logic at all, but you need to normalize the vertical scale of TGLTerrainRenderer with the actual range of your data. The procedure below is taken out of context, but I think you can see what it is doing. procedure TGridTerrain.UpdateHDSScale; var HDSMaxAbsValue : Double; begin inherited; HDSMaxAbsValue := 32767; if (Grid.MaxValue - Grid.MinValue) <> 0 then begin if Abs(Grid.MaxValue) >...

  • Posted a comment on discussion Open Discussion on GLScene

    Pavel, The demos seem work, so it is not a general problem. Thanks

  • Posted a comment on discussion Open Discussion on GLScene

    Hi all, I have upgraded to Delphi 12.1, and now textures are not loaded for 3ds files. I am also having problems with obj files. I have tried to roll back GLScene to a version before I upgraded Delphi, but the problem is the same so I suspect some change in Delphi. Am I the only one experiencing those problems? Lars Nebel

  • Posted a comment on discussion Open Discussion on GLScene

    Hi Pavel, Yes, RayCastIntersect is implemented in TGLBaseSceneObject and is called, but it does not work for TGLPipe because the BoundingSphereRadius is only a default one unit radius which does not reflect the shape of the actual pipe. As I understand it, RayCastIntersect must be implemented for each object class so that all the triangles in the object can be tested for intersect, similar to TGLCylinder.RayCastIntersect. This seems to be a really complicated task for TGLPipe and over my head at...

  • Posted a comment on discussion Open Discussion on GLScene

    Hi all, I have been trying to do a raycastintersect on TGLPipe objects, but just realized that RayCastIntersect has not been implemented for TGLPipe. From what I can see in implementations for other objects, implementing RayCastIntersect is not trivial. So, is there another way to do this? TGLFeedback could possibly be used to extract the triangles for the pipe object, and then do the ray cast as in TGLBaseMesh.RayCastIntersect. However, TGLFeedback renders all visible objects in the whole scene,...

  • Posted a comment on discussion Help on GLScene

    Hi John I am not an expert in TGLExtrusionSolid but I guess you could extrude from the XY-plane and then rotate the extrusion so that it aligns with that other plane. To extrude both forward and backwards, you can offset the extrusion solid down. If you add the extrusion solid to a dummycube, it is easy to both rotate and offset in any angle and distance. \Lars From: John Kidikian hello-me-john@users.sourceforge.net Sent: Saturday, 22 May 2021 14.27 To: [glscene:discussion] 93606@discussion.glscene.p.re.sourceforge.net...

View All

Personal Data

Username:
lnebel
Joined:
2006-10-06 16:41:31
Location:
Hadsten / Denmark / CEST
Gender:
Male

Projects

  • No projects to display.

Personal Tools