Maxigo 1.09.6

Announcements, requests and support regarding the 3DS MAX exporter
Post Reply
15 posts • Page 1 of 1
User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Maxigo 1.09.6

Post by suvakas » Tue Apr 08, 2008 9:45 am

Hey,

Here it is, a long waited new version of Maxigo 8)
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

User avatar
OnoSendai
Developer
Posts: 6241
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Post by OnoSendai » Tue Apr 08, 2008 3:42 pm

Great, thanks Suvakas!

Sukrim
Posts: 66
Joined: Wed Jan 09, 2008 6:47 am

Post by Sukrim » Tue Apr 08, 2008 6:25 pm

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! :)

User avatar
filippo
Posts: 658
Joined: Sat Aug 05, 2006 8:46 pm
Location: italia(senigallia-an)
Contact:

Post by filippo » Tue Apr 08, 2008 7:41 pm

oooooooohhhhhhh wonderfull news!!!!!!!!!!!!!!!!!

filippo
2x Xeon quad core ghz 2.66(8 core)+4g ram+quadro fx
2 x Xeon Quad 5540 (16 core)+16GB ram+ Nvidia GTX 295 1800mb

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Tue Apr 08, 2008 7:44 pm

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.

User avatar
filippo
Posts: 658
Joined: Sat Aug 05, 2006 8:46 pm
Location: italia(senigallia-an)
Contact:

Post by filippo » Tue Apr 08, 2008 8:02 pm

I try now the new maxigo....compliments Suvakas!!!!!It's fantastic..and it0s work very well....
thanks
2x Xeon quad core ghz 2.66(8 core)+4g ram+quadro fx
2 x Xeon Quad 5540 (16 core)+16GB ram+ Nvidia GTX 295 1800mb

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Tue Apr 08, 2008 9:17 pm

Many many thnx suv!!!!
looks good and nice....lets render something now!! :)


thnx again for your great effort!
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Wed Apr 09, 2008 4:17 am

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. ;)
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

Sukrim
Posts: 66
Joined: Wed Jan 09, 2008 6:47 am

Post by Sukrim » Wed Apr 09, 2008 8:39 am

Damn, psexec is giving me a hard time... it just doesn't want to connect to my server... :evil:

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

Sukrim
Posts: 66
Joined: Wed Jan 09, 2008 6:47 am

Post by Sukrim » Wed Apr 09, 2008 10:17 pm

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 :shock:

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
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:

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.
And on the 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)
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!

sth
Posts: 57
Joined: Mon Mar 05, 2007 1:55 am

Post by sth » Thu Apr 10, 2008 4:13 am

I haven't been here for a while and what I see? Brand new Maxigo? :D
THX Suv a lot :wink:

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Thu Apr 10, 2008 10:38 am

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
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Thu Apr 10, 2008 8:08 pm

Hey afecelis,

Maybe you're using the wrong/too small global scale?

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Fri Apr 11, 2008 6:01 am

Thanks for replying Suvakas! :D

I'll check that option out. Man! there are so many new things and options in the exporter!

regards,

Alvaro
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Fri Apr 11, 2008 4:22 pm

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.
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

Post Reply
15 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 67 guests