Drawing to 3D render

Hi @briaian87b

Yes, see here

You would have to add this line at the beginning of the script:

loadPrcFileData("", "load-file-type p3assimp")

By default panda3d can only load .egg and .bam files (AFAIK). This snippet enables all formats supported by assimp.

Yes, as stated above you can export it to any format supported by assimp and load it on panda3d.

So, summing up all these you would have something like:

from direct.showbase.ShowBase import ShowBase
from panda3d.core import loadPrcFileData
loadPrcFileData("", "window-type offscreen" ) # Spawn an offscreen buffer
loadPrcFileData("", "audio-library-name null" ) # Prevent ALSA errors
loadPrcFileData("", "load-file-type p3assimp") # Load using assimp
base = ShowBase()
for file in folder:
    sample = loader.loadModel(file)
    sample.reparentTo(render)
    sample.set_pos(0, 50, 0)
    base.graphicsEngine.renderFrame()
    base.screenshot(namePrefix='screenshot', defaultFilename=1, source=None, imageComment="")
    sample.destroy()