Please post here anything else (not relating to Maxwell technical matters)
By rmw
#172223
Hello,

Since I use XSI and since nobody has made a maxwell plugin for XSI I decided to try make one myself.

Here is a link to the .xsiaddon.

Please note that it is very limited and does not yet export any UV information (no textures can be used), the exported normals appear extremely smoothed (only 1 normal per vertex) and there are many bugs.

It writes a .mxs file which has all the materials and geometry that can be easily opened in Maxwell Studio to recalculate normals, which will give a much better result.

Usage

Open the Maxwell Material Editor and create all the materials needed for your scene. Export each one as a different .mxm file in a common directory. (eg. C:\\gold.mxm)

In XSI
1. For each object in the scene goto get->Material->mxm to apply a mxm property.
2. In the mxm property of each object set the name of the Maxwell Material that it should have (the name of one of the materials you exported). (eg. gold)
3. De-select all objects and click on Render->MaxwellRender1. This applies a MaxwellRender1 property to your scene root which has all the information for the maxwell scene. Set all the attributes.
4. Go to the Render tab of the MaxwellRender1 property and set mxmpath to the common directory for the saved material files (eg. c:\\mats)
5. Set mxspath as a full path as to where the maxwell scene (.mxs) must be saved. (eg. c:\\ )

*Always use 2 backslashes (\\) for file names*

Then click on render.

I know this version will probably not be of much use yet, but maybe we'll get an official XSI plugin for maxwell soon.

Ps. I wasn't too sure where to post this.
User avatar
By aitraaz
#172227
:shock: Well, thanks for this, mate, will give it a try, brilliant! :)
By rmw
#172228
Thanks. It might not be much but its something new to try. :lol:
By AAA
#172331
rmw wrote:Hello,

Since I use XSI and since nobody has made a maxwell plugin for XSI I decided to try make one myself.

Here is a link to the .xsiaddon.

Please note that it is very limited and does not yet export any UV information (no textures can be used), the exported normals appear extremely smoothed (only 1 normal per vertex) and there are many bugs.

It writes a .mxs file which has all the materials and geometry that can be easily opened in Maxwell Studio to recalculate normals, which will give a much better result.

Usage

Open the Maxwell Material Editor and create all the materials needed for your scene. Export each one as a different .mxm file in a common directory. (eg. C:\\gold.mxm)

In XSI
1. For each object in the scene goto get->Material->mxm to apply a mxm property.
2. In the mxm property of each object set the name of the Maxwell Material that it should have (the name of one of the materials you exported). (eg. gold)
3. De-select all objects and click on Render->MaxwellRender1. This applies a MaxwellRender1 property to your scene root which has all the information for the maxwell scene. Set all the attributes.
4. Go to the Render tab of the MaxwellRender1 property and set mxmpath to the common directory for the saved material files (eg. c:\\mats)
5. Set mxspath as a full path as to where the maxwell scene (.mxs) must be saved. (eg. c:\\ )

*Always use 2 backslashes (\\) for file names*

Then click on render.

I know this version will probably not be of much use yet, but maybe we'll get an official XSI plugin for maxwell soon.

Ps. I wasn't too sure where to post this.
Have you posted it here

www.xsibase.com

You should! might get some help there

A
User avatar
By oz42
#172360
rmw,

I've installed the addon but can't see the Get->Material->mxm or Render->MaxwellRender1 options that you mention.

The addon seems to install correctly, with no error messages.

I'm using XSI 5.11 Foundation, what version was used to compile this addon?
By rmw
#172418
It was compiled on version 5.0 Ill try compile it on 5.11 but it should work.

Try running this VBscript to apply the property to the scene root just to see if the custom property is loaded. After the code is executed the scene root should have a MaxwellRender1 property.
Code: Select all
SIAddProp "MaxwellRender1", "Scene_Root", siDefaultPropagation, "MaxwellRender1"
User avatar
By oz42
#172448
rmw,

sorry I get this error:-
Code: Select all
'ERROR : 2000 - Argument 0 (PresetObj) is invalid
'ERROR : 2027-PROP-SIAddProp - Invalid preset argument, cannot load MaxwellRender1
SIAddProp "MaxwellRender1", "Scene_Root", siDefaultPropagation, "MaxwellRender1"
'ERROR : Invalid procedure call or argument: 'SIAddProp' - [line 1]
it looks like the addon isn't working here, although the addon is recognised by XSI and the two ddl's are in my users directory.

Any ideas?
User avatar
By oz42
#172452
rmw,

Just an idea. With some addons (e.g. RC Tools) you have to run a reg.bat file after installation to register the dll's (using regsvr32) with Windows.

I'm not sure if this will help but I thought I'd mention it.
User avatar
By oz42
#172454
rmw,

Again, not sure if this helps but...

File->plugin manager gives me this:-

Image

The MaxwellRender1.dll has a red warning triangle next to it. When I right-click->properties it says "Library not found".
Last edited by oz42 on Mon Jul 21, 2008 4:48 pm, edited 1 time in total.
User avatar
By oz42
#175036
rmw,

I guess your busy, maybe even at Siggraph? I've sent you a couple of pm's - I still can't get your version of the plugin to work with my version of XSI 5.11. I'd really love to give it a go and help out with any suggestions that may improve it.

Thanks,
User avatar
By bbyrtaylor
#180167
Thanks for the effort any how.
User avatar
By juan
#180239
Hi rmw,

Congrats for your nice work :)
Please feel free to ask us about any aspect to improve the plugin.

Juan
User avatar
By oz42
#180339
Juan,

did you actually get it working? With XSI 5.11? If so could you please give me some tips on how to get it going, thanks.

Maybe, with rmw's permission, NextLimit could use this plugin as the basis for their own officially sanctioned version?

...please!
User avatar
By bbyrtaylor
#180390
oz42 wrote:Juan,

did you actually get it working? With XSI 5.11? If so could you please give me some tips on how to get it going, thanks.

Maybe, with rmw's permission, NextLimit could use this plugin as the basis for their own officially sanctioned version?

...please!

I second that Juan

ok thanks for explaining. actually I do copy the T[…]

Sketchup 2026 Released

Fernando wrote: " Now that Maxwell for Cinema[…]

Hello Gaspare, I could test the plugin on Rhino 8[…]

Hello Blanchett, I could reproduce the problem he[…]