Results 1 to 4 of 4

Thread: How can we draw 3D solid arcs ?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Location
    Chennai - India
    Posts
    11

    How can we draw 3D solid arcs ?

    Hi everyone,
    I am new to OpenGL. I am working on a project where I need to draw 3D objects used in construction industry like rods(solid cylinders). I want to know how can I draw bent rods (3D solid arcs) using OpenGL ? Earlier I was using DirectX APIs but there is no API for bent rods in it so I had to develop my own code but it was taking so much time to render those bent rods(3D solid arcs). I am working on .NET Platform and using VB.NET. All responses are welcome.

    Regards,
    Dushyant Maheshwari
    NatureSoft Pvt Ltd
    Chennai

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: How can we draw 3D solid arcs ?

    I'm afraid that you'll have to draw them manually. There's no real gl functionalities that are specialised for such drawings.
    For bending constructions, maybe a bone-skeleton would help. So you always draw a 'normal' rods, that's not curved. Then you compute dynamically the distorsions with the bones rotating with the angles you want.
    I'm not an expert in skeletal animation of meshes so I can't say more.

    Hope that helps.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: How can we draw 3D solid arcs ?

    well, I forgot to tell that the glu gives the possibility to draw cylinders but that won't allow you to transform them per vertex.

    Additionally to what I said on my last post, surely vertex shaders are a good thing to perform such transformations.

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    569

    Re: How can we draw 3D solid arcs ?

    You can model the arcs in a 3D modeling studio and then import them into your application (3D studio max or Maya would do the trick). This should be easier than plotting all of the vertices using math (if you're familiar with these studios that is).

    A free modeler is Anim8or I think.
    Good luck.

Similar Threads

  1. how to draw 3D arcs
    By the_rising in forum OpenGL: General
    Replies: 1
    Last Post: 04-01-2005, 10:15 AM
  2. How to draw arcs in 3D?
    By martianfighter in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 06-26-2002, 03:10 AM
  3. how to draw a solid cylinder with gluCylinder?
    By beet6 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-31-2002, 12:25 AM
  4. how to draw a solid cylinder with gluCylinder?
    By beet6 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-30-2002, 02:49 PM
  5. how to draw a solid with gluCylinder?
    By beet6 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-24-2002, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean