sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Reply
 
Thread Tools
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
For blender 2.49
Doc pages:
http://jmsoler.free.fr/util/blenderf...povanim_en.htm


Povanim exports to all these renderers:

#Povray 3.5
#[size=6]Povray 3.6[/size]
#MegaPov 0.7 (with several post process options)
#Megapov 1.0
#Megapov 1.1-beta
#Mlpov 0.83 (very interesting for its "finish_map" not yet exported, maybe in a future version of the script)
#Unofficial Pov-Sub, povray patch with subsurfing option,[size=6] for blender 2.37 and older only [/size]
#PVM (network rendering) option too

This script exports the current file in the $CurrentFileDirectory+"/povanim"
directory .

Usage:
1/ copy the povanim241_06.pyc and the lanc_povanim241.py
files in the $blenderhome+'.blender/scripts directory'

2/ Under Windows, lanc_povanim241.py will find Povray alone
but under linux or mac, users have to edit the lanc_povanim241.py
to change the address of the 'renderer binary folder path'
(select the name 'renderer binary folder path' and do alt-f to
jump to the correct line).

3/ by default to take in account the improvement of a new script
version, povanim uses standard settings but you can
update all of them with the content of a profil file.
At the first launching of the script you have to save this
profil with the dedicated button . After that, exit
and modify the OVERLOADPROFIL and OLDPROFIL variables
(as for the binary path use the alt-f shortcut to jumpt to
the variable line).


241_5d: better area light support Rendered with Blender and areal lights


Rendered in povray with new export of blender's areal lights




241_05e, 26/05/2006
-to avoid error for missing image, i added an export of a "povanimdefaultimg.tga" to replace the not found uvmapped pictures

-List of lanc_povanim.py's windows was reordonned correctly .

-Pointer on vertices can be "indefined" . On linux, this returns a "nan" error that the Povanim script converted in a "<,,>,\n" line . This kind of declaration stops Povray and the user can try to remove the faulted vertex . But, it seems that this method is not clear enough so, now, it will return a normal and transparent "<-1.0,-1.0,-1.0>,\n" . This is limited to linux (and perhaps mac) under win32 systems the nan errors are translated in -1.0 .


241_06, 28/04/2006
- export of a << faked >> orthographic camera (not perfectly exact, off-set of only one pixel !! )

Blender Orthographic Camera


Povray



Comparison in GIMP using layers, black line shows the difference


- Correction of the bitperpixel in the lanc_povanim.py's menu for output file selection ( 5 was always returned ) .

- In the CVS version (will work with Blender 2.42 the function getWinRenderSize() was added in the APi the 2006/04/27, export of the winrendersize dimension 25,50,75 or 100 percents .

241_07, 20/05/2006

244_01, 09/07/2007

245_3, 30/09/2007

249_01.f, 19/08/2009
- mesh duplicopy export without material but uvmapping.

249_01.g, 20/08/2009
- mesh duplicopy export with material .

249_01.h, 21/08/2009
- mesh duplicopy export from same parent.

249_02, 23/08/2009
- lightgroup on mesh duplicopy ( * todo : animation )
- correct normal export.


249_02, 25/08/2009
mesh duplicopy animation



249_02b, 06/09/2009
update for linux users.

249_02c and d , 23/09/2009
modifs to export a correct ini file for povray 3.7.



249_02e :
try to correct launcher problems with v3.7 beta on a few win xp configs.

249_02f-p26 and 249_02f-p25 , 06/10/2009
- a lot of modif to control if filename is saved or not and to manage darwin use. It could works but under mac intel os, unix version of povray does not like the space character in a path so it can't find the povray.conf and the exported ini file.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.

Last edited by jms; 06-Oct-09 at 21:34. Reason: new version again
#1   Old 23-Jul-03, 09:16   
Reply With Quote


Union S8's Avatar
Union S8 Union S8 is offline
Member
 
Join Date: Apr 2002
Location: Prague
Posts: 399
You're mad!
Thanx again and again!
............................................
Or is it all just an illusion...
And I would say to you: \'Perhaps\'
#2   Old 25-Jul-03, 11:41   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by Union S8
You're mad!
Certainly ! I have zipped the 228_03 version in the 228_02
file this morning.

New feature (or return of a old one) :
we can chooze between the blender original image size
and the povanim image size.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#3   Old 25-Jul-03, 12:02   
Reply With Quote
OTO OTO is offline
Moderator
 
Join Date: Mar 2002
Posts: 4,084
Yeahhh, you're really a sick guy!!!

The materials interface is just ...great, and fantastically complete!!!!
Welll...the others too

Once again, thank you very much!!!

Povray was my first 3d love
Unfortunatelly i don't have the time to do some Pov renders to
show to the world, how you're script is amazing

Maybe some days later
Bye
António
#4   Old 25-Jul-03, 20:02   
Reply With Quote
DanielP DanielP is offline
Member
 
Join Date: Sep 2002
Location: Northern Germany
Posts: 259
Great work, as usual.
but:
When i hit the Env-button in Blender the script exits while exporting

Traceback (most recent call last):
File "lanc_povanim228_03.py", line 1124, in bevent1
File "lanc_povanim228_03.py", line 796, in BasdepageBevent
File "lanc_povanim228_03.py", line 619, in export_file
File "povanim228_03.py", line 8686, in Test_exportVers
File "povanim228_03.py", line 7988, in writemesh
NameError: global name 'mirCol' is not defined

Daniel

PS: First time that the render from Blender works for me, great.
#5   Old 26-Jul-03, 10:12   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by DanielP
Great work, as usual.
but:
When i hit the Env-button in Blender the script exits while exporting
File "povanim228_03.py", line 7988, in writemesh
NameError: global name 'mirCol' is not defined

Curious, this seems to work for me under win98.

however, now mirCol is replaced by the official getMirCol() function
and, by the way, I improved the camera object sizing (-1 was not really
understood in 228 version) :

http://jmsoler.free.fr/util/blenderf...anim228_06.zip
(105kos zipped)

Quote:
Daniel
PS: First time that the render from Blender works for me, great.
Yes, there is 2 new arrays of address/names (one for each system)
to locate correctely the binary files. If we do not forget to document
the launch file, the "render from" is possible.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#6   Old 26-Jul-03, 11:48   
Reply With Quote
DanielP DanielP is offline
Member
 
Join Date: Sep 2002
Location: Northern Germany
Posts: 259
Thanks!

But now something with the camera is wrong. It looks like a tracked-to camera isn't exported right.

And i get
TypeError: prf_save() takes exactly 95 arguments (96 given)
when i try to save a profile.

D.

PS: Forgot in my last post, i'm on Linux (SuSE 8.2) now.
#7   Old 26-Jul-03, 12:23   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by DanielP
Thanks!

But now something with the camera is wrong. It looks like a tracked-to camera isn't exported right.

And i get
TypeError: prf_save() takes exactly 95 arguments (96 given)
when i try to save a profile.

D.

PS: Forgot in my last post, i'm on Linux (SuSE 8.2) now.

I see!!!
Thank you for all these returns!!
In fact, jus one solution : export only matrix....
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#8   Old 26-Jul-03, 12:48   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
[quote="jms"]
In fact, jus one solution : export only matrix....[/quote

Il seems to be corrected, same name:
http://jmsoler.free.fr/util/blenderf...anim228_03.zip
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#9   Old 26-Jul-03, 14:44   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by jms
Quote:
Originally Posted by jms
In fact, jus one solution : export only matrix....
Il seems to be corrected, same name:
http://jmsoler.free.fr/util/blenderf...anim228_03.zip
Povanim for Blender 228, 2 bugs corrected :

--> 1 in a function which filters the parenting (getParent() function is mostly bugged, we can not really control if there is a parent cos if not blender crashes) of lamp

--> 1 in the animated camera coordinate export (have left just one line where the script try to get the matrix from data... )
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#10   Old 27-Jul-03, 17:34   
Reply With Quote
michel michel is offline
 
Join Date: Jan 2003
Posts: 58
Quote:
Originally Posted by jms
Povanim for Blender 228, 2 bugs corrected :

--> 1 in a function which filters the parenting (getParent() function is mostly bugged, we can not really control if there is a parent cos if not blender crashes) of lamp
Erm, if this is indeed a bug in the 2.28 api, I need to fix this. Will check that.

With regards,
Michel
#11   Old 27-Jul-03, 20:25   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by michel
Quote:
Originally Posted by jms
Povanim for Blender 228, 2 bugs corrected :

--> 1 in a function which filters the parenting (getParent() function is mostly bugged, we can not really control if there is a parent cos if not blender crashes) of lamp
Erm, if this is indeed a bug in the 2.28 api, I need to fix this. Will check that.

With regards,
Michel
A problem with getTracked() too...
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#12   Old 27-Jul-03, 20:49   
Reply With Quote
Bischofftep's Avatar
Bischofftep Bischofftep is offline
Member
 
Join Date: Jan 2003
Location: Providence Forge, VA (USA)
Posts: 307
Hey there!

It's great to see Michael and Jean-Michele (sorry if I mis-spelled!!) cooperating on this! Not only does this make blender's Python more robust, but having ever-tighter connections between Blender and POV-Ray is a VERY good thing IMO!

Thanks to you both,

-Bischofftep
#13   Old 28-Jul-03, 14:46   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
povranim228, anim test:
http://jmsoler.free.fr/video/mainalientestrad.AVI
Made with povray3.5,
550 frames exported,
130 objects,
Sharp radiosity (computed in less than 1 hour).
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#14   Old 29-Jul-03, 11:28   
Reply With Quote
tedi tedi is offline
Member
 
Join Date: Jul 2002
Posts: 1,558
this question is not quite in contex, but regarding povanim demo ...

q: how to modify these lines in order Blender could automatically read in ALL instances of Domino object in scene, without need to manually tell their number?

Code:
dominos=28 for o in range(dominos): O_='Domino.%03d'%(o+1) cont=5*(o+1) O=Blender.Object.Get(O_) C=Blender.Object.Get('Domino')
#15   Old 30-Jul-03, 09:35   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by jms
Sorry,
this is an horrible mistake !!!


Not the good sequence.

We can not export things like that with Blender 2.28
cause the python module IPO has no method to
evaluate a curve at the needed moment

I do not understand why this useful method was not
implemented. As I do not understand why there is no
variable to signal that vertex colours or "face" colours
are used in a mesh. Nobody seems to notice that
it is shorter to control only ONE variable
than try to control 60000 vertices (or face) colours
to know if the VertCol button is correctly set ...

THE good sequence:
http://jmsoler.free.fr/video/mainalidomseq038.AVI
All the lights was shut down to 0.3 of thier real value at the
middle.

http://jmsoler.free.fr/didacticiel/b..._motif_ipo.htm
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#16   Old 30-Jul-03, 10:33   
Reply With Quote
tedi tedi is offline
Member
 
Join Date: Jul 2002
Posts: 1,558
erm, even gurus make mistakes - to keep them in touch with their human nature

well, I wanted to ask whether it is possible to fix the nasty

Code:
dominos=41 # number of falling objects - 2
line with something that would read in the proper number of instances of an object with a specific name in scene - sorta Flash way

reason: to read in - say, all of instances of MeterBox.0xx objects in scene and do onFrameChanged manipulation on them.
I have done some experiments on smaller setups already, some things work and some don't...

well, this is a project-based necessity and I don't think it's of general public interest (may get someone real bored), can I drop you an email on subject later and maybe attach a .blend? (under 50~60k)
note: I used to link random to dynoise - if I'll go to render it elsewhere on a machine without python
#17   Old 30-Jul-03, 11:47   
Reply With Quote
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by tedi
...
well, this is a project-based necessity and I don't think it's of general public interest (may get someone real bored), can I drop you an email on subject later and maybe attach a .blend? (under 50~60k)...
Of course, you can.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#18   Old 30-Jul-03, 13:27   
Reply With Quote
tedi tedi is offline
Member
 
Join Date: Jul 2002
Posts: 1,558
thanx, I'll re-build a sample scene with simpler geometry during weekend and add comments and textual description.
#19   Old 30-Jul-03, 14:44   
Reply With Quote
michel michel is offline
 
Join Date: Jan 2003
Posts: 58
Quote:
Originally Posted by jms
Povanim for Blender 228, 2 bugs corrected :

--> 1 in a function which filters the parenting (getParent() function is mostly bugged, we can not really control if there is a parent cos if not blender crashes) of lamp

A problem with getTracked() too...
Hi,

I found and fixed the bug in getTracked. But the getParent() method is working without problems. I've checked the code, and I'm pretty confident I implemented all safe checking functions there. Could you please give me a little more information when it happens? Or send me a .blend file?

With regards,
Michel
#20   Old 30-Jul-03, 18:30   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:56.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists