View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000132 | Gorilla3D | Feature Request | public | 2021-01-05 12:34 | 2021-01-15 20:19 |
Reporter | administrator | Assigned To | administrator | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 0.8.3.x | ||||
Target Version | 0.8.3.x | Fixed in Version | 0.8.3.x | ||
Summary | 0000132: Helper function for meshes to center vertices for models with offset | ||||
Description | A customer needs a helper function to center vertices when models loaded with a transformation matrix | ||||
Tags | No tags attached. | ||||
Delphi-Version | 10.3.2 | ||||
OpenGLVersion | OpenGL 4.3 | ||||
|
implemented TMeshDef.ApplyTransformationMatrixToVertices() Caution: the method applies the provided matrix and joins with all transform-matrices. Afterwards it removes the local transformation matrices. Example: LGrp := FPackage.GetGroup(GORILLA_ASSETS_MODEL); LAst := LGrp.FindAssetByFilename('GXR-LA10A-blender.dae') as TGorillaModelAsset; TModelDef(LAst.Model).ApplyTransformationMatrixToVertices( TMatrix3D.Identity ); FModel := TGorillaModel.LoadNewModelFromDef(FViewport, TModelDef(LAst.Model), []); FModel.Parent := FViewport; FModel.SetHitTestValue(false); |
|
Changes afterwards: Feature: TMeshDef.ApplyTransformationMatrixToVertices() with new parameter to support direct vertex modification or dynamic transformation Feature: TMeshDef.MoveVerticesToPivot() introduced to move vertices relative to pivot center computed from bounding box and using ApplyTransformationMatrixToVertices() function Feature: TMeshDef.GetCombinedBoundingBox() introduced to compute merged bounding box for all TMeshDefs in hierarchy |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-05 12:34 | administrator | New Issue | |
2021-01-05 12:34 | administrator | Status | new => assigned |
2021-01-05 12:34 | administrator | Assigned To | => administrator |
2021-01-15 13:35 | administrator | Status | assigned => resolved |
2021-01-15 13:35 | administrator | Resolution | open => fixed |
2021-01-15 13:35 | administrator | Fixed in Version | => 0.8.3.x |
2021-01-15 13:35 | administrator | Note Added: 0000140 | |
2021-01-15 20:19 | administrator | Note Added: 0000142 |