- Tue Dec 01, 2015 6:23 pm
#389568

I have put together a new PyMaxwell based python script called "Automagic VR" that simplifies the process of customizing the LatLong Stereo render settings in Maxwell Studio.
The script works with Maxwell Render 3.2 and takes a new .mxs scene file that has a camera with the LatLong Stereo lens activated.
When the "automagicLatLongStereo.py" script is run in PyMaxwell, the mxs scene file is opened up and the camera's target is used to set up the LatLong Stereo settings. The "Parallax Distance" is set to the target distance value, and an automatic formula is used to come up with a comfortable stereo camera "separation" setting.
Also a screen space "Separation Map" texture of your choice is applied to the LatLong Stereo lens shader.
Then the lens shader's camera view is adjusted so a set of center, left and right camera view based scene files are generated with the names <scene>_C.mxs, <scene>_L.mxs and <scene>.R.mxs. These new files are saved to the same folder as the original mxs scene file.
Then at the bottom of the script you have the option to automatically render either the center camera, or the left and right camera views in Maxwell Render. (This automatic rendering feature only works with Maxwell Render on Windows right now)
If you wanted to render the left and right views automatically you would set the code to:
http://www.andrewhazelden.com/projects/ ... studio.zip
Note: There is a new build of Maxwell Studio that I believe might come out either today, or in a day or two from now. The Automagic VR script is made to work with that build as the updated LatLong Stereo shader's "Parallax Distance" attribute operates using the cm unit scale vs the previous mm unit scale mode.
Regards,
Andrew Hazelden
Domemaster3D Co-Developer

I have put together a new PyMaxwell based python script called "Automagic VR" that simplifies the process of customizing the LatLong Stereo render settings in Maxwell Studio.
The script works with Maxwell Render 3.2 and takes a new .mxs scene file that has a camera with the LatLong Stereo lens activated.
When the "automagicLatLongStereo.py" script is run in PyMaxwell, the mxs scene file is opened up and the camera's target is used to set up the LatLong Stereo settings. The "Parallax Distance" is set to the target distance value, and an automatic formula is used to come up with a comfortable stereo camera "separation" setting.
Also a screen space "Separation Map" texture of your choice is applied to the LatLong Stereo lens shader.
Then the lens shader's camera view is adjusted so a set of center, left and right camera view based scene files are generated with the names <scene>_C.mxs, <scene>_L.mxs and <scene>.R.mxs. These new files are saved to the same folder as the original mxs scene file.
Then at the bottom of the script you have the option to automatically render either the center camera, or the left and right camera views in Maxwell Render. (This automatic rendering feature only works with Maxwell Render on Windows right now)
If you wanted to render the left and right views automatically you would set the code to:
Code: Select all
If you wanted to render just the center camera view automatically you would set the code to:
# Camera Views to Render
# ----------------------
# Set each of the views to 1 to render, and 0 to skip rendering
leftView = 1
rightView = 1
centerView = 0
Code: Select all
Automagic VR Download: # Camera Views to Render
# ----------------------
# Set each of the views to 1 to render, and 0 to skip rendering
leftView = 0
rightView = 0
centerView = 1
http://www.andrewhazelden.com/projects/ ... studio.zip
Note: There is a new build of Maxwell Studio that I believe might come out either today, or in a day or two from now. The Automagic VR script is made to work with that build as the updated LatLong Stereo shader's "Parallax Distance" attribute operates using the cm unit scale vs the previous mm unit scale mode.
Regards,
Andrew Hazelden
Domemaster3D Co-Developer
Last edited by Dover Studios on Tue Dec 01, 2015 7:14 pm, edited 1 time in total.


- By Andreas Hopf