It is currently 17 Aug 2017, 19:19

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 02 May 2014, 21:47 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
Some little small update:

https://dl.dropboxusercontent.com/u/11446262/MaSs%20plugin%200.1.5.zip

What's new:

1. There are no any additional module for Python needed. So, for install sufficiently to move files to \Application\Plugins folder in any workgroup, and it will work.

2. Add parameter "Default integrator" for exporter. This parameter set the integrator (rendering algorithm) to corresponding value. By default in Mitsuba this integrator is equal to Direct Illumination. So, for obtain reflections in the test renders we had change the algorithm every time. Now it not necessary.
Image

3. Add new property for every object. If "Is subdivide" is on, then before export object to ply format it will be subdivided to the specified level (of course with preserving UV maps). If "Is solid" is on, the object will be export with ignoring UV maps and information of smooth groups (in fact each normal of vertex will be the average of incident polygons). Resulting ply-file has smaller weight and load to render faster.
Image

The main subject - test of the exporter and render in real scene. So, I take some scene from Evermotion (Archinteriors vol. 24) and try render it in Mitsuba. The result:
Image

What I can note:

1. Of course, this is not VRay, Mental or Arnold. But it works and very stable. Export of all geometry spend nearly 3 hours. Total weight is 600 Mb. Scene loaded to render nearly 1-2 minutes. This is not convenient for test renders.

2. All scene lighted by one HDR-map. So, many small bright dots appear. Increasing samples count theoretical solve this problem, but in this case render time tends to infinity. More or less this problem was solved with the help of "Photon mapper" algorithm. But anyway, the render time of presented image is nearly 1-2 hours.

3. I used one of the main advantage (as I think) of Mitsuba - it is very easy to increase calculating power. I have another computer in network (i7 with 8 threads), and by specifying the network address of this computer in properties of render, my computer render the picture together with this second computer. So, the total number of threads is 16. This is very convenient.

Newcomer (<20 posts) alert: please use the URL tags - HB


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 03 May 2014, 00:22 
Offline
Moderator

Joined: 24 May 2012, 09:44
Posts: 2250
Yeah that image seems to miss some light.


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 10 May 2014, 12:30 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
Next small update.

https://dl.dropboxusercontent.com/u/11446262/MaSs%20plugin%200.2.zip

What's new:

1. Now it's possible to export not only ascii ply-format, but also binary ply-format and serialized mesh.

2. Hight field object

3. Irawan shader for cloth. There are no any generator of template files for this shader, but it is possible to use 6 example files.

4. Homogeneous shader. This allow to obtain more accurate sss effect and also translucent liquid.

Try to render some example:
Image

Newcomer (<20 posts) alert: please use the URL tags - HB


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 12 May 2014, 19:26 
Offline
User avatar

Joined: 09 Jun 2009, 14:49
Posts: 488
Location: London, UK
I got it to work after putting the path into regedit pointing to 2013 SP! etc. yay!

not sure how to connnect the shaders up properly yet am sure here is homogonous shader set to skin

Attachment:
render_xsi_mitsuba_test.jpg
render_xsi_mitsuba_test.jpg [ 37.68 KiB | Viewed 3395 times ]


by the way .PLY export set to binary is orders of magnitude quicker than sequential. many thanks for adding this!

_________________
Gossip is what no one claims to like, but everybody enjoys.


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 12 May 2014, 20:17 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
The shader setup is simple. Use mHomogeneous for presets or mHomogeneousSigmaAS or mHomogeneousSigmaTAlbedo for specifying parameters by hand. But this add only sss effect. For adding some specular add mDielectric shader (or mRoughDielectric) to bsdf port. You can also pass throw mBumpMap for adding bump effect. The phase node is not necessary (at default it has isotropic type).


Attachments:
ShaderSetup01.jpg
ShaderSetup01.jpg [ 135.29 KiB | Viewed 3391 times ]
Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 30 Sep 2014, 06:28 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
Ok, next version of the plugin is MaSs 0.5.0.

Download: https://dl.dropboxusercontent.com/u/11446262/MaSs%20plugin%200.5%20package.zip
Compatible version of Mitsuba: https://dl.dropboxusercontent.com/u/11446262/Mitsuba%200.5.0%20x64%20Win.zip

What improved: now the plugin not only generate xml-file, but render it in separate Qt-window. Initially I would like to do something like integrated render (like Arnold, for example), but it was harder than expected. So, some compromise is to use Mitsuba Python API. It allows to render pictures by using Python commands. As plugin used Qt interface, PyQtForSoftimage is needed. All necessary files are in archive.

Also I rewrite some functions for export geometry in C++. Now the export process is more faster.

Some videos (from the channel http://www.youtube.com/channel/UC9gBf1mPED7yIOemBp-XUlQ):

1. Example of animation, rendered with the help of the plugin:

phpBB [video]


2. Installation process:

phpBB [video]


3. Description of details of rendering process:

phpBB [video]


4. Properties of rendering window:

phpBB [video]


5. General workflow:

phpBB [video]


6. Mitsuba primitives:

phpBB [video]


7. Mitsuba lights:

phpBB [video]


8. Shaders setup:

phpBB [video]


9. Setup of the Irawan shader for fabric:

phpBB [video]


10. Rendering point clouds (but not volumetrics):

phpBB [video]


11. Workflow for rendering animation:

phpBB [video]


Known bugs:

1. The button "Stop" on rendering window should stop the render process. It happens, but then XSI is crushed. I don't know why.
2. If the scene contains strands (for hairs, for example) then render in window does not start, but all works correctly throw command line.

Also for render should be used the version of Mitsuba from the top of the post. The old official build have some differences in Python API.


Attachments:
post-14-14115832621_01.jpg
post-14-14115832621_01.jpg [ 204 KiB | Viewed 3232 times ]
post-14-14115832620.jpg
post-14-14115832620.jpg [ 118.85 KiB | Viewed 3232 times ]
Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 01 Mar 2015, 17:51 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
Next version MaSs 0.7

Download link: https://dl.dropboxusercontent.com/u/11446262/MaSs%20plugin%200.7.1%20package.zip
References for new ICE Nodes: https://dl.dropboxusercontent.com/u/11446262/MaSs%20ICE%20References.pdf

As in previous version of the plugin, PyQtForSoftimage is required. All necessary packages are in the archive. Process of the installation is the same. You should change the path to Mitsuba folder in the file MaSsPlugin.py.

Two videos:

1. Create point cloud and render it in Mitsuba

phpBB [video]


2. By using the plugin OpenVDB we load vdb-data and render it in Mitsuba. Link to this plugin: http://www.si-community.com/community/viewtopic.php?f=27&t=4707

phpBB [video]


One remark about generation of vol-files during the export. Bug of the render is that if it renders some vol-object, the file becomes locked, and we should close the host application (Softimage, for example) to unlock it. So we can not just rewrite it, we should generate new vol-file each time. And if point cloud contains a lot of points, then the file is large, and the size of the project folder can grow quickly. Therefore, after generating this file, and further customize the rendering, you should switch off the parameter "Should render volume" in the options. Then the render use the old vol-file.

Newcomer (<20 posts) alert: please use the URL tags - HB


Attachments:
ImportVDB.jpg
ImportVDB.jpg [ 122.4 KiB | Viewed 2794 times ]
SimplePC.jpg
SimplePC.jpg [ 129.95 KiB | Viewed 2794 times ]
Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 02 Mar 2015, 05:13 
Offline
User avatar

Joined: 11 Jan 2013, 11:48
Posts: 55
Is this compatible with SI2013? I get this errors:

Code:
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 2, in <module>
#     import sip
# ImportError: DLL load failed: The specified module could not be found.
#  - [line 2 in C:\Users\Saeed\Autodesk\Softimage_2013_SP1\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 1, in <module>
#     from PyQt4.QtCore import Qt
# ImportError: DLL load failed: The specified module could not be found.
#  - [line 1 in C:\Users\Saeed\Autodesk\Softimage_2013_SP1\Addons\PyQtForSoftimage\Application\Plugins\qtevents.py]


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 02 Mar 2015, 05:35 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
This is error of PyQtForSoftimage plugin. Check, is you install all necessary items. You should:

1. Copy PyQt folder to \python\Lib\site-packages folder of Softimage installed folder
2. Install PyQtForSoftimage as xsiaddon.

The complete guide about installation in the video in one of the previous post.


Top
 Profile  
 
 Post subject: Re: Another Softimage to Mitsuba exporter
PostPosted: 02 Mar 2015, 08:58 
Offline

Joined: 16 Jan 2011, 14:59
Posts: 30
Also, as written here: https://github.com/caron/PyQtForSoftimage Plugin PyQtForSoftimage works correctly with Python 2.7. Build-in version of Python on Softimage 2013 is 2.6.4. May be this is the reason of the error. But anyway, it is possible to use external Python distributive, but it needs additional tweaks for installation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group