Hi Pavel, Thank you for the links to those examples, I think I should be able to figure it out from them. I had searched all the demos installed with the main code but had not found the Examples folder on SourceForge, I have downloaded all of them now though! David.
After a lot of experimenting I think that the initial problem was that the HeightField does not have a TextureOffset & TextureScale property, these are only available via a MaterialLibrary.Material. So I changed the example Fxy demo app by adding a MaterialLibrary and then: procedure TFormFxy.FormCreate(Sender: TObject); begin GLMaterialLibrary1.Materials.Clear; with GLMaterialLibrary1.AddTextureMaterial('Image1','HTFViewer.jpg') do begin textureoffset.x := -0.5; textureoffset.y := -0.5; Material.Texture.Disabled...
I want to map an image onto the surface of a Heightfield, I have messed around with the Fxy demo and I can get an image onto the heightfield, I just can't position it. Setting Material.Texture.Image to the image, MappingMode to tmmObjectLinear and TextureWrap to twNone places the image in one quadrant of the heightfield, but I want the image to be stretched to fill the entire heightfield. I presume the MappingQ/S/R/TCoordinates are involved but I have no idea how. I have tried changing various values...
Hi Shine World, Sorry for the slow aknowlegement, stuff happened... Anyway, thanks for the info, I think that will certainly get me on the right track. D
I would like to be able to attach some extra data, ideally in the form of a stringlist, to a range of GLobjects (planes, heightfields, spheres, etc.). Is there some straightforward way of doing this in GLScene that does not involve writing new classes for everything?
Hi Jerome, Thank you for the help! I will give it a try... David.
I would like to store some extra text and numerical data in some GLScene HeightFields, for example datetime stamp, modified by name, a 2D array of Z values, etc. It seems to me that this should be possible using (something equivalent to) a record attached to the .TagObject however I can't work out how I should define the 'record' as an object and then how I can access the data. Is this a sensible approach? Is there a better way? How should I define the record/object, create the object & assign it...
I have the same problem. Clean Win 10 installation on a new laptop, Clean XE3 installation, try to install GLScene 1.7 but System.Math.Vectors is not found. Searched C & D drives, System.Math.Vectors is not present. Have had to drop down to GLScene v1.2 to get it to install. That was the latest version I could find that dd not reference System.Math.Vectors