Solved

openGL or active x for drawing 3d

Posted on 2009-05-09
12
884 Views
Last Modified: 2013-12-26
Hi.
I'd like to make my programming easier by using openGL or some active x to allow me to draw surfaces (square planes) and do rotation.
The reason that I don't want to do the transformations by myself is that its hard to draw planes that intersect.
I've tried:
http://www.ondotnet.com/pub/a/dotnet/2003/04/28/opengl.html
http://embedded.org.ua/opengles/lessons.html
and some other free dll's.
but I could not get them to work.
They complain about the missing glaux,glu,...
and then i realized that these are no longer in vb 2008, ...i tried to fix the errors, but there are still errors such as "Error spawning 'cmd.exe'."
Could you please submit a vb net 2008 code that actually works to draw a simple plane?
Thanks
0
Comment
Question by:kouroshparsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
12 Comments
 
LVL 20

Accepted Solution

by:
ikework earned 300 total points
ID: 24348573
hi kouroshparsa

if you want to start learning opengl, nehe has a lot of good tutorials, from first stepsto advanced technics, plus they have all tutorials as projects to download, so you dont have to worry about that. nehe is here:

http://nehe.gamedev.net

i recommend you to read particulary the first lessons ..

if you have any question, dont hesitate to ask .. :)


ike
0
 
LVL 2

Author Comment

by:kouroshparsa
ID: 24359727
Thanks for the comment.
I actually have looked at that website.
The sample codes do not work on VS Basic 2008 because of the header files:
#include <gl\gl.h>                                    
#include <gl\glu.h>      
#include <gl\glaux.h>
That's what I was talking about.
0
 
LVL 20

Expert Comment

by:ikework
ID: 24361805
there is visual basic code at the bottom of each lesson too ..
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 20

Expert Comment

by:ikework
ID: 24361838
0
 
LVL 2

Author Comment

by:kouroshparsa
ID: 24370837
I finally got it working. It needs a CSGL library , and installing the library does not work on vista, so i copied the library to the project folder and linked the project to it.
Fankly, i wish to get to know openGL quickly.

by the way, do you know why we use the "translatef" method to draw something else?
Don't all the shapes use the same coordinate?
0
 
LVL 20

Expert Comment

by:ikework
ID: 24371871
>> by the way, do you know why we use the "translatef" method to draw something else?
>> Don't all the shapes use the same coordinate?

"translatef" is used to put an object to its position in 3D-space. imagine you have a chair and a table, you dont want to render them both at the same position, do you?
0
 
LVL 2

Author Comment

by:kouroshparsa
ID: 24400872
no. but still it's ambiguous.
Let's say i want to draw a line from (100,100) to (100,200).

The demo that i downloaded does this:

draws a line from (0,0) to (0,100)
then translates it by <100,100>

so, is there any problem with creating a line object directly from (100,100) to (100,200) in openGL ?
0
 
LVL 20

Expert Comment

by:ikework
ID: 24401695
>> so, is there any problem with creating a line object directly from (100,100) to (100,200) in openGL ?

no, you can draw it directly like that
0
 
LVL 20

Expert Comment

by:ikework
ID: 24401722
its used to move complex objects like a car. if you want to move and rotate it in the *world*, you can use "translate" and "rotate", without recalculating the cars data (local-coordinates).
all you have to *recalculate* in order to move it, are the parameters for the "translate"-function, without changing the cars local-coordinates.
0
 
LVL 20

Expert Comment

by:ikework
ID: 24401729
btw. if you have open-gl specific questions, there is an opengl area here too:

http://www.experts-exchange.com/Programming/Game/Game_Graphics/OpenGL/
0
 
LVL 2

Author Comment

by:kouroshparsa
ID: 24404251
Thanks alot ikework.
0
 
LVL 20

Expert Comment

by:ikework
ID: 24405590
you're very welcome .. good luck, eh .. :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question