PDA

View Full Version : 2D CAD program



3rdElement *a*
01-15-2004, 08:43 AM
Guys,
Are there any kind of *FREE DOWNLOADING* 2D CAD program that can convert C++ Language in combination with OpenGL?
Why? It took me a month to browse around for a tutorial explaining how to make a circle, line, triangle or square or such polygons using C++ codes in combination with openGL. Nor how to rotate it. And also,there isn't any tutorial explaining how to set up text/number at refresh rate on every changing values (if networked via game program).
For clarification. My intention on working with project on driving simulation. What I wanted to have is the server working via client(s). The server would have driving simulation program installed, and if I could find some help and create .exe with knowledge of codes i could have it installed in client which would display as speedometer "instrument panel."
So at the point, if there isn't any libraries or tutorial on flat polygons or refreshing texture at value change. I thought maybe there are some 2D CAD programs that I could download it for free. Maybe I could use mouse to expand flat polygon and it would automatically write C++ codes. In other way, it's good to learn what codes are when creating flat polygons. After creating polygons, I could probablly color it or add textures on it. Then I could compile it run it.
Or are there any other suggestion that you might want to share with me regarding to what I am looking for? Let me know...

3rdElement

nexusone
01-15-2004, 09:03 AM
You can use any 2D/3D CAD program to draw your objects, for complex objects that is the only real way to go.

Most 3D objects are created from hundreds to thousands of triangles. For doing then in C/C++ code is really not the way to go.

Most people build the object with some CAD program, then create a openGL routine to read in the data file which was created by the CAD program.

Once you have the data loaded you can translate, rotate and scale it.

For you speed, gas, etc display, you use a bitmap graphic of the guages, then for your needle you can draw it with a line or triangle. Then when you refresh the screen you use move the needle location.

nehe.gamedev.net is a good place to start in learning how to do all of this.


[This message has been edited by nexusone (edited 01-15-2004).]