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

3D Rendering #7

Open
psi29a opened this issue Jul 13, 2015 · 5 comments
Open

3D Rendering #7

psi29a opened this issue Jul 13, 2015 · 5 comments

Comments

@psi29a
Copy link
Member

psi29a commented Jul 13, 2015

I want this... take terrain data and render it in real time. This also includes track-ball movement.

I'm thinking we can embed a OSG (openscenegraph) viewer into a PyQt child window.
http://forum.openscenegraph.org/viewtopic.php?t=3491
http://wiki.qt.io/Using_3D_engines_with_Qt
http://forum.openscenegraph.org/viewtopic.php?t=1735

If that fails, there is this:
https://github.com/skylark13/osgboostpython

If that fails, there is always Glumpy which I have a working prototype for.

@ftomassetti
Copy link
Member

I think that 3D rendering would indeed help to understand the world we are generating and correct issues in the generator. That is why I wrote a small prototype of a 3D viewer (https://github.com/ftomassetti/worldengine-viewer).

It would be definitely good to have such thing available during the generation process.

@psi29a
Copy link
Member Author

psi29a commented Jul 14, 2015

Java! Blasphemer! :P

If we can, I'd like other people to do our dirty work. OSG for example already has a viewer executable that ships per default on all OSG installations that can read almost everything that libgdal supports. As a middle-step, we can use pylibgdal to export *.osg file (or ter) that can be read by the osgviewer and rendered in 3D for us.

The code is open-source and with python bindings, so we can hook into it via PyQt just as another window in the GUI. We can then shape it to our desires, adding textures, shading and etc.

@ftomassetti
Copy link
Member

I did not want suggest to use Java: I was doing just that prototype to understand better the worlds we generate and look into the Java bindings. Let's keep using Python for the GUI.

@psi29a
Copy link
Member Author

psi29a commented Jul 14, 2015

No worries, I know you have plans for Java. :)

@ftomassetti
Copy link
Member

Damn, my plan has been discovered :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants