Kuribo64
Views: 19,854,714 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-29-24 06:52 AM
Guest:

0 users reading Obj2bdl Question | 1 bot

Main - Archived forums - SMG questions and issues - Obj2bdl Question Hide post layouts | New reply


MeTheMarioMan
Posted on 09-01-14 08:37 PM Link | #47686
So I've been gone for about half a year, and have returned to this website for more hacking shenanigans.

Though I've been doing tons of other stuff and excluded all SMG from my life until now. Soooo, I've pretty much forgotten everything there is. Although I've made a level before, it was not the best, but it gave me the main idea on how to make a level, so this most likely will be the only question I have. (Unless my inner idiot is released)

I downloaded Python 3.4 with PyQt and created a model.(yes this is about models again :P)
After creating a model, I exported it by following the tutorial by NWPlayer123. But when I tried obj2bdl, I get this:

C:\Python34>python.exe obj2bdl.py AtomicHillsP1.obj AtomicHillsP1.bdl
Traceback :
File "obj2bdl.py", line 164, in
textures.appendlename>>>
File "C:\Python34\j3d\tex1.py", line 46, in _init_
raise Exception<'could not load image {}'.format>
Exception: could not load image AtomicHillsP1/Material1.jpg


Atomic Hills is the name of my level for FYI.
I don't know what to do. I feel like the stupidest person on this site XD.

shibboleet
Posted on 09-01-14 08:40 PM Link | #47687
You can't use JPG images, you have to use PNG.

____________________
a

MeTheMarioMan
Posted on 09-01-14 08:52 PM Link | #47689
I was sort of thinking it was something like that.
But in Sketchup, the textures I used were TGA files. When exported, they turned into JPG.

NWPlayer123
Posted on 09-01-14 08:54 PM (rev. 2 of 09-01-14 08:54 PM) Link | #47690
Weird, that shouldn't happen. Even for me, it exports to PNG from whatever format it was originally in. What version?

____________________
"I hate playing musical chats" ~ Quote of the month

shibboleet
Posted on 09-01-14 08:56 PM Link | #47691
Use GIMP to convert the TGA files to PNG, and use those.

____________________
a

MeTheMarioMan
Posted on 09-01-14 09:31 PM Link | #47696
Well Gimp worked making Sketchup export a PNG, but now when I try obj2bdl, I get the same error but the last line says:

Exception: could not load image AtomicHillsP1/Material3.png

Splitwirez
Posted on 09-01-14 09:53 PM Link | #47701
Posted by MeTheMarioMan
Well Gimp worked making Sketchup export a PNG, but now when I try obj2bdl, I get the same error but the last line says:

Exception: could not load image AtomicHillsP1/Material3.png

Check that the texture is present in the correct location.

MeTheMarioMan
Posted on 09-01-14 10:02 PM Link | #47702
Okay I fixed it. I had to put the textures in a folder. Blame it on being gone for a half a year? :P
Thanks to all who helped.

Splitwirez
Posted on 09-01-14 10:07 PM Link | #47703
Posted by MeTheMarioMan
Okay I fixed it. I had to put the textures in a folder. Blame it on being gone for a half a year? :P
Thanks to all who helped.

Glad it's fixed :D.


Main - Archived forums - SMG questions and issues - Obj2bdl Question Hide post layouts | New reply

Page rendered in 0.020 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 213/213, time: 0.012 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.