3

Is there at least some way to get a picture of a .obj model without displaying the model ? I have a lot of .obj models and I need to convert them to .png images. I need only image without display anything

otopba
  • 214
  • 1
  • 6
  • 14
  • possible duplicate of [Loading an .obj with JOGL](http://stackoverflow.com/questions/775648/loading-an-obj-with-jogl) – Oesor Apr 06 '15 at 21:32

2 Answers2

3

You don't really need libgdx for obj rendering. This can be done by either opengl, or some custom render libs.

Consider using this library written in c++ for obj rendering. Here's its description in russian

Dmitrii Z.
  • 2,287
  • 3
  • 19
  • 29
0

Do you need to do this in libgdx? I think you can also call blender via command line, let it render the scene and output to an image. Make a short bash script to do this for all .obj files in your folder.

If you do need to use libgdx, I think a good approach is to render to a framebuffer, then write its contents to a file.

Jos van Egmond
  • 228
  • 1
  • 8