Jump to content
  • Advertisement
Sign in to follow this  
Maze Master

Lisp: draw a triangle in 3D

This topic is 2827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've got a simple prototype program in common lisp that generates meshes based on various input parameters. I'd like to interactively plot the mesh while I change the parameters with slider bars. However, my experience with lisp so far is pretty academic - I've never gotten graphical libraries to actually work in it.

What I need:
1) graphical slider bars that update values or call functions as they are dragged
2) ability to plot triangles in 3D
3) ability to control where the camera is located in space and what direction it's looking in

Constraints:
a) using SBCL Common Lisp
b) works with windows or linux (I don't have a mac)

Not important:
i) it doesn't have to be super fast

What are some good libraries for doing simple graphical stuff like this in lisp?

Thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
You should check cl-opengl repo here:

http://github.com/3b/cl-opengl

there are useful examples, and some tutorials here: http://3bb.cc/tutorials/cl-opengl/

With SBCL - if you stay away from threads (not yet production ready on Windows) if you want both Linux/Windows.

Also - for handling objects and input, both http://github.com/patzy/glop and http://github.com/sykopomp/until-it-dies are worth checking (at least for inspiration).
I have seen a until-it-dies 3d - with OpenGL backend on github somewhere, but couldn't find it now.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!