Results 1 to 20 of 20

Thread: skeletons of .x files?

  1. #1

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    skeletons of .x files?

    hi ...

    I just started DirectX 8 three days ago. It works fine :-) I can load models now, I can make vertexes and combine them to objects, I can put some textures to them, add some light. Move the camera to all kind of positions.

    I guess the next major issue would be some animation. If I load a .x file of a character with a build-in skeleton. How can I make the skeleton move so I can make the character raise his hand, move his leggs ... etc.

    I have a very good modeller ( a friend of mine) who makes models (*wow*) with build in skeletons... HELP !

    Are there any good tutorials about that specific part of animating ? thank you in advance.
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    You have two choice here, really. The first is to take a look at the SkinnedMesh Sample that comes with the SDK, and figure out how it works. The second is to write your own model file format. Ill leave it to you to choose which road you want to take (look at the sample).

    Z.

  3. #3

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    damned I still don't have that SDK gonna download it right away then ... anybody has any further experiences with this topic ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  4. #4
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by BramVandenbon
    damned I still don't have that SDK gonna download it right away then ... anybody has any further experiences with this topic ?
    You should have it. The documentation is very useful for solving most problems that you will run into.

    The SkinnedMesh sample is pretty badly written, so be prepared. I personally chose to write my own formats, for a few reasons, more flexibility and power being among them =).

    Z.

  5. #5

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    I see, but I'm not really for this. I'm really new to this. I only started 3 days ago remember ? Writing and reading files would work. And maybe loading the vertexes would work.

    But then again I would need to make a program to design the files too. Reading and interpreting is one thing ... Writing the files is another. Not really ready for this I guess I'll try the SDK
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    How did you manage to do anything without the SDK?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    Well I have DirectX installed for playing DirectX games. I don't have the SDK's ... just the DirectX Pack that comes with DirectX games.

    Next I just enable the references in my Visual Basic All I need to do and works fine
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Oh yeah, VB...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  9. #9
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by CornedBee
    Oh yeah, VB...
    I think I would Die without a) The Debug Runtimes, and b) The little debug window in MSVC....

    Z.

  10. #10

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    ow come on ... you can't expect me to do it in C++ yet. I only learnd C (and some C++ commands) 2 months ago. And at school ... if you know what I mean.

    I tell you what I mean ...

    at school we only learn:

    - functions
    - cin & cout
    - and some other small commands.

    But we haven't seen anything visual yet ...
    Not even how to make a window or how to compile a DLL file.
    So it's not very usefull yet.

    The lessons are VERY good ! ... but they stick too long to the same topic ... making very small progress .
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  11. #11
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by BramVandenbon
    ow come on ... you can't expect me to do it in C++ yet. I only learnd C (and some C++ commands) 2 months ago. And at school ... if you know what I mean.

    I tell you what I mean ...

    at school we only learn:

    - functions
    - cin & cout
    - and some other small commands.

    But we haven't seen anything visual yet ...
    Not even how to make a window or how to compile a DLL file.
    So it's not very usefull yet.

    The lessons are VERY good ! ... but they stick too long to the same topic ... making very small progress .
    You wont learn anything visual in a class, very likely. That is something you have to pick up on your own.

    Z.

  12. #12

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    Well we learn it in the 2nd year. In the 3th year we'll get to learn things like DirectX in C++ but ... it's like another 2 years to go. I can't wait that long. Oh I will learn some C++ on my own. But at the current moment the problem is VB gets me way further ... and that's not really supportive to learn a new language. It would be great if I knew how to combine them ... by using DLL's. But they are not teaching that at the moment. So I'll just have to keep waiting and waiting I guess. Unless you guys can explain me how to make DLL's in C++ ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  13. #13
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Just start a DLL project in VC++ and stick to the guidelines you'll find when searching for def files on this forum.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  14. #14
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Originally posted by CornedBee
    Just start a DLL project in VC++ and stick to the guidelines you'll find when searching for def files on this forum.
    Ive stopped using def files for most DLLs, unless I actually need to use GetProcAddress on it... and even then, I only list the ones Ill need.

    Z.

  15. #15
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    He wants to write it for VB, so...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  16. #16

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    I did some research with VC++. And it looks fine. I even downloaded a tutorial. But euhmz when I put this in my form:

    Private Declare Function blablablaname Lib "blblabla.dll" (para1 as integer, para2 as integer) as integer

    Private Sub Form_Load()
    blablablaname(12,13)
    End Sub

    I get an error ... blblabla.dll could not be foud or something like that.

    Does anybody know how this happened ?

    Does anybody have a little example for me ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The dll must be either in the windows system path (windows\system on 9x, winnt\system32 on NT) or in the VB app's path. Or you specify the complete path explicitly.

    Don't forget that Integer in VB is the same as short in C++.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  18. #18

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    I just found an example over here :
    click here

    but anyway thanks for your help.

    ... the dll was in the application directory ... so I still don't know why. But it doesn't really matter anymore

    By the way does anybody has more help about the skeleton topic (the initial topic) ?

    Thank you very much for the support this far
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  19. #19
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Like I said, the only real resource is the SDK sample. There isnt a one call load-my-skinned-mesh-and-make-it-work function... there is a LOT of work that you have to go through.

    Z.

  20. #20

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502
    There isnt a one call load-my-skinned-mesh-and-make-it-work function...
    why not ?

    there was a load-my-skinned-mesh function

    maybe there's a load-my-skinned-mesh-with-skelet function too ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

Posting Permissions

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



Click Here to Expand Forum to Full Width