Kuribo64
Views: 19,995,425 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-19-24 07:01 PM
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

Pages: 1 2 3 4
TheJeli
Posted on 07-15-13 02:34 PM Link | #28058
Fixed the crashing and edited my post.

Arisotura
Posted on 07-15-13 02:41 PM Link | #28060
It'd be nice if you explained us how you fixed it, too.

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

TheJeli
Posted on 07-15-13 02:53 PM (rev. 2 of 07-16-13 01:39 PM) Link | #28063
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.

[image]

shibboleet
Posted on 07-16-13 02:47 PM Link | #28170
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
Posted on 07-17-13 08:45 AM (rev. 2 of 07-17-13 08:46 AM) Link | #28291
This is what my ProductMapObjDataTable looks like: [image]
This is one is on my SD card.

Arisotura
Posted on 07-17-13 12:12 PM Link | #28308
I guess you did it wrong... your entry should have two fields: ModelName (data: wood) and ClassName (data: SimpleMapObj).

____________________
NSMBHD - Kafuka - Jul
melonDS the most fruity DS emulator there is

zafkflzdasd

TheJeli
Posted on 07-17-13 02:46 PM (rev. 3 of 07-17-13 05:29 PM) Link | #28329
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
Posted on 07-21-13 10:03 AM Link | #28671
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
Posted on 07-21-13 12:06 PM Link | #28672
Do you have any spaces in the file name? If so, enclose the file name in quotes ("").

TheJeli
Posted on 07-21-13 12:16 PM Link | #28674
If you use textures that aren't .png it crashes.

chaoscollector
Posted on 07-21-13 12:24 PM Link | #28676
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:
[image]

blank
Posted on 07-21-13 02:15 PM Link | #28682
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
Posted on 07-21-13 03:27 PM Link | #28684
Posted by blank
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.
I got the model from online, but would it be alright if I opened it in blender and just resaved it without spaces?:)

blank
Posted on 07-21-13 04:37 PM Link | #28687
Possibly. As long as all the resulting files (OBJ, MTL and all textures) has no spaces in the file names.

chaoscollector
Posted on 07-21-13 06:15 PM Link | #28690
real sorry to keep pestering you but now I've got this:
[image]

blank
Posted on 07-21-13 07:40 PM Link | #28692
The file names of the textures still contain spaces. Try renaming the textures in blender before exporting.

shibboleet
Posted on 07-21-13 10:51 PM Link | #28702
Either that or you can edit the mtl in a hex editor to remove all the spaces :P

____________________
a

chaoscollector
Posted on 07-23-13 11:22 AM (rev. 2 of 07-23-13 02:13 PM) Link | #28782
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
Posted on 07-23-13 02:22 PM Link | #28786
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!
Posted on 07-25-13 05:55 PM Link | #28943
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?
Pages: 1 2 3 4

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.026 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 233/233, time: 0.010 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.