Kitty Corp Meow Mix Forums

Help & Tutorials => Stage Tutorials => Topic started by: LegacyWolf on October 05, 2012, 11:32:27 PM



Title: Simple .obj Importing
Post by: LegacyWolf on October 05, 2012, 11:32:27 PM
(http://i.imgur.com/kRagc.png)

A while ago, I was requested to make a tutorial on how to import stages, so I figured I should get to doing it.

So to do a basic .obj import, first gather all your materials. You'll need:

-A computer
-Brawlbox v0.67b or higher
-3ds Max(2010 recommended)
-.obj file and textures of the stage you want to import(optional)

To acquire a .obj file of a stage, you can either rip it from the game, or get it from a model resource site, such as http://www.models-resource.com/ (http://www.models-resource.com/)

Example of how you can find a .obj

Assuming you've gathered all tools needed, now you must find a .obj. In my example, I will be using www.models-resource.com (http://www.models-resource.com) to get my .obj.

(http://i.imgur.com/s3XSW.png)

(http://i.imgur.com/ZL3Ni.png)

(http://i.imgur.com/Pg3ul.jpg)

(http://i.imgur.com/lYx32.jpg)

(http://i.imgur.com/ijjEx.png)

(http://i.imgur.com/qzDXj.png)

Keep in mind that you can use anything shown here. I merely chose Sweet Mountain because I remember somebody wanted to do it, but they didn't exactly know how.

Alright, now that you got all your [censored] downloaded, open it and extract the files somewhere.

(http://i.imgur.com/rxThQ.jpg)

(http://i.imgur.com/S3TGi.jpg)

(and by extract, I mean I don't give a [censored], just put the folder somewhere memorable)

Open that folder, and you'll see all your [censored] in there.

(http://i.imgur.com/4CcqW.jpg)

Exporting as .dae

Now, open 3ds max.

(http://i.imgur.com/KvXv4.png)

When doing things in 3ds max, I like to maximize the bottom-right viewport. To do this, just click the + in the top-left corner of that viewport.

Now, to import the files. Go to File>Import, then go to the folder you extracted earlier and import a .obj file from it. You'll find numerous .obj files in the folder, so choose any one of them. You may choose to import all of them separately and make a large stage. However, there are many problems with that procedure, so I wouldn't exactly recommend it.

(http://i.imgur.com/wuLPE.png)

(http://i.imgur.com/1Kjyp.png)

Now, when importing, you should be greeted with this pop-up. The only thing I would recommend changing is the model units to inches. I encountered a problem importing during this tutorial because I was a dumbass and had it set to miles...

(http://i.imgur.com/zGqTX.png)

So the model should now show on your screen.

(http://i.imgur.com/yysoR.png)

Under certain conditions, the model may only have 1 material ID. This means it will only read a single texture when being imported to Brawlbox. To prevent this, you'll need to download this script: http://www.mediafire.com/?ezedyi2uvo33duo (http://www.mediafire.com/?ezedyi2uvo33duo)

(http://i.imgur.com/jyev2.png)

(http://i.imgur.com/447p7.png)

Now, just drag that script over the model, then click DETACH(You do not need to do this, as it will not work on this model, but this is to provide a solution in the event that you do encounter this problem in the future).

(http://i.imgur.com/Fi1mh.png)

(http://i.imgur.com/qF1fk.png)

Next, go to File>Export. In the file type, click the arrow and select Autodesk collada (.DAE). Save the file anywhere(I'd prefer to save to my desktop). You will be prompted with another screen. Just click OK.

(http://i.imgur.com/j1iQw.png)

(http://i.imgur.com/hNul7.png)

Open up Brawlbox v0.67b, then right-click a .brres file and click import>model(I am creating a new brres file here). Locate the .dae file you exported and open it. Set the type to Stage/Item, uncheck Remap Materials, and click Okay. The model is now a mdl0 model.

(http://i.imgur.com/heYmS.png)

(http://i.imgur.com/8KLFu.png)

(http://i.imgur.com/HhZnD.png)

(http://i.imgur.com/3gydl.png)

SUCCESS, MUTHA[censored]A.

Getting the stage import to work

Now to import the textures. Return to your folder with all the stuff in it. Select all .png(or .jpeg) images and copy them to a separate folder. The name does not matter, but I chose to name it "textures".

(http://i.imgur.com/EFFvU.jpg)

Right-click the .brres, then click Import>Folder. Select the folder with the textures, then click OK. Set the format of each texture as CMPR or RGB5A3, whichever one makes the texture look better(though I'd recommend CMPR, as it reduces filesize), and click Okay(some of these you may need to change later on). This may take awhile.

(http://i.imgur.com/xFCPH.png)

(http://i.imgur.com/ZCraH.png)

(http://i.imgur.com/jdQQE.png)

*Keep in mind that the stage import I am demonstrating contains 183 textures. It was quite a pain in the ass to get all these imported separately. The mere .brres came out to 6.79 MB. Obviously, that's not going to work. Just delete the textures that the model does not read.

Right-click the model and click preview.

(http://i.imgur.com/rkPCQ.png)

You'll see your model in the model viewer, rotated incorrectly. Often times, I find myself needing to reduce the scale of the object to ridiculously low values just to view it, so if you do not see the model, reduce the scale values like I said.

(http://i.imgur.com/H5MJa.png)

Set the rotation-x value to -90 so it's rotated correctly.

(http://i.imgur.com/bhX9b.png)

Exit the model viewer. Right-click the .brres file with the newly-imported mdl0, and go to new>model animation.

(http://i.imgur.com/Y4D7K.png)

(http://i.imgur.com/0oxkm.png)

There is now a new chr0 data named NewCHR. You can keep that name, or you can rename it. Doesn't matter. However...

(http://i.imgur.com/r065m.png)

I would suggest renaming the TopN bone of the new model. Rename it to something unique. I am renaming it to "sweetmtn".

(http://i.imgur.com/VliNb.png)

(http://i.imgur.com/VRk4x.png)

Next, preview the new model. Select the renamed bone, then copy all of its values, then select the new model animation data, and paste the values into it.

(http://i.imgur.com/8U8JF.png)

(http://i.imgur.com/TAeCJ.png)

(http://i.imgur.com/tAmwF.png)

Finally, run the stage in-game, fix it up and make it look decent, and enjoy your stage import.

Feedback and questions are recommended. I'd better see some good stage imports from you all. :srs:

(http://i.imgur.com/HdAyG.png)


Title: Re: Simple .obj Importing
Post by: X on October 06, 2012, 10:10:31 AM
 :af2:
You made the tutorial!


Title: Re: Simple .obj Importing
Post by: LegacyWolf on October 06, 2012, 03:24:43 PM
Indeed. You gonna try an import?


Title: Re: Simple .obj Importing
Post by: X on October 06, 2012, 10:33:44 PM
Indeed. You gonna try an import?
Hopefully tomorrow, if I get the time.
I'm thinking of doing The Great Deku Tree from Ocarina of Time. I already have the model sitting around on my desktop, so I should probably put it to good use.


Title: Re: Simple .obj Importing
Post by: LegacyWolf on October 07, 2012, 07:27:01 AM
Goodie. x3


Title: Re: Simple .obj Importing
Post by: Shinobu Nyan! on October 10, 2012, 01:38:32 PM
Very good. One thing though, when you said to right click a .brres file you didn't say that you have to make it by going to File -> New -> Brres Resource Pack. You might want to add that so people know where you got that brres file.


Title: Re: Simple .obj Importing
Post by: LegacyWolf on October 10, 2012, 09:57:27 PM
Well, yes. However, I had assumed people would want to perform the import directly into the stage instead of having to use a new brres.

I'll note that later.


Title: Re: Simple .obj Importing
Post by: Shinobu Nyan! on October 11, 2012, 11:02:28 AM
Well, yes. However, I had assumed people would want to perform the import directly into the stage instead of having to use a new brres.

I'll note that later.
Good point, however it's always good to explain how you got what's in the picture.


Title: Re: Simple .obj Importing
Post by: LegacyWolf on October 11, 2012, 03:37:39 PM
Indeed. Edits completed. I'll proofread it more once I get around to it.


Title: Re: Simple .obj Importing
Post by: SemiPsycho on October 12, 2012, 06:30:54 PM
when I imported my model into my .brres file, it seemed to work until it finished importing, where the program stopped responding and an error report appeared. Do you know what the problem is? I made sure that I imported it as a stage/item not a character. I think it might be my graphics card being too low. My dad had installed two screens for my computer and my brother removed one because he thought it got annoying, so I think I have to reinstall my graphics card or something like that


Title: Re: Simple .obj Importing
Post by: LegacyWolf on October 12, 2012, 09:23:41 PM
when I imported my model into my .brres file, it seemed to work until it finished importing, where the program stopped responding and an error report appeared. Do you know what the problem is? I made sure that I imported it as a stage/item not a character. I think it might be my graphics card being too low. My dad had installed two screens for my computer and my brother removed one because he thought it got annoying, so I think I have to reinstall my graphics card or something like that

:srs:

...Well, it COULD be your graphics card...well, I've had a problem similar to this. There were too many vertices. Keep in mind that a model that exceeds 12,000 vertices could be troubling. That may very well be your problem.


Title: Re: Simple .obj Importing
Post by: SemiPsycho on October 20, 2012, 04:32:08 PM
OK I'll see. i was using the stage you fight Tabuu on though, and I got it from the website you gave us.


Title: Re: Simple .obj Importing
Post by: Jerza on October 28, 2012, 12:30:02 PM
And If I Have The Bress File Of The Stage How Can I Get It Over STGFinal.pac ?


Title: Re: Simple .obj Importing
Post by: SemiPsycho on November 02, 2012, 10:36:49 PM
I suppose maybe you could delete the archives in STGFINAL.pac and import the .brres file.


Title: Re: Simple .obj Importing
Post by: LegacyWolf on November 03, 2012, 01:17:39 AM
I suppose maybe you could delete the archives in STGFINAL.pac and import the .brres file.

Uh

REPLACE. Not delete.


Title: Re: Simple .obj Importing
Post by: SemiPsycho on November 06, 2012, 09:35:18 PM
Oh, well, yeah. That's what I meant XP.


Title: Re: Simple .obj Importing
Post by: SemiPsycho on February 02, 2013, 07:52:12 PM
Will this work with 3ds Max 2009? If not, that could've been my problem also


Title: Re: Simple .obj Importing
Post by: LegacyWolf on February 05, 2013, 04:50:56 AM
I don't see why not. :P


Title: Re: Simple .obj Importing
Post by: SemiPsycho on February 13, 2013, 03:29:13 PM
Ok, I''ve been having trouble fixing up models and such because most of the tutorials are for 3ds Max 10. Perhaps I should get a torrent and get that one instead?


Title: Re: Simple .obj Importing
Post by: LegacyWolf on February 23, 2013, 08:05:28 AM
Ok, I''ve been having trouble fixing up models and such because most of the tutorials are for 3ds Max 10. Perhaps I should get a torrent and get that one instead?

3ds Max 10 is 3ds Max 2010. Get that.


Title: Re: Simple .obj Importing
Post by: SonicBrawler on February 23, 2013, 08:29:45 AM
Why am i just finding this now? Im totally gunna try this once i dont feel lazy. :3


Title: Re: Simple .obj Importing
Post by: SemiPsycho on February 23, 2013, 11:37:23 AM
I'm not sure why you didn't find this until now, but it's good you didn't find this out any later!


Title: Re: Simple .obj Importing
Post by: Kage Ryu on March 07, 2013, 09:08:38 PM
Informative Tutorial, Legacy. I'm gonna have to try this out.

If only I had made anything decent in my modeling classes that I could use. I want to look into making something original.


Title: Re: Simple .obj Importing
Post by: kiro on June 22, 2013, 07:34:49 PM
This helped me quite a bit. Thanks a million.


Title: Re: Simple .obj Importing
Post by: SemiPsycho on June 24, 2013, 04:22:04 PM
I got 3ds Max 2010 and then my workstation computer broke down. -_-


Title: Re: Simple .obj Importing
Post by: Nezha B. Rose on June 27, 2013, 11:55:28 AM
Very detailed, I'ma gonna try this now... Thanks!


Title: Re: Simple .obj Importing
Post by: Icy* on April 15, 2014, 11:03:09 AM
Everything worked, but what do i have to do with the .brres file at the end? I cannot export or save it as a .pac, great Tutorial btw.


Title: Re: Simple .obj Importing
Post by: Russell_SSB on August 25, 2016, 05:17:40 PM
Can this also work with Blender?

Post Merge: August 25, 2016, 05:18:00 PM
Can this also work with Blender?