Skip to content
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

Open
2 of 33 tasks
mosra opened this issue Jun 17, 2015 · 10 comments
Open
2 of 33 tasks

More examples #102

mosra opened this issue Jun 17, 2015 · 10 comments

Comments

@mosra
Copy link
Owner

mosra commented Jun 17, 2015

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.

Porting 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:

@mosra
Copy link
Owner Author

mosra commented Jun 23, 2015

Object picking example is done in mosra/magnum-examples@f45a301. Not yet ported to ES3/WebGL, will do that later.

@mosra
Copy link
Owner Author

mosra commented Sep 17, 2016

Added a possible ray-tracing example using compute shaders to the list (http://blog.lwjgl.org/ray-tracing-with-opengl-compute-shaders-part-i/)

@mosra
Copy link
Owner Author

mosra commented Nov 21, 2016

Shadow mapping example added via mosra/magnum-examples#24.

@williamjcm
Copy link
Contributor

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.

@mosra
Copy link
Owner Author

mosra commented Sep 26, 2018

@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.

@mosra mosra added this to TODO in Project management via automation Oct 15, 2018
@mosra
Copy link
Owner Author

mosra commented Oct 15, 2018

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.

@mosra mosra moved this from TODO to In progress in Project management Oct 15, 2018
@mosra mosra mentioned this issue Oct 15, 2018
56 tasks
@brempusz
Copy link

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.

@mosra
Copy link
Owner Author

mosra commented Jan 21, 2019

@brempusz Added to the list, thanks! :)

@mosra mosra pinned this issue Mar 8, 2019
@isc30
Copy link
Contributor

isc30 commented Jun 10, 2019

+1 to the 2D resources

@NSkelsey
Copy link
Contributor

NSkelsey commented Jun 11, 2019

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.

pomeroyb added a commit to pomeroyb/magnum-examples that referenced this issue May 4, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Project management
  
In progress
Development

No branches or pull requests

5 participants