-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More examples #102
Comments
Object picking example is done in mosra/magnum-examples@f45a301. Not yet ported to ES3/WebGL, will do that later. |
Added a possible ray-tracing example using compute shaders to the list (http://blog.lwjgl.org/ray-tracing-with-opengl-compute-shaders-part-i/) |
Shadow mapping example added via mosra/magnum-examples#24. |
Personally, I'd like to see more 2D-focused examples, as many of the current examples are 3D-focused. Things like displaying a static 2D background, or using multiple images to create a single assembled sprite, would help me greatly for a project I'm working on. |
@williamjcm Added to the list, thank you! I might have some people contributing with new example code in the near future, so maybe someone will pick this up before I get to it. |
Extended the list with two easy example ideas -- floating point drift visualization and comparison of various interpolation methods. Ideally combining these with the new Animation framework. |
I would like to add something to the list (or extend "2D rendering" section): pong. There is a lot of advanced examples but I would like to see how to implement simple "game loop": load some textures (ball, paddle), handle input, calculate movement with frame time, draw everything on screen. |
@brempusz Added to the list, thanks! :) |
+1 to the 2D resources |
After some discussion in the gitter channel related to the TextExample in 2D and some of my own struggles with graphics concepts it would be helpful to have a largish example with a 3D scene inside of which there are 3D objects, bill-boarded objects and labels. These "figures" should all be projected into screen space using a single camera to demonstrate various common projections that are performed in applications to implement them. For starters, a simple 3D text example that could be expanded lives in my fork of this repo. Edit -- maybe going further, having multiple cameras and the ability to switch between them would similarly demonstrate the extensibility of the Magnum. |
An example showing using primitives and the SceneGraph, as mentioned in: mosra/magnum#102 Implements DrawableObject subclass of Drawable3D, demonstrates parenting objects to the scene and to other objects, and shows local object transformations and camera transformations using left and right click respectively
A running list of examples and various sources that could be fun to implement, fun to play with and attracting new users. Help welcome -- pick somethings that's not done yet, ask around and contribute. Ideal together with submitting a guest post about the example.
SokobanPush the Box from the old repoPorting cool things done with other libs
Mainly to show how the same thing can be done with less (or more?!) code, not with an intention to steal:
The text was updated successfully, but these errors were encountered: