I want to draw a circle using lwjgl (with OpenGL as underlying library) as a hello world program

...and the jvm just keep crashing

Fine.

Anything related to C++ is hard.

@skyblond do you have to calculate out a circle by hand? I havent used lwjgl

Follow

@freemo
Yeah, I have to manually calculate each point on the circle using a for loop.
I recently watch a youtube video about simulate the behaviour of ant colony. He used OpenGL with cpp and I want to implement my own version. But it seems like OpenGL and cpp things are far beyond my control XD

@skyblond opengl is totally doable, you will just be coding at the vector level, so rather tedious. Thats what you get with low-level really.

If you want something easy but powerful consider scene-graph type engines on top of opengl, they are way more intuitive.

@freemo
I'll have a try. I'm always being curious with new things and that's my first couple hours with computer graphics, and I'm excited about this new territory (while jvm still keep crashing XD

@skyblond Scene graphs are fun but they are more about manipulating the higher level objects. Obviously there are ways to draw circles too, but thats not really where the scenegraph aspect is helping you (though it is helpful about manipulating that circle in the scene, moving it and such).

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.