Maxigo 1.09.6
Maxigo 1.09.6
Hey,
Here it is, a long waited new version of Maxigo
I finally got a bit of free time and made a decent pack, that I can release as a new version.
Some new features in there. Probably the most tricky thing I've ever written in maxscript is the new region tool. I wrote it from zero, cause I couldn't find a way how to draw the standard Max region from outside the build-in renderer dialog. It is not as good as the standard one, but I hope it does the job. Also I'm quite sure it has some nasty bugs flying around. So let me know, if it works or not.
Some other stuff is also updated/added to support the latest Indigo features.
The change log:
Changes in v.1.09.6:
====================
* added - Region rendering (Region rendering rollout)
* added - New material type - Oren Nayar
* added - specular_reflectivity_spectrum for the Phong material via Refl.color parameter
* added - igm exporting support for the Oren Nayar material
* added - igm exporting support for the Refl. color (specular_reflectivity_spectrum) parameter of the Phong material
* added - Wider F-Stop range (Camera Parameters rollout)
* added - Aperture shape (Camera Parameters rollout)
* added - Aperture diffraction (Camera Parameters rollout)
* added - Obstacle map (Camera Parameters rollout)
* added - Alpha mode (Export Scene rollout)
* added - Get scale from max checkbox (Export scene rollout)
* added - Option for exporting untonemapped EXR [Export scene rollout]
* added - Splat and Downsize image filters [Advanced setup rollout]
* fixed - Material export for renderable splines
* fixed - Material naming bug when using instances
* changed - <materialdata> tag to <scenedata> in exported material files
Have fun !
Suvakas
Here it is, a long waited new version of Maxigo
I finally got a bit of free time and made a decent pack, that I can release as a new version.
Some new features in there. Probably the most tricky thing I've ever written in maxscript is the new region tool. I wrote it from zero, cause I couldn't find a way how to draw the standard Max region from outside the build-in renderer dialog. It is not as good as the standard one, but I hope it does the job. Also I'm quite sure it has some nasty bugs flying around. So let me know, if it works or not.
Some other stuff is also updated/added to support the latest Indigo features.
The change log:
Changes in v.1.09.6:
====================
* added - Region rendering (Region rendering rollout)
* added - New material type - Oren Nayar
* added - specular_reflectivity_spectrum for the Phong material via Refl.color parameter
* added - igm exporting support for the Oren Nayar material
* added - igm exporting support for the Refl. color (specular_reflectivity_spectrum) parameter of the Phong material
* added - Wider F-Stop range (Camera Parameters rollout)
* added - Aperture shape (Camera Parameters rollout)
* added - Aperture diffraction (Camera Parameters rollout)
* added - Obstacle map (Camera Parameters rollout)
* added - Alpha mode (Export Scene rollout)
* added - Get scale from max checkbox (Export scene rollout)
* added - Option for exporting untonemapped EXR [Export scene rollout]
* added - Splat and Downsize image filters [Advanced setup rollout]
* fixed - Material export for renderable splines
* fixed - Material naming bug when using instances
* changed - <materialdata> tag to <scenedata> in exported material files
Have fun !
Suvakas
- Attachments
-
- Maxigo_1.09.6.zip
- Maxigo version 1.09.6 - April 2008
- (430.99 KiB) Downloaded 12895 times
Wheee, thanks!
I'll try to come up with a simple built-in solution for handling distributed rendering, but it looks like you need at last psexec or you have to manually start Indigo on the slave nodes...
Maybe it'll be something independent from maxigo if you don't want to include executables in your package... basically all I'll need would be the addition of "Call [whateveryoudefineinmaxigo]" in the autocreated batch file, everything else could be handled by my external batch file.
Nevertheless, I'll keep digging and thanks for your continued effort!
I'll try to come up with a simple built-in solution for handling distributed rendering, but it looks like you need at last psexec or you have to manually start Indigo on the slave nodes...
Maybe it'll be something independent from maxigo if you don't want to include executables in your package... basically all I'll need would be the addition of "Call [whateveryoudefineinmaxigo]" in the autocreated batch file, everything else could be handled by my external batch file.
Nevertheless, I'll keep digging and thanks for your continued effort!
Hey Sukrim,
A good network solution would be handy. I don't have anything against the *.exe's as long as there are no legal rights involved, that doesn't allow distribution or smth like that.
Currently I haven't been able to check out the network stuff, cause I don't have a network at home where I do my scripting.
A good network solution would be handy. I don't have anything against the *.exe's as long as there are no legal rights involved, that doesn't allow distribution or smth like that.
Currently I haven't been able to check out the network stuff, cause I don't have a network at home where I do my scripting.
- Kosmokrator
- Posts: 1141
- Joined: Sat Jul 29, 2006 11:52 am
- Location: Greece-Athens
- afecelis
- Posts: 749
- Joined: Tue Aug 01, 2006 4:14 am
- Location: Colombia
- 3D Software: Blender
- Contact:
Wow! Suvakas, thanks a lot! I hadn't checked your project in a long while (since I didn't have max installed) and it's now looking better than ever. And still works great with 3dsmax6!!!!
The ability to load/save presets is fantastic! It's a very professional exporter!!!
Congrats!
Thanks a bunch.
Regards,
Alvaro
ps. Since I lost the VTs in the previous fto I had, I might re-capture the basic Vt's I had created. I'll try to find some time for this.
The ability to load/save presets is fantastic! It's a very professional exporter!!!
Congrats!
Thanks a bunch.
Regards,
Alvaro
ps. Since I lost the VTs in the previous fto I had, I might re-capture the basic Vt's I had created. I'll try to find some time for this.
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d
Damn, psexec is giving me a hard time... it just doesn't want to connect to my server...
The remaining part of the batch file should be fine, consider it as an early alpha releas just so someone can take a look at the code and maybe point out something silly I've done...
Notes: Put this as "Netrender.bat" (name doesn't matter) together with psexec.exe (name does matter) and a textfile "Slavelist.txt" (every line = 1 IP or Computer name, filename does matter) in a folder in the main Indigo folder.
For example ...Program Files\Indigo_1.3.3.7\NetRendering\Netrender.bat
Known issues:
- You have to kill the network share manually, maybe I'll add a timer, but removing it dynamically would be nicer... suggestions are appreciated!
- Psexec just doesn't want to work... I tried with Username+Password and without - it just refuses to connenct to my other computers. There might also be issues with Network shares + Psexec afaik
- "Preview" and "Rendering" Batch files look rather different... this code is for rendering Batch Files only!
- As already mentioned in the comments - you have to set %SCENE% manually (in this example it looks in the folder "Untitled") but I hope to change this soon
- Resuming would be nice, maybe via parameter. Currently it's not there.
The remaining part of the batch file should be fine, consider it as an early alpha releas just so someone can take a look at the code and maybe point out something silly I've done...
Notes: Put this as "Netrender.bat" (name doesn't matter) together with psexec.exe (name does matter) and a textfile "Slavelist.txt" (every line = 1 IP or Computer name, filename does matter) in a folder in the main Indigo folder.
For example ...Program Files\Indigo_1.3.3.7\NetRendering\Netrender.bat
Known issues:
- You have to kill the network share manually, maybe I'll add a timer, but removing it dynamically would be nicer... suggestions are appreciated!
- Psexec just doesn't want to work... I tried with Username+Password and without - it just refuses to connenct to my other computers. There might also be issues with Network shares + Psexec afaik
- "Preview" and "Rendering" Batch files look rather different... this code is for rendering Batch Files only!
- As already mentioned in the comments - you have to set %SCENE% manually (in this example it looks in the folder "Untitled") but I hope to change this soon
- Resuming would be nice, maybe via parameter. Currently it's not there.
Code: Select all
@echo off & setlocal
rem General settings
set Scene=Untitled
set Master=%COMPUTERNAME%
rem NOTE: It might be nice to call this file with "Scenename" as parameter
rem Maybe I could find out which file is the current active by myself (Date created?)
rem Calling it as a parameter might have the advantage that you can render any scene via a simple command.
rem Modify initial batch file
pushd ..
for /F "delims= skip=1" %%a in (.\Exported_From_Max\%Scene%\%Scene%.bat) do call :Modify "%%a"
:Modify
echo cd ../../ >.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo %~1 -n wm>>.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo exit>>.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo cd../../ >.\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo %~1 -n s>>.\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo exit>>.\Exported_From_Max\%Scene%\%Scene%Slave.bat
rem Needed to get out of that FOR construction
goto :continue
:continue
rem Network stuff
Echo Setting up the network share...
net share IndigoShare$=%CD% /unlimited /remark:"Should only be active while rendering..." /cache:no
rem I'm comin' up...
echo Starting Network master...
rem call .\Exported_From_Max\%Scene%\%Scene%Master.bat
echo done
rem ... so you better get this party started!
echo Starting Network slaves...
popd
psexec @Slavelist.txt -w \\%Master%\IndigoShare$\Exported_From_Max\%Scene%\ -i -d \\%Master%\IndigoShare$\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo.
echo done - Happy Rendering!
Pause
exit
Next version, starting the (working) Master now works actually
New Setting: You have to set a drive letter that is free on all Slaves, since you cannot execute something from an UNC-Path
Haven't looked at the slave starting code yet, since I'm trying to get the batch file that starts the client in slavemode to work first.
Edit: It now kinda works, but it seems that nk-files stay locked for reading throughout the whole rendering process, so the slave can't start rendering and the server seems to always drop the connection... Maybe I'll really have to dupilcate the whole folder over the network... I wanted to prevent this, since I read that this should be possible in an older Thread.
This error spams the log on the Master side:
And on the slave:
But as I look at it now it might also be an issue since it looks at "D:\..." but there is no such folder on the Slave... it should look at "T:\..." in this example! *sigh*
Back to the drawing board...
Edit2:
IT WORKS! (well kinda...) Now I only have to convince the remote PC to execute my batch file et voilá...
Why do the pstools have so many restrictions... *sigh* any Script-Kiddy-Trojan could easily execute that damn batchfile remotely!
New Setting: You have to set a drive letter that is free on all Slaves, since you cannot execute something from an UNC-Path
Haven't looked at the slave starting code yet, since I'm trying to get the batch file that starts the client in slavemode to work first.
Code: Select all
@echo off & setlocal
rem General settings
set Scene=Untitled
set Master=%COMPUTERNAME%
rem Drive letter that is NOT in use on ANY slave
set Drive=T:
rem NOTE: It might be nice to call this file with "Scenename" as parameter
rem Maybe I could find out which file is the current active by myself (Date created?)
rem Calling it as a parameter might have the advantage that you can render any scene via a simple command.
rem Network stuff
Echo Setting up the network share...
pushd ..
net share IndigoShare=%CD% /unlimited /remark:"Should only be active while rendering..." /cache:no
rem Modify initial batch file
for /F "delims= skip=1" %%a in (.\Exported_From_Max\%Scene%\%Scene%.bat) do call :Modify "%%a"
:Modify
echo cd ../../ >.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo %~1 -n wm>>.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo exit>>.\Exported_From_Max\%Scene%\%Scene%Master.bat
echo net use %Drive% \\%Master%\IndigoShare /persistent:no >.\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo %Drive%>>.\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo %~1 -n s>>.\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo exit>>.\Exported_From_Max\%Scene%\%Scene%Slave.bat
rem Needed to get out of that FOR construction
goto :continue
:continue
rem I'm comin' up...
echo Starting Network master...
pushd .\Exported_From_Max\%Scene%\
Start /b /wait %Scene%Master.bat
popd
echo done
rem --------NOT WORKING FROM HERE ON--------
rem ... so you better get this party started!
echo Starting Network slaves...
popd
psexec \\SERVERNAME -i \\%Master%\IndigoShare\Exported_From_Max\%Scene%\%Scene%Slave.bat
echo.
echo done - Happy Rendering!
Pause
exit
This error spams the log on the Master side:
Code: Select all
Network slave connected from 192.168.178.10
ClientProxy: MySocketExcep: read failed, error: [unknown]
Dropping connection to slave.
Network slave connected from 192.168.178.10
ClientProxy: MySocketExcep: read failed, error: [unknown]
Dropping connection to slave.
Code: Select all
Processing included XML file 'Exported_From_Max\Untitled\Untitled-materials.igs...
Loading Complex IOR data from 'D:\Programme\indigo_v1.0.9_3\nkdata\Ag.nk'...
IndigoDriverExcep: SceneLoaderExcep: MaterialExcep: ComplexIORExcep: ComplexIORDataSetExcep: Failed to open file 'D:\Programme\indigo_v1.0.9_3\nkdata\Ag.nk' for reading. (In element 'phong', around line 99, column 13)
Back to the drawing board...
Edit2:
IT WORKS! (well kinda...) Now I only have to convince the remote PC to execute my batch file et voilá...
Why do the pstools have so many restrictions... *sigh* any Script-Kiddy-Trojan could easily execute that damn batchfile remotely!
- afecelis
- Posts: 749
- Joined: Tue Aug 01, 2006 4:14 am
- Location: Colombia
- 3D Software: Blender
- Contact:
The plugin is working great but I'm having problems setting up the camera properly, specially now with the new Indigo camera options. I'm geting blurry images all the time.
Anyone knows of a link to get started or a tutorial/howto?
regards,
Alvaro
Anyone knows of a link to get started or a tutorial/howto?
regards,
Alvaro
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d
- afecelis
- Posts: 749
- Joined: Tue Aug 01, 2006 4:14 am
- Location: Colombia
- 3D Software: Blender
- Contact:
Suvakas, how are you using global scale? From max's units? or is it a setting in your exporter?
Regards,
Alvaro
EDITED: Nevermind, I just saw the settings in the "Exporter Options"
thanks a lot! Testing out now.
Regards,
Alvaro
EDITED: Nevermind, I just saw the settings in the "Exporter Options"
thanks a lot! Testing out now.
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d
Who is online
Users browsing this forum: No registered users and 67 guests