How Can I draw What I want?

This is a discussion on How Can I draw What I want? within the Game Programming forums, part of the General Programming Boards category; I want to draw graphic such as fruits and small cars,houses but only able to draw some clumsy triangles. please ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    76

    How Can I draw What I want?

    I want to draw graphic such as fruits and small cars,houses but only able to draw
    some clumsy triangles.

    please tell me about strategy so that I can draw whatever I want.

    best regards,
    CChakra

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Um....
    Draw whatever you want eh? If only it were that easy.

    We are not psychic so unless you have a specific problem with meshes or sprites then we really can't help you. There isn't any way to draw 'what you want.'

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    LOL , yea I forgot to add some details.
    Suppose ,I want to draw a car what strategies I could make so that I can follow it in whatever
    graphics I want to create.

    How to find out about polygons needed for particular graphics?

    best regards,
    CChakra

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    For 2D drawing, you would probably use a combination of rectangles, triangles/romb/trapezoids to draw a car, along with a couple of circles for wheels. It obviously depends on the level of detail you want - a symbolic car or something that looks EXACTLY like a BMW 320i from 1998.

    In 3d graphics, everything (almost) is done as triangles that connect together. You can make any shape from triangles as long as you have many enough.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    My real question is how to create math coordinates for particular graphics?

    How to find out the values which I will put in those functions?

    is there any software which generate polygons coordinates or whatever we call it?

    best regards,
    CChakra

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Most game graphics is created in a 3D drawing packages - something like 3DStudio Max. There are formats that export such an image in a format that can be loaded by the application.

    I'm sure there are less expensive packages thatn 3DStudio MAX, of course.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    so , it's all about maths.
    Without knowing the pros and cons of Mathematics I could not do what I want.
    But I want to do what I want no matter what maths I have to learn I will do it.
    The good thing is you guys are here to help me.

    best regards,
    Chakra

  8. #8
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    so , it's all about maths.
    No, not at all in this case. It's about learning to use 3d drawing programs, and about an excellent spatial imagination. 3d drawing is about knowing how to do the simple things (placing basic objects, extruding meshes, ...) and understanding how to form a complex object from such simple things. The former requires practice, the latter requires intuition and a lot more practice.

    The math is important when you want to do graphics programming, not for creating models.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  9. #9
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    thanks for replies guys

  10. #10
    Amazingly beautiful user.
    Join Date
    Jul 2005
    Location
    If you knew I'd have to kill you
    Posts
    254
    If you want to get into 3d modeling, both Anim8or and Blender are free. Anim8or is easier to learn while Blender is more powerful, but both have options to export your models into relatively easy to read files.
    Programming Your Mom. http://www.dandongs.com/

  11. #11
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    While not free, it's fairly cheap and easy to get in to; Milkshape 3D.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  12. #12
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    Well,I am more interested in 3d graphic programming rather 3d modeling via software.
    I am looking for softwares which can generate coordinates for me.

    for example ,I create a model of car in it and I can get coordinates by using some kind tool
    utility provided by the particular software.And that way I can put those coordinates into
    function's parameter and create my model by codes as if the math logic actually calculated by
    me rather than exported from the software.

    please comment

    best regards,
    Chakra

  13. #13
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by CChakra View Post
    Well,I am more interested in 3d graphic programming rather 3d modeling via software.
    I am looking for softwares which can generate coordinates for me.

    for example ,I create a model of car in it and I can get coordinates by using some kind tool
    utility provided by the particular software.And that way I can put those coordinates into
    function's parameter and create my model by codes as if the math logic actually calculated by
    me rather than exported from the software.

    please comment

    best regards,
    Chakra
    That is exactly what those tools described above does: You "draw" your car in the program, then you export the coordinates (triangle-list or such) and your application can use those coordinates to reproduce the car in whatever way you want (using lighting, rotation and at different distances, hidden behind something, etc, etc).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  14. #14
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    Thanks Mats,I admit this forum better than all programming forums ,even the paid ones.
    Finally I can draw what I want.

    Softwares make life easier.

    C++ is my first programming language,I learned it and enjoyed it but before I would reach the
    advance level due to my inferiority complex I listened to others,got discouraged ,left c++ and moved to Java.That was my big mistake.Now I have to rectify my mistake by starting c++ once again and this time I will never back down.

    I know Java is not good for game and graphic applications but it 's not bad for
    server side programming.

    I better stop talking about Java or I will be kicked out from here. LOL

    best regards,
    Chakra

  15. #15
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You can get pretty good 3D programs in Java, but that's a different discussion altogether.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 11:56 PM
  2. draw function HELP!!!
    By sunoflight77 in forum C++ Programming
    Replies: 1
    Last Post: 05-11-2005, 12:28 AM
  3. ray casting
    By lambs4 in forum Game Programming
    Replies: 62
    Last Post: 01-09-2003, 06:57 PM
  4. draw to a BITMAP* argument - allegro and objects again
    By MadHatter in forum Game Programming
    Replies: 13
    Last Post: 12-13-2002, 06:51 AM
  5. Draw Shapes.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-19-2002, 10:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21