Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

From Direct3d to OpenGL

I currently rewrite an old Visual Basic application in java, a large part of the work involves replacing Direct3d with jogl.
Since I have no experience in dealing with Direct3d and only minimal experience using Opengl, I am stuck on finding appropriate replacements for the api calls.

Are there any good guides/tutorials or references?

Edit:
Additional information:

  • Direct3D version 8
like image 372
josefx Avatar asked Dec 22 '09 19:12

josefx


People also ask

Is OpenGL better than Direct3D?

OpenGL or DirectX: Ease of Use Some would argue that OpenGL is easier to work with than DirectX. Alongside hardware resources, OpenGL only handles graphics, making it simpler by nature. The fact that it works across more platforms also makes it easier to release games with this requirement.

Which graphic render is better OpenGL or DirectX?

OpenGL and DirectX have the same functions to perform. Some games work better with OpenGL while others perform smoother with DirectX, depending upon their specific graphics needs. Most games work without any issues with the default settings on BlueStacks and you won't have to change this setting in most cases.

Does DirectX use OpenGL?

DirectX is a layer to use the graphic card hardware functions. Since Windows Vista, the default OpenGL implementation (the one provided from Microsoft) uses DirectX, so OpenGL is really slow.

Is DirectX same as Direct3D?

Direct3D is a graphics application programming interface (API) for Microsoft Windows. Part of DirectX, Direct3D is used to render three-dimensional graphics in applications where performance is important, such as games.


3 Answers

I'd also recommend going through the OpenGL Red Book and investing some time in typing in some samples and playing with them. OpenGL Red Book deals with using GL in C, so I recommend you go through it in C or C++ before going to JOGL.

You don't have to play with everything, but making a few examples work in C++ would be great before you go on.

Otherwise, if you don't have the time or interest or will to study GL, just follow NeHe tutorials as mentioned in other answer, but take a peek every now and then into the Red Book for additional explanations.

like image 62
Ivan Vučica Avatar answered Oct 12 '22 00:10

Ivan Vučica


The NeHe tutorials are a pretty good intro. They start here. Having Direct3D experience, you'll probably buzz through some of them pretty quickly.

like image 36
MPG Avatar answered Oct 12 '22 01:10

MPG


I suppose you could try and browse through the code of this D3D -> OpenGL wrapper library: http://sourceforge.net/projects/dxglwrap (using it as a reference I mean)

You can browse through it here: http://dxglwrap.cvs.sourceforge.net/dxglwrap/

like image 30
Rehno Lindeque Avatar answered Oct 12 '22 01:10

Rehno Lindeque