Results 1 to 8 of 8

Thread: Draw triangle...

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    How can I draw a trianlge....and perhaps make it spin...
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Member
    Join Date
    Sep 2000
    Location
    Sweden
    Posts
    37

    I guess you mean spinning in three dimensions...

    If you want light effects, textures and so the best way is to use DirectX, but I know too little about DX to help you with this. Other guys here know more.

    But if you want to do the hole thing buy youself, you must give an x,y, and z value to all points in the triangle/cube...
    Then you simply use a couple of rotation algorithms to spin your object´s points in any way you like. I can post theese if u like, gotta look them up first
    To make it look nice you must also use some kind of projection, check my post "Projection" in the Math forum, there´s some nice answers
    API call "Polygon" or "PolyPolygon" might be useful for the drawing.
    Balder = Viking God
    VB6/VC++ Enterprise Editions

  3. #3

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    Hi Balder!
    Yes I would really like that!
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    I saw a tutorial on making a 3D triangle spin here:

    http://www.vbexplorer.com

    Look for the D3D tutorial

  5. #5

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    Thank you! I'll try that!
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  6. #6
    Hyperactive Member tomcatexodus's Avatar
    Join Date
    Feb 2001
    Posts
    372

    Red face

    Call me lazy, but if anyone has any good coding for a three-dimensional object, and the manipulation of it's rotation, movement, etc... could you send it to me?

    Send to: [email protected]

    Thanx...
    IWS

  7. #7
    Guest
    If you want to get into 3D graphics, i would recommend
    DirectX. Once you get the hang of it, it is extremely
    simple to work with. Go to
    http://www.vbexplorer.com/directx4vb

  8. #8
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Zaei: Look at your site, it's the same I pointed him
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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