Thread: How to draw circles with DX9?? Please help

  1. #1
    Registered User
    Join Date
    Jun 2002

    How to draw circles with DX9?? Please help

    I'd like to know how to draw (or at least some links)
    - circles
    - cilynders
    - sphere

    and a sort of wall with a round hole in it.

    everything done with directx.

    Thank you very much

  2. #2
    Registered User
    Join Date
    Apr 2002
    Well you have some options. You can hard code all of the triangles yourself and just render them that way but it is kind of dirty. There are some Direct3D X helper library functions that make life a little easier. There is one for creating a sphere D3DXCreateSphere( ). This will give you a mesh and you can draw it that way. Alternatively you can have someone or make yourself, some very simple 3D Max models. You can output them as ascii and the vertices are easy to read in. To create circles just use a triangle fan and render as many triangles as necessary. Or just use a texture or a circle, depends what you are doing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Circles and Computers
    By G4B3 in forum Tech Board
    Replies: 4
    Last Post: 11-29-2008, 09:23 AM
  2. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 11:56 PM
  3. draw function HELP!!!
    By sunoflight77 in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 11:28 PM
  4. ray casting
    By lambs4 in forum Game Programming
    Replies: 62
    Last Post: 01-09-2003, 06:57 PM
  5. Draw Shapes.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-19-2002, 09:22 AM