6 ms·
It's relatively easy in Unity to get OpenGL going. For 3d Objects: 1. Create a mesh. There are a lot of tutorials/free asset store helper classes that can show
by animal531 9y ago
It's relatively easy in Unity to get OpenGL going.
For 3d Objects:
1. Create a mesh. There are a lot of tutorials/free asset store helper classes that can show you how to do this, alternatively just copy the mesh out of an instanced object
2. Assign a pre-made shader to it
3. Render it with OpenGL, e.g. GL.DrawMesh/Instanced
For general starter OpenGL you can just make calls using GL.Begin etc.
The nice thing about doing this is that things like lighting, shaders, OpenGL state switching/machine etc. are already taken care of for you (and those little things can take a long time to figure out if you're new).
- throwawaybbq1 9y agoThank you. The OpenGL calls you refer to .. is there a C# binding that is easy to setup with Unity? I tried OpenGL in a computer graphics undergrad course (sadly, one I dropped) and it was a crazy amount of C/C++ libraries and header files (along with esoteric things like GLUT, etc.). I didn't realize I could do OpenGL within a Unity/C# context.