Welcome
Welcome to Caligari Truespace 3D Modeling Forum and Tutorials.

Click this link to join our community today.

3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

General blog related to GMAX modeling software, plugins, maxscripts and game packs.

3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » February 28th, 2013, 9:02 am

I just finished the first edition of the script.
It exports Geometry Data, Normals, Materials ( only Multi / Sub - object ), Texture Coordinates to the selected output.
In Gmax it writes to the listener. Unfortunately it is not easy to export data from Gmax. There are blocked Maxscript funktions , and the content of the Listener may be selected to some extent.
I have not tested if the Material & Texture Coordinates are exported correctly.

From 3ds Max ( Gmax ) navigate to Maxscript / Run / XSIex.ms.

When I have time I will improve the app. Enjoy :).

Image

FYI: To use the exporter with GMAX you need to select the GMAX button which esentially write the XSI text data the MAXScript Listner Window. I've attached an application that should be used to write the XSI model to a text based file.

PS: models exported from GMAX needs to have

1. A multimaterial applied,
2. Be converted to an editable mesh, and
3. Have a UV map applied manually.

FYI: GMAX, adds a header called, "Welcome to Maxscript" in the Listner Window, so use the "Clear All" option prior to exporting the output via GMaxSLGRAB application as the extra header prevents BZII from reading the model file correctly.

1. Save the file with a modelname.xsi extension to your BZII Addon Folder. 2. You'll also have to manually convert the 2D textures with Mates BZ2DXT texture conversion utility.

Questions? Post them as needed. Leroy.
Attachments
gmaxslgragplus.PNG
gmaxslgragplus.PNG (120.27 KiB) Viewed 1871 times
gmaxlistnermenu.PNG
gmaxlistnermenu.PNG (5.74 KiB) Viewed 1871 times
gmaxclearall.PNG
gmaxclearall.PNG (14.32 KiB) Viewed 1871 times
GMaxSLGRAB.zip
Unzip this file and use it to grab the text from the maxscript listner widow and name it whatever.xsi.
(16.48 KiB) Downloaded 54 times
XSIex1022.rar
(13.63 KiB) Downloaded 69 times
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby BNG123 » March 1st, 2013, 10:18 am

Very cool. I applaud your efforts very much and will give the script a try. I'd also love to post a link on another BZII forum called, BZ2Maps.us. That forum is mostly player oriented, but I got them to created a 3D modeling section for BZII models and props. Thanks a bunch Leroy.
User avatar
BNG123
 
Posts: 593
Joined: June 12th, 2010, 7:17 pm
Location: The Internet you silly bear?
Has thanked: 9 time
Have thanks: 2 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » April 17th, 2013, 7:19 am

I have to do more tests and fixes, but at this point the second version is much better.
Thank you, Leroy for the models.
Image
Attachments
XSIex.rar
XSI Export'Rollout v. 1.0.1.4
(12.6 KiB) Downloaded 60 times
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby BNG123 » April 24th, 2013, 9:30 am

Thanks for posting the revised version. Leroy.
User avatar
BNG123
 
Posts: 593
Joined: June 12th, 2010, 7:17 pm
Location: The Internet you silly bear?
Has thanked: 9 time
Have thanks: 2 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » April 29th, 2013, 10:07 am

XSI Export’Rollout v. 1.0.1.8

I think this version is stable.
Finally I fixed the animation template. I tested it only with 3DExploration and it works, either in Gmax. If there is a problem, send me a feedback. I also shared this page as home page for the script.

Best wishes
Attachments
XSIex1018.rar
XSI Export'Rollout v.1.0.1.8
(12.91 KiB) Downloaded 61 times
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby BNG123 » January 20th, 2014, 5:44 am

Please note that GMAX users will have to open the maxscript listener window to see the XSI model data as GMAX can't directly write the data to an external model file.

To write the data to an external text file like that used by M.S. Notepad you must use the select all feature in the listener window and cut it to your systems clipboard and paste it section by section to a new file in Notepad.

Then all you have to do is save the file as Yourmodelname.xsi and it should be viewable in the BZII map editor. Additionally, it looks like you need to manually copy the model texture to your BZII ADDON folder.
Attachments
XSIex1021m.ms
Revised TSvetan script by Leroy with minor changes to xsi header and si coord entry.
(24.15 KiB) Downloaded 28 times
tsvetanxsiexport.png
Copy the script to your GMAX\Scripts\Startup folder.
tsvetanxsiexport.png (252.43 KiB) Viewed 2237 times
User avatar
BNG123
 
Posts: 593
Joined: June 12th, 2010, 7:17 pm
Location: The Internet you silly bear?
Has thanked: 9 time
Have thanks: 2 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » February 7th, 2014, 10:51 am

v. 1.0.2.2 supports skin envelope (download it on top of the topic). The bones are exported as meshes. The script is still in improvement.
*some developers make the bones without mesh, to make easy the work of the game engine
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby BNG123 » February 7th, 2014, 1:39 pm

tsvetan wrote:v. 1.0.2.2 supports skin envelope (download it on top of the topic). The bones are exported as meshes. The script is still in improvement.
*some developers make the bones without mesh, to make easy the work of the game engine


Thanks Tsvetan you're pretty awesome. Another user named Raxx recently complete work on an XSI exporter for a modeling software called Anim8or specific to the XSI used by BZII. He added support for hiearchal parts linking to an existing export script that he did quite some time back along with an X exporter script.

I'll test the changes to the exporter revision and spread the good news about your efforts. Leroy.
User avatar
BNG123
 
Posts: 593
Joined: June 12th, 2010, 7:17 pm
Location: The Internet you silly bear?
Has thanked: 9 time
Have thanks: 2 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » February 7th, 2014, 3:03 pm

I will examine Raxx's script next days.
Best wishes
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » July 8th, 2014, 4:11 am

Hi everyone,
v. 1.0.2.6 clears the listener (Gmax) and also has a file saving capability for Gmax user (xsier_save.exe).
Not stable, when exports animation, but for static objects works fine. I will make it better. See the history file for what's new.
Attachments
XSIex_1026beta.rar
(21.81 KiB) Downloaded 50 times
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby BNG123 » July 8th, 2014, 6:29 am

Most excellent and thank you Tsvetan. Do you know if 2d texture import support will be added, or must applied textures be applied manually? I imported one of my Truespace X to XSI models in to GMAX without problems but it does not show the 2d texture of the model itself. MAX users should really love the ability to import their XSI models back in to MAX. Thanks again, Leroy.
Attachments
gmaxa10import.png
gmaxa10import.png (228.36 KiB) Viewed 1759 times
User avatar
BNG123
 
Posts: 593
Joined: June 12th, 2010, 7:17 pm
Location: The Internet you silly bear?
Has thanked: 9 time
Have thanks: 2 time

Re: 3ds Max ( Gmax ) XSI Exporter Rollout ( v. 1.0.0.0 )

Postby tsvetan » July 9th, 2014, 2:48 pm

The next algorithm shows the textures in the viewport. By default they are hidden.

for o in objects do (
if o.Material != undefined do (
try(
for m = 1 to o.Material.count do (
showTextureMap o.material[m] o.material[m].diffuseMap on
)
) catch()
try(showTextureMap o.material o.diffuseMap on) catch()
)
)

The textures hide, when the "on" boolean is replaced with "off" (the 3-rd argument in the "showTextureMap" function).
You may drag the lines to a toolbar and click the button.

The exporter saves the texture whole path, if it is applied to an object, in the SI_Texture2D.
The importer search the texture accordingly the file path in SI_Texture2D or SI_TextureFilename. If not availabe the function search the texture with the given filename into the folder of imported model.
tsvetan
 
Posts: 48
Joined: December 17th, 2012, 4:07 pm
Has thanked: 1 time
Have thanks: 4 time


Return to Blogging GMAX 1.2 a la web

Who is online

Users browsing this forum: No registered users and 1 guest

cron
suspicion-preferred