glscene

Glscene Ugly Texture with Materiallib

懵懂的女人 提交于 2020-01-06 09:03:41
问题 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 to use some shader. But if I add a materiallib to my free from I get a ugly result from it. You can see the effect on this picture Where is my mistake? Thanks for any answer or tip 回答1: Apparently the texture is not active. Did you enable it in the

Grab a vertex under mouse position in GLScene

╄→гoц情女王★ 提交于 2019-12-24 03:24:54
问题 I'm writing a 3D modeling application using GLScene , so I need to move some vertices under mouse position to new position by grabbing the vertex. First of all, I load a sphere and pick up a vertex by mouse,then I try to drag it but I realize that the vertex doesn't move under mouse caret correctly. unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Math, //GLScene

GLScene - convert 3D vector into current camera vector

不羁岁月 提交于 2019-12-11 07:56:55
问题 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 回答1: If you wish for your vector to have the same direction as the camera, you can simply use the GLCamera.Direction vector property. So, e.g. if your camera is currently pointing along the x axis the Direction property will be (1,0,0). You can use this vector and simply copy these x,y,z values and assign them to your x,y,z values of your