Anaglyph Previewer

42 votes
Version: 
1.03.76
Date Updated: 
10/29/2010
Author Name: 
Martin Dufour


Additional Info: 

----------------------------------------------------------------------------------
1 : INFO
----------------------------------------------------------------------------------

SCRIPT NAME    : ANAGLYPH PREVIEWER
3D STUDIO MAX    : 2009/2010 32/64BIT
AUTHOR        : MARTIN DUFOUR
MAIL        : [email protected]
WEB        : HTTP://MARTROYX.890M.COM
RELEASE DATE    : AUGUST 07, 2009   

----------------------------------------------------------------------------------
2 : INSTALL
----------------------------------------------------------------------------------

Extract the content of this archive to your '3dsmax\Scripts' directory.

From inside 3dsmax, select Maxscript->Run Script, browse to your scripts
folder and select the .mcr file and hit ok.

to add a shortcut to your toolbar and/or menu, goto Customize->Customize user interface
and find the new category named "MarTroYx".Drag the script name to your toolbar and/or
menu definition.You can also drag the .mse file into your viewport to start the script.

NEWS -->You have to delete the old .ini file if you have an old version installed since
NEWS -->new settings has been added....(your3dsmaxfolder\\Scripts\\Anaglyph_Previewer.ini)

----------------------------------------------------------------------------------
3 : FAQ
----------------------------------------------------------------------------------

Q: Why's one of my viewport's flickering ?
A: In order to render the output image, the script has to take a screenshot of both
camera...the more depth you use, the more flickering you get!

Q: Why it is so slow ?
A: GDI+ & maxscript...but there's a couple of thing you can do to improve the framerate :

->use a smaller viewport.
->use an even smaller viewport.
->use a tiny viewport.   
->set the Compositing Quality to Highspeed.
->uncheck mouse update.
->uncheck Process output.
->uncheck safemode.
->uncheck Desaturate.

Q: Why does the script capture everything in front of the viewport ?
A: In order to keep a ability to use the others viewports and interact with the scene,
another capturing technique had to be used...so just make sure there nothing in the way
when you do a make preview.

Q: I don't like your camera, can I use mine ?
A: Yes of course ! Use the two button in the setup page to pick your camera...
expect strange thing to happen throught :-P

Q: Why the script didn't remember any settings ?
A: it remember it now :-)

Q: I want to use another viewport for rendering, Can I ?
A: No, capturing viewport is always index 1!

Q: Why there's so many mispelling ?
A: I'm a french guy, if you find any...let me know! (in a polite way of course!)

----------------------------------------------------------------------------------
4: KNOWs BUGS
----------------------------------------------------------------------------------

--you can't cancel once you pressed the make preview button...so be sure you really want a preview :-)
--some codec don't work, if that the case then chose another one.

----------------------------------------------------------------------------------
5: scripts fix\changes since 1.02.25
----------------------------------------------------------------------------------

1.02.31-->Added a .ini setting to controls the internal channel swap, as I was told, it was inverted.
1.02.31-->Added a check to prevent crash if another camera with custom attribute is present in the scene.
1.02.31-->Added try/catch for viewport index in case the user has extended tools in viewport.

1.02.35-->Corrected the z-order drawing when using channel swap ...everything should be fine by default now.
1.02.35-->Added ini settings for all the parameters.
1.02.35-->Removed the safe mode .(was not activated anyways)
1.02.35-->Removed R_mode inisetting & replaced with a combobox in the setup for more easy switching.
1.02.35-->Removed ini seting to enabled Pixelop, now enabled by dafault.
1.02.35-->lot of other little fix.

1.02.36-->Fixed a major bug,that I introduced with the makepreview.
1.02.36-->fixed another bug with the makepreview if the range was equal.
1.02.36-->two other minor bug fix.

1.02.37-->Changed the contrast/brightness/saturation spinner increment to 1 to allow much more granular controls.
1.02.37-->Added a reset button, to reset all spinner to their default value.
1.02.37-->Added a Fit 1:1 button to fit the rendering view to the viewport. Note that since the inteface has a minimum size it doesn't work well on smaller view!

1.02.38-->Fixed float value with framerate spinner.
1.02.62-->many improvement since 1.03.54 :-)

1.03.63-->fixed duplicate assembly.

1.03.63-->fixed the cancel makepreview.

1.03.63-->disabled the prev button while the user input codec settings.

1.03.63-->fixed the captured codec dialog on first frame.

1.03.63-->output now automatiquely adjust it's size to fit multiple of 4...( 1-3 pixel wide black line may appear to the right or bottom depending on the captured viewport size)

1.03.65-->script now remember allmost all the settings.

1.3.68-->fixed a bug while returning the from color dialog in auto mode.

1.3.68-->added additionnal check: if a scene is loaded with a valid camera,

the script will first try to select that camera before showing the warning dialog.

1.3.68-->added directory selection dialog for the output path.

1.3.68-->removed useless bmp property, since it caused a bug sometime...will add some label to show the viewport size later on :-) 

1.3.68-->added some maxlike spinner to control the numeric value ...not entirely finished, so it may introduce some bug (let me know:-)

1.3.68-->the script now save the contrast, brightness and saturation value.

1.3.69-->added back the old cam until I get the new one working... 

Version Requirement: 
2009
AttachmentSize
anaglyph_previewer_1_03_76.rar58.1 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
MarTroYx's picture

hum, unfortunately no, I'm

hum, unfortunately no, I'm using win32 bitblt, are u sure you switched off the style , use something like classic style or I don't really know what they call it in vista maybe even do a reboot may help !

3dhippie's picture

no, i'm using win Vista.

no, i'm using win Vista. Turning glass mode off didn't help. But i discovered that viewport.getviewportDib() doesn't work properly on my computer. gw.getviewportDib() however does. If that is part of your script it might be a clue.

MarTroYx's picture

Ho well, max won't start in

Ho well, max won't start in vm and I dont have any spare hd to boot from ...anyway I think the main problem is the skin that they put that prevent capture from working ...I remember that I read this somewhere but I don't remember if it got a solution ...maybe you could try shuting down glass style and see if it help !!!

MarTroYx's picture

I haven't got a chance to

I haven't got a chance to test under win7 I assume it win7?
anyway I'll do some test in vm later on ... have you tried in 32bit to see if it work ?

Martin

3dhippie's picture

nope I still don't get a

nope I still don't get a working preview. All i get is either a black or grey area. If i hover with my mouse over some object the tooltip with it's name appears and stays. Look here (http://img205.imageshack.us/img205/9361/previewer.jpg).
The upper right viewport does flicker, though.

Sorry for mistaking your feature for a bug :-D

MarTroYx's picture

I forget to tell that you

I forget to tell that you need to have a valid camera selected ...that maybe why your not getting any drawing ...and for the detaching menu, it not a bug it a feature :-)
you can double click to close it:-)

regard,
Martin

MarTroYx's picture

Hi 3dhippie, humm, that

Hi 3dhippie,

humm, that weird I use 2010 x64 too and it working fine!

fix custom rig is a function that fix custom stereo cam to work with the script.

I've got an update on the way for this one but it not entirely finished since I started working on another script... not every thing has been added back but should work I think....could you tell me if you get better result with this one instead ?

Martin

AttachmentSize
Anaglyph_Previewer_1_03_72_Beta.rar 58.51 KB
3dhippie's picture

just stumbled over this

just stumbled over this script. looks very promising. Unfortunately, I can't get it to work. The Preview window is grey at all times. I'm using 3dsmax 2010 64bit. The buttons behave a little weird as well (The create new camera button is a transparent floating thing, that will stay at it's screen position until i type something and press return).Also, what does fix cutom rig do? Looking forward to getting this script to work :-)

MarTroYx's picture

I recommend that you do not

I recommend that you do not use the camera from 1.03.62 it's for testing purpose only and it's still under dev, you can add your custom camera from the main menu ... I think it should work with pretty much any setup, let me know if it doesn't :-)

aaronbradbury's picture

This is extremely useful for

This is extremely useful for realtime stereoscopic feedback within 3ds max. Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.