![]() | ||
Views: 24,271,148 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
03-23-25 03:40 AM |
Guest: |
0 users reading TUTORIAL: How to get a obj. file in Whitehole. [TUTORIAL] | 1 bot |
Main - Archived forums - SMG documentations and tutorials - TUTORIAL: How to get a obj. file in Whitehole. [TUTORIAL] | Hide post layouts | New reply |
TheJeli |
| ||
Member Normal user Level: 17 Posts: 3/51 EXP: 23795 Next: 948 Since: 07-15-13 From: myass Last post: 3969 days ago Last view: 3677 days ago |
Fixed the crashing and edited my post. |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1602/9055 EXP: 58732618 Next: 203063 Since: 07-03-12 From: in a box ![]() Last post: 27 days ago Last view: 8 hours ago |
TheJeli |
| ||
Member Normal user Level: 17 Posts: 4/51 EXP: 23795 Next: 948 Since: 07-15-13 From: myass Last post: 3969 days ago Last view: 3677 days ago |
I made my own XML and it didn't work so I downloaded the one off this site.
EDIT: My object appears in whitehole but doesn't appear in game. |
shibboleet |
| ||
![]() Fire Mario DROP TABLE users; Level: 124 Posts: 1687/4661 EXP: 21679612 Next: 156989 Since: 07-07-12 Last post: 1680 days ago Last view: 693 days ago |
Because you need to add it to the ProductMapObjDataTable in ObjectData.
Extract the .arc to get a bcsv. Open that up with MN1's bcsv editor and add "Wood" to the list, and go to the other list, and make it a "SimpleMapObj" Save, pack and put it on your sd card. Done. ____________________ a |
TheJeli |
| ||
Member Normal user Level: 17 Posts: 25/51 EXP: 23795 Next: 948 Since: 07-15-13 From: myass Last post: 3969 days ago Last view: 3677 days ago |
This is what my ProductMapObjDataTable looks like: ![]() This is one is on my SD card. |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1612/9055 EXP: 58732618 Next: 203063 Since: 07-03-12 From: in a box ![]() Last post: 27 days ago Last view: 8 hours ago |
TheJeli |
| ||
Member Normal user Level: 17 Posts: 31/51 EXP: 23795 Next: 948 Since: 07-15-13 From: myass Last post: 3969 days ago Last view: 3677 days ago |
Thanks for helping. I didn't even bother to check the other fields. I'll have to make a video tutorial sometime.
EDIT: It finally worked! Huge thanks to all that helped me! Stay tuned for some new levels on the way! |
chaoscollector |
| ||
Normal user Level: 12 Posts: 3/21 EXP: 6286 Next: 1635 Since: 07-17-13 Last post: 4246 days ago Last view: 4122 days ago |
I keep getting an "obj2bdl.py: unrecognized arguments: *half of my objects name*.obj when trying to convert it to bdl? what am I doing wrong? |
blank |
| ||
Normal user Level: 26 Posts: 74/129 EXP: 99809 Next: 2466 Since: 07-08-12 Last post: 3673 days ago Last view: 2646 days ago |
Do you have any spaces in the file name? If so, enclose the file name in quotes (""). |
TheJeli |
| ||
Member Normal user Level: 17 Posts: 39/51 EXP: 23795 Next: 948 Since: 07-15-13 From: myass Last post: 3969 days ago Last view: 3677 days ago |
If you use textures that aren't .png it crashes. |
chaoscollector |
| ||
Normal user Level: 12 Posts: 4/21 EXP: 6286 Next: 1635 Since: 07-17-13 Last post: 4246 days ago Last view: 4122 days ago |
right so I removed the spaces in the file names since it still wasn't working even with quote marks and I got this error instead:
![]() |
blank |
| ||
Normal user Level: 26 Posts: 75/129 EXP: 99809 Next: 2466 Since: 07-08-12 Last post: 3673 days ago Last view: 2646 days ago |
You can't just rename the files, as the OBJ file still references the the MTL file with spaces in its file name. The problem here is that whatever tool made that OBJ file allowed for the MTL file to have spaces in its name, which it shouldn't.
The easiest fix for this would be if you simply don't use spaces in the file name when exporting your model to an OBJ file. |
chaoscollector |
| ||
Normal user Level: 12 Posts: 5/21 EXP: 6286 Next: 1635 Since: 07-17-13 Last post: 4246 days ago Last view: 4122 days ago |
Posted by blankI got the model from online, but would it be alright if I opened it in blender and just resaved it without spaces?:) |
blank |
| ||
Normal user Level: 26 Posts: 76/129 EXP: 99809 Next: 2466 Since: 07-08-12 Last post: 3673 days ago Last view: 2646 days ago |
Possibly. As long as all the resulting files (OBJ, MTL and all textures) has no spaces in the file names. |
chaoscollector |
| ||
Normal user Level: 12 Posts: 6/21 EXP: 6286 Next: 1635 Since: 07-17-13 Last post: 4246 days ago Last view: 4122 days ago |
real sorry to keep pestering you but now I've got this:
![]() |
blank |
| ||
Normal user Level: 26 Posts: 77/129 EXP: 99809 Next: 2466 Since: 07-08-12 Last post: 3673 days ago Last view: 2646 days ago |
The file names of the textures still contain spaces. Try renaming the textures in blender before exporting. |
shibboleet |
| ||
![]() Fire Mario DROP TABLE users; Level: 124 Posts: 1742/4661 EXP: 21679612 Next: 156989 Since: 07-07-12 Last post: 1680 days ago Last view: 693 days ago |
Either that or you can edit the mtl in a hex editor to remove all the spaces ![]() ____________________ a |
chaoscollector |
| ||
Normal user Level: 12 Posts: 7/21 EXP: 6286 Next: 1635 Since: 07-17-13 Last post: 4246 days ago Last view: 4122 days ago |
so Ive discovered my problem comes from the fact I apparently cant properly change the textures that are mapped to the obj. files in blender because when ever I try to, It still uses the old textures when converting
EDIT: So I tried yet again with another model and this time, the textures dimension isn't a power of two even though every texture file I have IS a power of two. this thing is so confusing. |
blank |
| ||
Normal user Level: 26 Posts: 78/129 EXP: 99809 Next: 2466 Since: 07-08-12 Last post: 3673 days ago Last view: 2646 days ago |
In that case your only option is to manually rename the texture files. Then open the MTL file in a text editor, look for lines beginning with map_Kd and change the following texture file name correspondingly. |
I pwned U! |
| ||
Normal user Level: 8 Posts: 2/9 EXP: 1783 Next: 404 Since: 04-12-13 Last post: 4245 days ago Last view: 3194 days ago |
I now took out all of the spaces in the texture names in Blender, but it is still giving me the same error as before. I also looked at the .mtl file in a text editor, but I could not find anything that said map on it, but it did show some lines that start with Kd. Here is what it shows:
# Blender MTL File: 'None' # Material Count: 10 newmtl Color_000 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.800000 0.800000 0.800000 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_002 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.621177 0.621177 0.621177 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_007 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.181961 0.181961 0.181961 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_009 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.000000 0.000000 0.000000 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_A01 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.800000 0.000000 0.000000 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_C04 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.800000 0.640000 0.480000 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl Color_D02 Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.800000 0.640000 0.156862 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl mesh0110mat Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.511373 0.511373 0.511373 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl mesh0111mat Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.511373 0.511373 0.511373 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 newmtl mesh0124mat Ns 96.078431 Ka 0.000000 0.000000 0.000000 Kd 0.511373 0.511373 0.511373 Ks 0.165000 0.165000 0.165000 Ni 1.000000 d 1.000000 illum 2 So, which names do I change and what do I them to? |
Main - Archived forums - SMG documentations and tutorials - TUTORIAL: How to get a obj. file in Whitehole. [TUTORIAL] | Hide post layouts | New reply |
Page rendered in 0.037 seconds. (2048KB of memory used) MySQL - queries: 27, rows: 234/234, time: 0.014 seconds. ![]() © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |