Thu, Nov 28, 8:43 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 27 5:12 pm)



Subject: Stereographic 3D images?


  • 1
  • 2
hairydalek ( ) posted Fri, 26 August 2011 at 11:43 AM

Quote - Hi Hairy

I'd swear that this is the third time I have posted this. I must be losing it!

I have a couple of questions about your Stereo Python Script.

I took me a while to get it to work, I found that after I use it I have to click the setup button and then the render button, before it will work again, don't know if this is normal or not but it works as long as I do it that way.

Not sure I follow here. You only need to click the Set Up button once. After than, you only need to click the Render button. Clicking Set Up again will probably force more than one convergence plane to be created, and that could confuse it.

 

Quote - My problem is that every time I use it and then go back to the Main screen, the Stereo Button has disappeared, and I have to set it up all over again. How do I get the button to become permanent?

I have no idea. To be honest, I’ve never done it that way. I’ve manually edited the .py file with button definitions in it. I see what you mean though - the buttons just reset.

Alternatively, you can put the Stereo Images folder in

Runtime/Python/poserScripts/

Do this before you start Poser up.

It will appear in the Scripts menu - you’ll get all the scripts in there, not just the ones that the buttons link to. I’ll have to clean up some of them so that you only get the scripts you need. Until then, the scripts you need are:

Set Up
Render
Render-Queue
reset

The rest can be safely ignored. 

Quote - Second by default it saves the images in Photoshop .psd format. Is there a way to have it save in .tiff or .jpg format that Stereo Picture Maker can read?  The way it is now I have to open them all in Photoshop and convert them.

You’ll need to edit the file called Render.py

1- Open it in a plain text editor - Notepad (Windows) or TextWrangler (on a Mac - I happen to use this app’s bigger brother BBEdit)

2 - Locate this line:

fileType="psd"

3 - Change it to

fileType="png"

And save.

Quote - Other then that it is working great. Here's a  test image I did with it.

Mike

Python Test

Great! Looks like you have the left/right images the wrong way round though! It works great if I swap my glasses over!

Hope this all helps you - as I said, I’m using Poser Pro 2010 on a Mac. I’ve no way of testing this on Windows, so I’m stabbing in the dark a bit here.


hairydalek ( ) posted Fri, 26 August 2011 at 12:15 PM

Hi - just uploaded a newer version of the scripts with the png file type put in. Just download, and replace the Stereo Images folder with the new one and restart Poser.

No need for you to edit anything!


MikeMoss ( ) posted Fri, 26 August 2011 at 1:23 PM

Hi Hairy

Thanks I'll do that, though I'm comfortable with editing the file. 

The red cyan doesn't look reversed to me, and I'm using my normal glasses.

Red on the Left Eye.

Ah: I get what you mean, you think the ball should be in the front.

Actually the ball wan't part of the image at all, I put it in, in Photoshop just as a test.

Interesting that when I reverse the glasses it comes to the front, it doesn't have a red cyan componet at all.

I guess everything else moved to the back!

I still need to figure out a way to make the Stereo button permenent.

It kind of misses the point of making it easy if I have to set it all up each time.

It seems like once it's created it should stay there.

Mike

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Fri, 26 August 2011 at 1:36 PM

You will need to edit the python file that makes the buttons to point to my buttons.py file if you want the Python Scripts button to stay permanent.


mrsparky ( ) posted Fri, 26 August 2011 at 3:10 PM

I’ve no way of testing this on Windows, so I’m stabbing in the dark a bit here.

Hope you can get it working on older versions, sadly no go on P6 PC, as I'd like to try using your excellent idea with a tri-layered prop I've made which fakes DOF.

Pinky - you left the lens cap of your mind on again.



MikeMoss ( ) posted Fri, 26 August 2011 at 3:45 PM

Hi Guys

I have everthing else working now.

I'll look into modifing the file tomorrow.

Here's a sample...

Mike

Lucy Test File

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Fri, 26 August 2011 at 3:52 PM

Quote - I’ve no way of testing this on Windows, so I’m stabbing in the dark a bit here.

Hope you can get it working on older versions, sadly no go on P6 PC, as I'd like to try using your excellent idea with a tri-layered prop I've made which fakes DOF.

The best I can do is provide an earlier prop which was part of my development cycle. It started in the version of Poser prior to Poser Pro 2010, so it may do the job. It gives you three cameras and the convergence prop. If this works, then you’ve atleast got a starting point to play with.

http://www.worldofpaul.com/anaglyph/olderversion.html

Download, put it in your Runtime/Library/Props folder. Hopefully this will work, but a lot of the Python magic won’t be there - you’ll need to copy camera settings manually. Sorry, but this is about as far as I can go for older versions. I’m running Mac OSX Lion now, and that’s a bit problematic for Poser pro 2010. I doubt it will run P6 as that will be PPC code, which Lion does  not support.


mrsparky ( ) posted Fri, 26 August 2011 at 5:38 PM

Thanks for that, downloaded and will have a play shortly.

Though a quick question. When you say lion can't run PPC code, is that like a Win 7 pc not being able to run XP stuff?

Pinky - you left the lens cap of your mind on again.



hairydalek ( ) posted Fri, 26 August 2011 at 6:00 PM

When Apple moved from PPC Chips (G3, G4, G5) to Intel, it meant that no code built for older Macs would run on the newer Intel architecture. Developers were encouraged to create what was called universal binaries - applications would contain code for both architectures. Apps that were PPC only would be run through a translation layer known as Rosetta - which converted PPC code to Intel code. Lion does not support Rosetta, so PPC only apps won't work. The expectation now is that there is either an Intel native code version of the software, or that it's been abandoned.


MikeMoss ( ) posted Fri, 26 August 2011 at 10:04 PM

Hi Hairy

Can you tell me which file I need to edit to make a permanant button for Stereo.

I have a lot of buttons, that I never have used, if I could substitute Stereo for one of those then I would be all set, I just need to know what points to it.

I tried putting the Stereo folder in a lot of locations, oddly while other folders in the same category show up in the Python palete the ones I place don't.

I thought that the whole idea of the Python thing was to be able to add you own scripts.

This is what my main Palette looks like right now, as you can see there is only one open space.

sss

I've never used any of these, I guess I never bothered to figure out what they do.

Mike

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Fri, 26 August 2011 at 11:30 PM

Hi Guys

I found this...

http://artzone.daz3d.com/wiki/doku.php/pub/tutorials/poser/poser-misc33

I spent several hours trying to get it to work, but no luck.

I have to say that this was written about an older version of Poser and the files are not in the locations that it states, but it seems like it should work.

But I always get an Error Message that says the line I inserted in the mainButton.py file is not correct.

poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)

I've had it for tonight, maybe I will see if this will work in Poser 6 tomorrow.

Mike

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Fri, 26 August 2011 at 11:54 PM · edited Fri, 26 August 2011 at 11:55 PM

Here is the message that I get...

D:Poser 8RuntimePythonPoserScriptsposerStartup.py:14: DeprecationWarning: Non-ASCII character 'x94' in file D:Poser

8RuntimePythonPoserScriptsmainButtons.py on line 11, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
poser.ExecFile(mainButtonsPath)

File "D:Poser 8RuntimePythonPoserScriptsmainButtons.py", line 11
poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)
^
SyntaxError: invalid syntax

 

Here is the complete mainButtons file...

 

import poser

poser.DefineScriptButton(1, ":Runtime:Python:poserScripts:PhilC:Wardrobe Wizard P8:Wardrobe Wizard Menu.py", "Wardrobe Wizard")
poser.DefineScriptButton(2, ":Runtime:Python:poserScripts:GeomMods:geomModButtons.py", "Geom Mods")
poser.DefineScriptButton(3, ":Runtime:Python:poserScripts:Utility:utilityButtons.py", "Utility Funcs")
poser.DefineScriptButton(4, ":Runtime:Python:poserScripts:SampleCallbacks:callbackButtons.py", "Sample Callbacks")
poser.DefineScriptButton(5, ":Runtime:Python:poserScripts:RenderControl:renderButtons.py", "Render / IO")
poser.DefineScriptButton(6, ":Runtime:Python:poserScripts:MaterialMods:materialModButtons.py", "Material Mods")
poser.DefineScriptButton(7, ":Runtime:Python:poserScripts:PrintInfo:printInfoButtons.py", "Print Info")
poser.DefineScriptButton(8, ":Runtime:Python:poserScripts:CreateProps:propButtons.py", "Prop Samples")
poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")

 

If this makes sense to you guys I'm open to suggestions.

Mike

 

 

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sat, 27 August 2011 at 12:08 AM

And lastly, here is my customButton.py file pointing to the Stereo script. 

 

import poser

 

poser.DefineScriptButton(1, ”:Runtime:Python:PoserScripts:StereoImages:Stereo.py”,

 

poser.DefineScriptButton(2, ””, ”…”)

 

poser.DefineScriptButton(3, ””, ”…”)

 

poser.DefineScriptButton(4, ””, ”…”)

 

poser.DefineScriptButton(5, ””, ”…”)

 

poser.DefineScriptButton(6, ””, ”…”)

 

poser.DefineScriptButton(7, ””, ”…”)

 

poser.DefineScriptButton(8, ””, ”…”)

 

poser.DefineScriptButton(9, ””, ”…”)

 

poser.DefineScriptButton(10, ”:Runtime:Python:PoserScripts:mainButtons.py”, “Main”)

 

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Sat, 27 August 2011 at 4:21 AM · edited Sat, 27 August 2011 at 4:26 AM

Quote - Here is the message that I get...

D:Poser 8RuntimePythonPoserScriptsposerStartup.py:14: DeprecationWarning: Non-ASCII character 'x94' in file D:Poser

8RuntimePythonPoserScriptsmainButtons.py on line 11, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
poser.ExecFile(mainButtonsPath)

File "D:Poser 8RuntimePythonPoserScriptsmainButtons.py", line 11
poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)
^
SyntaxError: invalid syntax

 

Here is the complete mainButtons file...

 

import poser

poser.DefineScriptButton(1, ":Runtime:Python:poserScripts:PhilC:Wardrobe Wizard P8:Wardrobe Wizard Menu.py", "Wardrobe Wizard")
poser.DefineScriptButton(2, ":Runtime:Python:poserScripts:GeomMods:geomModButtons.py", "Geom Mods")
poser.DefineScriptButton(3, ":Runtime:Python:poserScripts:Utility:utilityButtons.py", "Utility Funcs")
poser.DefineScriptButton(4, ":Runtime:Python:poserScripts:SampleCallbacks:callbackButtons.py", "Sample Callbacks")
poser.DefineScriptButton(5, ":Runtime:Python:poserScripts:RenderControl:renderButtons.py", "Render / IO")
poser.DefineScriptButton(6, ":Runtime:Python:poserScripts:MaterialMods:materialModButtons.py", "Material Mods")
poser.DefineScriptButton(7, ":Runtime:Python:poserScripts:PrintInfo:printInfoButtons.py", "Print Info")
poser.DefineScriptButton(8, ":Runtime:Python:poserScripts:CreateProps:propButtons.py", "Prop Samples")
poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")

 

If this makes sense to you guys I'm open to suggestions.

Mike

 

I’ve not seen these errors, and I’ll put my hands up and say that I’m not a Python expert - I’m usually ghrubbing around with JavaScript and the like. However, it looks like your quotation marks are wrong. Look at these two lines from your script:

Quote - poser.DefineScriptButton(9, ”:Runtime:Python:PoserScripts:CustomScripts:customButtons.py”, “Custom Scripts”)
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")

In your edited version for button 9, the quotes are curly - “” - often called typographer’s quotes. When writing code, you don’t use these. It’s likely that your editor put put these in automatically. You need to switch this feature off - something you’ll need to find out how to do for your self. It will probably be in preferences.

You need to be using what are known as sexless quotes - "" - so your line should look like this:

Quote - poser.DefineScriptButton(9, ":Runtime:Python:PoserScripts:CustomScripts:customButtons.py", "Custom Scripts")
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:clearButtons.py", "Clear Buttons")

Python is also sensitive to tabs and indentations - they have special meanings to the interpreter, so ensure that you don’t have any leading spaces or tabs in your buttons files.

Also pay attention to the software you are using for editing the Python scripts. Use a plain text editor - I think NotePad should do the job on Windows. Always save the file as a plain text file, not as Rich Text. Rich Text embeds layout and colour instructions in the file which may cause the Python interpreter to fall over too.

EDIT: Just tried your added line on a buttons file here, and I got the same error. Using sexless quotes fixed the problem.


MikeMoss ( ) posted Sat, 27 August 2011 at 11:51 AM

Hi

Thanks I'll try and figure out how to do that.

I'm using Wordpad and I'm copying the insert directly from the article.

I'll look into the sexless quotes thing.

Mike

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Sat, 27 August 2011 at 11:57 AM

Quote - Hi

Thanks I'll try and figure out how to do that.

I'm using Wordpad and I'm copying the insert directly from the article.

I'll look into the sexless quotes thing.

Mike

Wordpad will probably add in control characters (colour, font styles, etc) that may confuse the Python interpreter. If it can, tell it to save the file as plain text (not Rich Text). Or use NotePad.


MikeMoss ( ) posted Sat, 27 August 2011 at 12:26 PM · edited Sat, 27 August 2011 at 12:28 PM

Hi Hairy

That is the problem. I now have a Custom Scripts button on the Python palette.

I did that by typing in to the existing file without replacing the quotes.

So they didn't change it to the ones that Wordpad puts in.

Now I'm having the same problem with my customButtons file.

And I can't use the same solution because there isn't an original file to modify.

I see the error "Non Ascii Character in the error dialog.

I'll see if anyone on the Windows 7 Forum knows how to stop Wordpad from doing this.  And I'll try and find Notepad, I haven't seen that it ages.

But I'm one step closer.

Thanks for the help.

Mike

If you shoot a mime, do you need a silencer?


Adom ( ) posted Sat, 27 August 2011 at 12:56 PM

I haven't followed whole thread but I think it'd be easier to copy "stereo images" folder into python script menu folder (that's from my computer: c:Program Files (x86)Smith MicroPoser 8RuntimePythonposerScriptsScriptsMenu) - now you can easily access every script by pressing ALT S (top bar python script menu) or even assign some keyboard shortcuts to them.


MikeMoss ( ) posted Sat, 27 August 2011 at 12:59 PM · edited Sat, 27 August 2011 at 1:06 PM

Hi Again

Ok the Custom Scripts button is there.

I'm now using Notepad! I think that solved the problem with the quotes but I'm not sure, I'm still getting the same kind of error message.

When I click it I get this message...

sys:1: DeprecationWarning: Non-ASCII character 'x94' in file D:Poser 8RuntimePythonPoserScriptsCustomScriptscustomButtons.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

File "D:Poser 8RuntimePythonPoserScriptsCustomScriptscustomButtons.py", line 3
poser.DefineScriptButton(1,:Runtime:Python:PoserScripts:StereoImages:Stereo.py”, ”StereoImage”)
^
SyntaxError: invalid syntax

Here is my file customButtons.py file...

import poser

poser.DefineScriptButton(1, ”:Runtime:Python:PoserScripts:StereoImages:Stereo.py”, ”StereoImage”)

poser.DefineScriptButton(2, ””, ”…”)

poser.DefineScriptButton(3, ””, ”…”)

poser.DefineScriptButton(4, ””, ”…”)

poser.DefineScriptButton(5, ””, ”…”)

poser.DefineScriptButton(6, ””, ”…”)

poser.DefineScriptButton(7, ””, ”…”)

poser.DefineScriptButton(8, ””, ”…”)

poser.DefineScriptButton(9, ””, ”…”)

poser.DefineScriptButton(10, ”:Runtime:Python:PoserScripts:mainButtons.py”, “Main”)

Here is my directory structure...

Directory Structure

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sat, 27 August 2011 at 1:18 PM

PS.

I get the same error message if I remove my command from the file.

sys:1: DeprecationWarning: Non-ASCII character 'x94' in file D:Poser 8RuntimePythonPoserScriptsCustomScriptscustomButtons.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

File "D:Poser 8RuntimePythonPoserScriptsCustomScriptscustomButtons.py", line 3
poser.DefineScriptButton(1, ””, ”…”)
^
SyntaxError: invalid syntax

Here is the file with the command removed...

import poser

poser.DefineScriptButton(1, ””, ”…”)

poser.DefineScriptButton(2, ””, ”…”)

poser.DefineScriptButton(3, ””, ”…”)

poser.DefineScriptButton(4, ””, ”…”)

poser.DefineScriptButton(5, ””, ”…”)

poser.DefineScriptButton(6, ””, ”…”)

poser.DefineScriptButton(7, ””, ”…”)

poser.DefineScriptButton(8, ””, ”…”)

poser.DefineScriptButton(9, ””, ”…”)

poser.DefineScriptButton(10, ”:Runtime:Python:PoserScripts:mainButtons.py”, “Main”)

I expected it to open the palette with all of the buttons blank?

Thanks again for the help.

Mike

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sat, 27 August 2011 at 1:20 PM

Hi Adom

I'll give that a try too!

Mike

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sat, 27 August 2011 at 2:05 PM

Doing easy things the hard way!!!

I did what Adom suggested and it was even simpler then he said.

I removed all my other files, copied the StereoImages folder, that I had the script buttons in, to the Scriptsmenu folder and what do you know! 

An easy way to access Hairy's script!

I don't have a button on the Palette, but all I have to do it click on scripts at the top of the screen and the Stereo Images folder is right there.

When I click on it all or the options are available, Setup, Render, Reset, etc.

I've tried it several time and it works fine, I don't even have to hit Alt S or whatever.

Thanks to everyone for all the help!!!

Two weeks ago I asked if it was possible to create stereo images in Poser and now I'm doing it. Sounds like a TV commercial!

I now have 7 pairs of Anaglyph Glasses, and am driving everyone crazy saying "Hey, you gotta come and look at this". LOL

Now I'll get on with perfecting my still image technique, and then it's on to my real goal, creating a 3D Lucy movie.  I only started doing the video thing less then a year ago, and now I'm going to do it in 3D!

I'll have to send 3D glasses to all of the friends on my Lucy email list so they can watch it.  But the glasses are really cheap, I just bought 5 pairs for $10 shipping included, I have 4 different kinds, I'm going to decide which I like best.

Thanks again for the help.

Mike

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Sun, 28 August 2011 at 3:18 PM

Quote - Doing easy things the hard way!!!

I did what Adom suggested and it was even simpler then he said.

I removed all my other files, copied the StereoImages folder, that I had the script buttons in, to the Scriptsmenu folder and what do you know! 

An easy way to access Hairy's script!

I don't have a button on the Palette, but all I have to do it click on scripts at the top of the screen and the Stereo Images folder is right there.

When I click on it all or the options are available, Setup, Render, Reset, etc.

I've tried it several time and it works fine, I don't even have to hit Alt S or whatever.

Thanks to everyone for all the help!!!

Two weeks ago I asked if it was possible to create stereo images in Poser and now I'm doing it. Sounds like a TV commercial!

I now have 7 pairs of Anaglyph Glasses, and am driving everyone crazy saying "Hey, you gotta come and look at this". LOL

Now I'll get on with perfecting my still image technique, and then it's on to my real goal, creating a 3D Lucy movie.  I only started doing the video thing less then a year ago, and now I'm going to do it in 3D!

I'll have to send 3D glasses to all of the friends on my Lucy email list so they can watch it.  But the glasses are really cheap, I just bought 5 pairs for $10 shipping included, I have 4 different kinds, I'm going to decide which I like best.

Thanks again for the help.

Mike

 

Glad you got it working. Have fun and post your results!


hairydalek ( ) posted Sun, 28 August 2011 at 7:34 PM

Oh, added the Script Menu option to my website. Next thing to think about is movies. I am not sure that I can auto render movies in the same way that I can do single frames using Python. What I think I can do is copy keyframe settings (focus depth, etc) from the Dolly camera to the left/right cameras. That will at least make it easy to render a left and right movie. Question - what do you use to make anaglyph movies once you do have the left & right movies?


MikeMoss ( ) posted Sun, 28 August 2011 at 10:12 PM · edited Sun, 28 August 2011 at 10:13 PM

Hi Hairy

If you decided to make a script for movies please make it an option to render them in preview mode.

I never render my movies in Firefly it just takes too long.

It's much faster to render them a little larger then you are going to use them and then when they are reduced they look pretty good.

Sometimes I do 3 or 4 thousand frames in one clip, it I rendered them even at a low level of Firefly render they take forever.

I did a simple test, the basic robot figure rotating 1 revolution in 60 seconds.

In preview mode it took 20 seconds to make an .AVI.

In low level Firefly it took 2 minutes and 10 seconds.

And then you have to do it twice, imagine doing even 600 frames with several things to render in it.

I'm guessing that you could perhaps do two versions and simply change the line that specifies how it's rendered. But I don't know anything about how the scripting works.

Thanks again for the help, your script works great I'm going to seriously start making tests now and figure out just how I do this before I start doing movies.

I have a lot of thing I want to try out.

Mike

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sun, 28 August 2011 at 10:41 PM

PS.

I wonder if you could write a script that simply placed the cameras.

When activate it would Asked Left or Right Camera, and then proceded to do the rest of it normally it would be a big help.

I.e I set up my scene, I hit Stereo Movie.

I select Setup, and then Render just as I do with a still frame.

Then a dialog comes up and asks me, Left or Right Camera.  

I select Left Camera, and it goes to the normal poser "Make Movie dialog, lets me make my selections, and continue from there normally that would be great help.

When I hit "Make Movie it does it only for the Left Camera, then when I repeat the process and select Right Camera my setting will already be there, and do it again.

This would let the user make all the choices about how to render the image, check the first animation video before going on with the second one.

But it would automate setting up the cameras, so the two images would work together corectly.

Just an idea, like I said I have no idea how this works or if this is a practical idea.

Mike

 

If you shoot a mime, do you need a silencer?


MikeMoss ( ) posted Sun, 28 August 2011 at 10:49 PM

Hi again.

I just saw your question at the bottom or your post.

I use Stereo Movie Maker, it's from the same folks that make Stereo Picture Maker and works the same way, it just asks for the file for the left eye and then the one for the right eye then puts them together doing all the Anaglyph stuff automatically.

I'll do a short animation and post it tomorrow, so you can see how it works.

I've only tried it a couple of times but it seems to work fine.

Mike

If you shoot a mime, do you need a silencer?


hairydalek ( ) posted Mon, 29 August 2011 at 12:06 AM

Quote - PS.

I wonder if you could write a script that simply placed the cameras.

When activate it would Asked Left or Right Camera, and then proceded to do the rest of it normally it would be a big help.

I.e I set up my scene, I hit Stereo Movie.

I select Setup, and then Render just as I do with a still frame.

Then a dialog comes up and asks me, Left or Right Camera.  

I select Left Camera, and it goes to the normal poser "Make Movie dialog, lets me make my selections, and continue from there normally that would be great help.

When I hit "Make Movie it does it only for the Left Camera, then when I repeat the process and select Right Camera my setting will already be there, and do it again.

This would let the user make all the choices about how to render the image, check the first animation video before going on with the second one.

But it would automate setting up the cameras, so the two images would work together corectly.

Just an idea, like I said I have no idea how this works or if this is a practical idea.

Mike

 

Hi, I don't know how or if Python offers that level of control for rendering movies in Poser. I suspect that it may not do that. I have not seen a script that tajes options from you and then passes them back into the app's regular interface in the way you describe. It may be that all I can do is rig up the key frames and let you do the left/right rendering manually. I'll have to do some research on this subject. Thanks for the info on the software.


Allstereo ( ) posted Mon, 29 August 2011 at 6:52 AM

Hello Mike and Hairy,

   Just to remember you that I wrote Python scripts to make stereoscopic images and movies. See the links in one of my previous messages.

   The script for image generation creates left and right images for parallel cameras. Compare to Hairy python script, this script offers a choice of the stereo base (distance between cameras) but the setting of the stereo window should be done in Stereo Photo Maker. In Hairy script, the stereo window is set by the convergence of cameras (not a bad approach).

   The script for movie generation creates left and right movies from parallel cameras. However, you have to set the auxilary camera before the animation. See the instructions in the ReadMe file.

   Mike, if you want to try my movie script, just be familiar with the script that generates images.  Then process with the script that generates movies.

   The movie script is not always working perfectly. So, the movie can be done manually by following process.

  1. First, copy all the parameters of the main camera to the auxillary camera (focal length, x, y and z dolly, etc). You can do that by copy-paste mode or manually for each parameters.

  2. Move the auxillary camera to the right (Dolly X) by the stereobase of your choice (See the read me file for image generator for suggestions). Be careful not to change any other parameters).

  3. Parented the auxilary camera to the main camera. Now, be careful, you have to work only with the main camera until you render the animation. So close everything related to auxillary camera (Parameter palette and viewing window if you have select the auxillary camera as the working camera).

  4. Create your animation using the main camera (Never change things to the auxillary camera)

  5. Render your movie for the main camera (left movie) and then for the auxillary camera (right movie). Save it with different name

  6. Now, you have the left and right movies. You can process them with Stereo Movie Maker

I have to leave for one week, so I will not be able to respond to your maild until that. Will do after if you need advice.

  Good luck

 

   


hairydalek ( ) posted Tue, 30 August 2011 at 4:44 AM

Quote - The script for image generation creates left and right images for parallel cameras. Compare to Hairy python script, this script offers a choice of the stereo base (distance between cameras) but the setting of the stereo window should be done in Stereo Photo Maker. In Hairy script, the stereo window is set by the convergence of cameras (not a bad approach).

The convergence issue has been something I’ve found out about from using my stereoscopic camera. On that (it’s a Fuji) you can adjust what it refers to as “parallax” - or stereo base. The problme with doing this post phot taking is that the image starts to be cropped width-wise as image data that won’t be included in the 3D image gets lost. I find this if I import my MPOs into conversion software and make the same adjustments there.

I have seen a lot of images out there which are very hard to look at - you really have to force your eyes to “see” the 3D, and most of the time it appears that this has happened because the stereo base has been adjusted so much that it starts to be meaningless to your biology (ie the distance between your eyes). I am a firm believer that there should be no eye strain at all, and that when you drop the red/blue filters over your eyes, the scene should “pop” without any extra work needed.

This has been my approach - keep the left/right cameras within a comfortable distance for the viewer (and for this, I mean the distance should be fairly close to the physical distance between your eyes), and let them do what your eyes do naturally to generate a 3D image in your brain - that is to swivel inwards to a point (usually the point of focus). Your brain then gets the two pictures and snaps it into some kind of sense.

That’s the methodology behind my scripts - trying to keep it as comfortable as possible for the viewer.


Allstereo ( ) posted Tue, 30 August 2011 at 6:13 AM

Hello Hairy,

    Good points. When I wrote the script, I did some research on the net to find the difference between the parallel and convergent settings. Apparently, the parallel adjustment is better because convergence can generate Keystone effect. However, my tests in Poser didn't reveal big difference. Moreover, I read that keystone can be corrected by modern software. So, practically, the two approaches are acceptable. Personnaly, I prefer to have a choice of the stereobase (see below my point of view on that)

  About the stereobase adjustment. First, parallax and stereo base are not the same thing. They are related by the fact that parallax increases when stereobase increases for the same scene setting (Bercovitz formula). You can have the same parallax for different stereobase by working also with the distance between camera and objects in the scene (distance as such or focal length).

   A large stereobase didn't imply bad viewing. For example, at IMAX or on some still photos, you have probably seen landscape (Example: the Grand Canyon) with depth details that human eye cannot perceive. They are confortable and interesting to see. In the case of Poser, increasing the stereobase can be useful if you want to reveal depth of various body parts relative to each other. For example, if you look at my figures in this thread, the stereobase was 20 cm. For me, these anaglyphs are quite confortable to see.  One basic rule in stereography is to select a stereobase equal to 1/30 of the nearest object in the scene. Obviously, the stereobase cannot be changed for a physical camera (Fudji), but in Poser no problem at all. 


hairydalek ( ) posted Tue, 30 August 2011 at 7:25 AM

Hi, all!

I’ve uploaded a newer version of the scripts. The folder you download replaces the folder you downloaded before. This version allows you to control the distance bertween cameras. There is a control on the Convergence Plane for this. Set this to the desired number and render.

Note that if you set the number too big, the scene may not work properly. It’s up to you to decide the best settings.

If you set the value and want to see the views from the left/right cameras, click on the Set Cameras button in the Python Scripts Window (or the Scripts Menu) first.


MikeMoss ( ) posted Tue, 30 August 2011 at 8:14 AM

Hi Guys

I've been playing around with Allstereo's movie script.

I'm going to do more today, I have has some weird things happen, i.e. when I move the character away from or toward the camera the images don't converge or separate.

I think I'm doing something wrong somewhere.

In one test the stereo effect disappeared for the second half of a 120 frame video.

I'll come back with some samples when I have more info.

Allstereo's script seems to work well; I just have to get aquainted with how to use it.

Hairy, I'll download your new scripts and paste them in!

Mike

 

If you shoot a mime, do you need a silencer?


Allstereo ( ) posted Tue, 30 August 2011 at 9:04 AM

Hello Mike,

    Yes, I know the script is not working well everytime.  The complexity of the script is related to the displacement of the camera during the animation. If your animation don't involve camera displacement, it is easy to generate the left and right movie clips. First, set Poser so that the cameras are not part of the movie (The Key Icon for the camera choice setting should be red). Take the main camera and generate one movie (say the left). Move the main camera to the right (Dolly X) by an appropriate amount, this is your stereobase and generate the right movie clip. Now you can process is Stereo Movie Maker.

    As soon as possible, I will work again with my script in order to help you.

   


hairydalek ( ) posted Tue, 30 August 2011 at 2:07 PM

I tried this with my system. It’s not great, and I think that the camera is moving too quickly and sweeping too much which kind of kills the 3D for me.

http://www.youtube.com/watch?v=Nxc5ahkdj_U

I don’t have Windows running on the machine I’m using right now, so I faffed around in Final Cut Express and did some channel mixing. This is also a preview quality render. I may try it using ray tracing. That’s for another day.


hairydalek ( ) posted Mon, 05 September 2011 at 9:35 AM

In theory (note the word “theory”), it should be possible to make a rig in Poser that creates the anaglyph optically at the time of rendering. You’d need some very specific objects - effectively an anaglyph converted fro the camera you were using. You’d need to create a beamsplitter (which is a half-silvered glass mirror) to allow only 50% of the light through one side and combine it in such a way that the camerra sees the ready-made anaglyph.

Position this to the donny camera and parent it properly, and you’ll have a rig that can be moved, animated etc. without any need for Python intervention. It would only need one render cycle, and no need for specific software to combine the two images in post.

That’s the theory.


  • 1
  • 2

Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.