lpub3d with povray not working


RE: lpub3d with povray not working
#4
(2016-10-21, 9:22)linghank Wrote: I cancel LGEO folder After that, it can work.now,i want to know how to make high quality instruction。The default settings render the picture quality is not good。
Thanks

I have found it difficult to generate good-looking instructions using POV-Ray as the default rendering engine--primarily because the default lighting yields unsatisfactory results.  My solution was to write a quick-and-dirty Python front-end to L3P that strips out the "-ld" (default lighting) option and adds a "-il" (insert lighting file) pointing to my own POV-Ray lighting definitions. You can then create the lighting definitions that best illuminate your model. There is probably no need to use area lights or radiosity for rendering instructions, unless you have a very powerful computer and lots of spare time.

Code:
import sys
from subprocess import call

args = sys.argv[:]
# print (args)

if '\\' in args[0]:
   args[0] = args[0][:args[0].rfind('\\')+1] + 'L3P.EXE'
elif '/' in args[0]:
   args[0] = args[0][:args[0].rfind('/')+1] + 'L3P.EXE'
else:
   args[0] = 'L3P.EXE'
   
if '-ld' in args:
   args.remove('-ld')

args.insert(1, '-ilC:\\LEGO_Stuff\\POVlights.pov')

# print (args)

call(args)

Kevin
Reply
« Next Oldest | Next Newest »



Messages In This Thread
lpub3d with povray not working - by linghank - 2016-10-19, 14:17
RE: lpub3d with povray not working - by Kevin - 2016-12-05, 3:06

Forum Jump:


Users browsing this thread: 1 Guest(s)