?
Solved

openGL or active x for drawing 3d

Posted on 2009-05-09
12
Medium Priority
?
887 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 1200 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
Technology Partners: 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!

 
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

Independent Software Vendors: 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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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