CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    what is the best way to use GDI



    I made my program in C++ Builder 3 ,It can move human body ,it is for our dance group ,All is ok ,I use 3D view ,but only by lines ,I want to put on this lines colored polygons or textured polygons around each piece of the body.it makes about 100 polygons for one body.if I use 10 or 15 bodies it makes 1500 polygons.

    what can i use for transforming from 3D to 2D(screen) in my program.

    I'm using >>>

    X=-Jx*cos(alfa)*Xb+Jy*cos(beta)*Yb

    Y=-Jx*sin(alfa)*Xb-Jy*sin(beta)*Yb+Jz*Zb


    >>

    X -> X axis on screen

    Y -> Y axis on screen

    Jx,Jy,Jz - zoom X,Y,Z

    Xb -> 3d points X axis

    Yb -> 3d points Y axis

    Zb -> 3d points Z axis


    is it posible find simplier function for this?






  2. #2
    Join Date
    Apr 1999
    Posts
    11

    Re: what is the best way to use GDI



    I think explaining this on the Board might be useless, since everyone

    can find this book:

    "Introduction To Computer Graphics"

    J.D.Foley, A.van Dam, S.J.Feiner, J.F.Hughes, R.L.Philips

    Addison-Wesley Publishing Co. Inc. 1994,1990

    And lots of local reeditions (Poland has one, So Czech Rep. should do aswell). This is sort of a bible.

    You'll find the most generic and fast solutions there.

    Chapter 6.


    good luck

    Rem

  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: what is the best way to use GDI



    HMMMM , Thanks


    but I wrote it there cause I want to know it by this way , I have a book with this problems , but i want to know if is there better way how can I display the object in 3D to Screen

  4. #4
    Join Date
    Aug 2000
    Location
    UK, Cambridge
    Posts
    79

    Re: what is the best way to use GDI

    Just a few things:

    1) The GDI is painfully slow for graphics. Use a graphics API like DX or OGL.

    2) Your formula is not a proper projection. It's "fake" 3D.

    Tom




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

Featured