Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #444: GroupNames
Product:
TV3D SDK 6.5
Language:
Delphi
Current State:
Closed
Resolution:
Fixed
Created On:
July 1st, 2005
Last Modified:
July 2nd, 2005
Reported By:
Vortex
I have noticed, that under uncertain circumstances wrong GroupNames was saved in .tvm a file. There is 'garbage' or zero length strings. I could not define the reason of occurrence of these phenomena. Sometimes bugg occours after Mesh.Destroy or Scene.DestroyAllMeshes, but sometimes just after 6-7K of AddVertex Calls.

I create the object using next scheme:

Scene.CreateMeshBuilder
for each group
Mesh.SetPrimitiveType (
mat = Mats.CreateMaterial (
// set material properties
tex = Texture.LoadTexture (
grp = Mesh.AddFace (tex)
for each triangle
Mesh.AddVertex ( // - three times
end
// bug may occours when trinagles more than 1000
Mesh.SetGroupName (grp, 'unique_name_for_each_group')
Mesh.SetMaterial (mat, grp)
SetBlendingMode (TV_BLEND_ALPHA or TV_BLEND_NO, grp)
end
Mesh.ComputeBoundings
Mesh.SetLightingMode (TV_LIGHTING_MANAGED, -1, -1)
Mesh.WeldVertices (0, 0)
SaveTVM (...

That's All, but sometimes i cant see any groupnames in .tvm. and .log file is all ok.

When i do GetGroupName just after SetGroupName it returns name Ok. But after Save then LoadTVM group names is broken.

Ah, one more thing - sometimes i see first 1-2 correct group names in tvm, but the all other is broken.

Comments:

No comments available.