Forum: Poser - OFFICIAL


Subject: New Reality (lux render) Plugin over at Daz...time for Poser Plugin Update?

Ridley5 opened this issue on Jul 26, 2010 · 1724 posts


bagginsbill posted Tue, 10 August 2010 at 8:55 PM

I haven't yet come up with the rotation calculation - was just testing camera position and fov.

Here's what I used.

def ExportCamera(scene, file):<br></br>
        import math<br></br>
        cam =
scene.CurrentCamera()<br></br>
        p =
cam.WorldDisplacement()<br></br>
        print >> file,
'LookAt %s %s %s %s %s %s 0 1 0' % (p[0], p[1], p[2], p[0], p[1],
p[2]-1)<br></br>
        focal =
cam.Parameter("Focal").Value()<br></br>
        fov = 360 / math.pi *
math.atan(12.75 / focal)<br></br>
        print >> file,
'Camera "perspective" "float fov" [%s]' %
fov<br></br>

I'm not overly fond of the convoluted way that adp has set up the exporter, with a class that saves a bunch of parameters in the constructor, then uses them in another function. This seems so much simpler.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)