GetBoneVertexCount and GetBoneVertexID
issueid=77 15-02-2008 11:27
Super Moderator
Number of reported issues by Michael Hartlef: 41
GetBoneVertexCount and GetBoneVertexID

Hi Petr,

I would like to retrieve the amount of vertices connected to a bone plus retrieve their ID's.

Thanks
Michael
Issue Details
Issue Number 77
Issue Type Feature
Project TBGL
Category Unknown
Status Implemented
Priority Unknown
Suggested Version Unknown
Implemented Version (none)
Votes for this feature 0
Votes against this feature 0
Assigned Users (none)
Tags (none)




09-03-2008 18:42
Super Moderator
Hi Mike,

the VertexIDs could be returned to passed array, which would be autodimensioned by this command.
Is it ok for you?

So something like:
[code=thinbasic]
NumberOfVertices = TBGL_m15GetBoneVertices( Model, Bone, thinBasicArrayOfLongs )
[/code]


Thanks,
Petr

09-03-2008 19:33
Super Moderator
Maybe I'm to tired today, but I don't understand the concept. Sorry.

09-03-2008 20:07
Super Moderator
I am sorry,

next try :)

To retrieve list of vertices in particular bone:
[code=thinbasic]
DIM MyIndices(32) AS LONG
DIM HowMuchVerticesReally AS LONG

HowMuchVerticesReally = TBGL_m15GetBoneVertices( %ModelOfMonster, %Eye, MyIndices )

' -- Now HowMuchVerticesReally contains number of vertices in bone
' -- Now MyIndices array is dimensioned as for appropriate number of bones and contains their indices
[/code]

Is it more clear now? :-[


Thanks,
Petr

09-03-2008 22:24
Super Moderator
Ok, but you need to define the array of vertices before with a specific vertexcount, or?

09-03-2008 22:48
Super Moderator
Hi,

I think thanks to thinCore functions I can redim the variable on my own, from within module.
This way behaves PARSE ( not parse$ ! )command for example.

I will think about it more, getting sleepy too today :)


Petr

27-11-2008 11:12
Super Moderator
Topic closed as I don't need the requested functionality anymore.

+ Reply