Mitsuba Exporter

Discussions concerning plugins for SOFTIMAGE©
User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 03 Apr 2013, 15:59

I'm still pluggin away at it. I had no idea ICE RenderTree attributes would be this tough to incorporate into the code base. They have been a pain. Basically, everything can have an ICE tree!

I've got some code working that detects an ICE Attribute and validates that it has ICE data (attribute not set to "Use Default Value"), so I'm pretty close.

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: Mitsuba Exporter

Post by Tekano » 03 Apr 2013, 16:33

if you are having problems implementing ICE attributes in your code you should definately post questions, maybe someone has been there before and can help you!
Gossip is what no one claims to like, but everybody enjoys.

User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia
Contact:

Re: Mitsuba Exporter

Post by Mathaeus » 03 Apr 2013, 16:59

...or you can look at this from another side. At least from what I heard, this issue seems to appear again in SI 2013, global score of working-not working seems to be fifty-fifty, for out of the box renderer. So, few attributes more or less, who cares :)

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 03 Apr 2013, 19:16

Mathaeus wrote:...or you can look at this from another side. At least from what I heard, this issue seems to appear again in SI 2013, global score of working-not working seems to be fifty-fifty, for out of the box renderer. So, few attributes more or less, who cares :)
I'm not sure I understand what the bug is? Is it that the reading of ICE attributes is not consistent?

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: Mitsuba Exporter

Post by Tekano » 03 Apr 2013, 20:00

ha well in Matheus's case the bug (between scanline and rasterizer not having same values for attributes) is mute... because we will be rendering attributes with Mitsuba! :-bd
Gossip is what no one claims to like, but everybody enjoys.

User avatar
Mathaeus
Posts: 1778
Joined: 08 Jun 2009, 21:11
Location: Zagreb, Croatia
Contact:

Re: Mitsuba Exporter

Post by Mathaeus » 03 Apr 2013, 21:07

TwinSnakes007 wrote:
I'm not sure I understand what the bug is? Is it that the reading of ICE attributes is not consistent?
Yeah, sometimes happens, that renderer reads ICE tree 'partially' - what you see in viewport, doesn't appear into renderer. It could be worse than just wrong reading of color attribute. Sometimes, reason is NaN in ICE (still solved by ICE, don't know how). sometimes, it's not. Form my knowledge, it's not only with Mental Ray, but integration with MR seems to be champion in errors.

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 03 Apr 2013, 21:32

Mathaeus wrote:
TwinSnakes007 wrote:
I'm not sure I understand what the bug is? Is it that the reading of ICE attributes is not consistent?
Yeah, sometimes happens, that renderer reads ICE tree 'partially' - what you see in viewport, doesn't appear into renderer. It could be worse than just wrong reading of color attribute. Sometimes, reason is NaN in ICE (still solved by ICE, don't know how). sometimes, it's not. Form my knowledge, it's not only with Mental Ray, but integration with MR seems to be champion in errors.
Oh yeah, I'm very familiar with NaN's, especially in reading ICE Strand data. So I do error checking when I'm reading ICE Attributes and use a default value when I encounter a NaN.

AFAIK, NaN's come from particle attributes on particles that are Born but are not evaluated yet. Basically, the data array has been created as a place holder for evaluation.

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 07 Apr 2013, 04:09

Looks like its working in my first test. Exported 602 Particles and wrote 6,000 lines of XML in 1.14 seconds.

SI Scene
SI 2013 SP1 Scene
SI 2013 SP1 Scene
Mitsuba Render
Mitsuba 4.4.0 Render
Mitsuba 4.4.0 Render

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 14 May 2013, 23:43

Finally got multi-material working. :ymhug:
MultiMaterial
MultiMaterial
Next up is UV's and VertexColors.

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 18 May 2013, 21:07

Vertex Colors
RT_VertexColors.jpg

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 18 May 2013, 21:12

Since both Vertex Colors and Texture Coordinates are in the Sample space, I got UV's for free! :D
RT_TextureCoordinates.jpg

neuk
Posts: 17
Joined: 29 Sep 2011, 10:00

Re: Mitsuba Exporter

Post by neuk » 26 Jul 2013, 14:07

Hey great work... Mitsuba looks amazing, and your work on the exporter is great.

I had one question, how does mitsuba handle output? Im guessing aov's are not implemented yet but is there any settings for handling what file format to output and similar?

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 26 Jul 2013, 15:04

Nope, no AOV's. The output format is XML. Mitsuba can also be interacted with via Python, as it exposes a Python API that's almost a 1:1 mapping to the C++ codebase.

I was busy testing the new RedShift renderer [which is REALLY great btw]. But, now I'm back working on Mitsuba. RedShift dropped 32bit OS support and my main box with my GPU's is still on 32bit, so I'm cant continue testing.

I'll be putting together some videos on how to build the Mitsuba plugin, and work with the Exporter this weekend.

neuk
Posts: 17
Joined: 29 Sep 2011, 10:00

Re: Mitsuba Exporter

Post by neuk » 26 Jul 2013, 16:28

Ah, Thanks for the heads up, a video for compiling and set-up would be awesome...
Best of luck with the plug-in, cant wait to test it out in xsi.

User avatar
TwinSnakes007
Posts: 316
Joined: 06 Jun 2011, 16:00

Re: Mitsuba Exporter

Post by TwinSnakes007 » 29 Jul 2013, 07:14

Links:
VS 2010 Express Edition
TortioseHG
Softimage Plugin Repo

Video


I'll post Part 2 tomorrow after work about how to setup a scene.

EDIT: There's a bug in the video. You want to install TortoiseHg instead of Mercurial.

neuk
Posts: 17
Joined: 29 Sep 2011, 10:00

Re: Mitsuba Exporter

Post by neuk » 29 Jul 2013, 21:08

\m/

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests