Click here to Skip to main content
11,714,345 members (81,679 online)
Rate this: bad
Please Sign up or sign in to vote.
Hi All,

I want to display twisting of two wires using OpenGL in VC++ environment. I have little knowledge to OpenGL.
Please provide your suggestion and insight to achieve it.
Posted 13-Jun-12 22:24pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I would start by learning OpenGL.

See the OpenGL Code Resources for examples on how to do many common OpenGL tasks.

Note that there is a disclaimer that the samples have code that isn't supported in 3.1. Don't worry about that for now.

I would start with getting 3D lines to intertwine like they are wires, to get your core geometry started. Don't have them touching, but have them separated by the diameter of your desired wires.

Then use those lines to define the segments of connecting mesh cylinders.

Sounds like fun!
Good luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 540
1 Maciej Los 259
2 Richard MacCutchan 230
3 OriginalGriff 140
4 F-ES Sitecore 140
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100