Menu

#5 Implement an exporter for .png files

open
nobody
None
5
2013-11-20
2013-11-19
Uwe Fechner
No

The "save" method should allow to export the opengl screen as .png file. This would make it much easier to create videos quickly.

Discussion

  • Matthias Baas

    Matthias Baas - 2013-11-19

    That would actually be out of scope of this plugin mechanism. Those plugins are supposed to be importers/exporters that read or write the geometry data that is contained in the scene. Creating an image falls more into the category of the viewer or render tools. From what I gathered, you are not using those but have your own application, right? In this case, you would have to add save functionality to your application (as mentioned on the discussion board).

     
  • Uwe Fechner

    Uwe Fechner - 2013-11-19

    Well, of course I am using the viewer. How else should I be able to view the scene?
    I am launching the viewer with the following script:

    !/bin/bash

    cd /home/$USER/00PythonSoftware/FreeKiteSim/3D_Viewer
    viewer.py -f 20 -N Softimage FreeKiteViewer.py

     
  • Matthias Baas

    Matthias Baas - 2013-11-20

    Nothing stops you from writing your own application that has an OpenGL display rendering the scene. Then you could use any gui toolkit you like (wxPython, PyQt, …). If you take a look at the viewer tool, you'll see that it's fairly small as the main drawing code is inside the cgkit package.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.