Results 1 to 7 of 7

Thread: GetBoneVertexCount and GetBoneVertexID

  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    59
    Posts
    3,300
    Rep Power
    349

    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

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,157
    Rep Power
    736

    Re: GetBoneVertexCount and GetBoneVertexID

    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    59
    Posts
    3,300
    Rep Power
    349

    Re: GetBoneVertexCount and GetBoneVertexID

    Maybe I'm to tired today, but I don't understand the concept. Sorry.

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,157
    Rep Power
    736

    Re: GetBoneVertexCount and GetBoneVertexID

    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #5
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    59
    Posts
    3,300
    Rep Power
    349

    Re: GetBoneVertexCount and GetBoneVertexID

    Ok, but you need to define the array of vertices before with a specific vertexcount, or?

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,157
    Rep Power
    736

    Re: GetBoneVertexCount and GetBoneVertexID

    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    59
    Posts
    3,300
    Rep Power
    349

    Re: GetBoneVertexCount and GetBoneVertexID

    Topic closed as I don't need the requested functionality anymore.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •