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:
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.
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.
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.
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.
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.
The NeHe tutorials are a pretty good intro. They start here. Having Direct3D experience, you'll probably buzz through some of them pretty quickly.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With