Author Topic: Someone fix the OBJ2BLB (3DtoBLB Released but buggy)  (Read 10694 times)

Well, mine said:
Couldn't open the input 3d model for reading.
Did you change modelname.obj to the correct path your model?
No .log was created.
Are you exporting with normals?

Did you change modelname.obj to the correct path your model?
Yus. Doesn't work with the console command either.



Try building it. I don't have a mac.
Okay, so I was using obj2blb today since 3d2blb doesen't work with .objs from blender, I made the model one face, put it at the position that it would spawn on my brick (which has worked for me before) I export the model, turn on export normals, all that jazz, comes out looking like this

TEX:SIDE
POSITION:
-1.000000 1.000000 2.499999
1.000000 1.000000 2.499999
1.000000 -1.000000 2.499999
-1.000000 -1.000000 2.499999
UV COORDS:
0.000000 0.000000
1.000000 0.000000
1.000000 1.000000
0.000000 1.000000
NORMALS:
0.000000 1.000000 -0.000000
0.000000 1.000000 -0.000000
0.000000 1.000000 -0.000000
0.000000 1.000000 -0.000000

I think, looks fine to me, except for the normals being in the wrong spot, but other than that, its fine

I look at it in the BLB editor, it looks fine, no problems what-so ever, so I drag it and drop it into my .zip, script it, and load up blockland, I spawn the brick, and the face doesen't appear, I think maybe its because its looking for a brick that doesen't exist, but no, there is NO problem, so I look at the code again, and this time try changing the normals to

0 0 1
0 0 1
0 0 1
0 0 1

Load it up in blockland doesen't work, I try changing the UVs to some of my own

2 0
2 2
0 2
0 0

No luck, I change the position to

-1 1 2.5
1 1 2.5
1 -1 2.5
-1 -1 2.5

NO LUCK, at this point, my brick looks like this

TEX:TOP
POSITION:
-1 1 2.5
1 1 2.5
1 -1 2.5
-1 -1 2.5
UV COORDS:
0 0
2 0
2 2
0 2
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1

The original brick face, generated from traders web blb creator, looks like this


TEX:TOP
POSITION:
-1 -1 2.5
-1 1 2.5
1 1 2.5
1 -1 2.5
UV COORDS:
2 0
2 2
0 2
0 0
NORMALS:
0 0 1
0 0 1
0 0 1
0 0 1

...the hell happened?
« Last Edit: October 28, 2011, 02:41:20 AM by soba »

Don't know. .objs "work fine" with it, you need to export with normals (and optionally UV coords). The library I use is suppose to generate normals and uv coords if there is none but obviously they need to fix something.

Don't know. .objs "work fine" with it, you need to export with normals (and optionally UV coords). The library I use is suppose to generate normals and uv coords if there is none but obviously they need to fix something.
UV mapping the model before exporting it, and turning on export normals/UV coords doesen't fix anything, it always spawns ingame invisible, however, if I take the BLB code, and replicate it just by typing it into a different .blb, then it spawns ingame fine, its something you can't see with notepad or something
« Last Edit: October 28, 2011, 04:34:46 AM by soba »

I'm talking about 3dtoblb. OBJ2BLB is obsolete, so I don't give a stuff about it.

I'm talking about 3dtoblb. OBJ2BLB is obsolete, so I don't give a stuff about it.
3d2blb crashes upon dropping any file format from blender onto it, so I can't even try it out, dropping a file from milkshape seemed to work for me, but the triangles make me :(

EDIT: okay, it seems .3ds works, but it triangulates

EDIT2: faces and everything spawns ingame just fine too, just....its rotated by 90 on a certain axis.., I promise you, you finish that script, and I will put it to GOOD use
« Last Edit: October 28, 2011, 06:55:09 AM by soba »

3d2blb crashes upon dropping any file format from blender onto it, so I can't even try it out, dropping a file from milkshape seemed to work for me, but the triangles make me :(

EDIT: okay, it seems .3ds works, but it triangulates

EDIT2: faces and everything spawns ingame just fine too, just....its rotated by 90 on a certain axis.., I promise you, you finish that script, and I will put it to GOOD use
Try counter rotate it by 90 degrees. 3ds is triangles only, as far as I know.

It's not crashing, it's just displaying a message and then closing.

Try counter rotate it by 90 degrees. 3ds is triangles only, as far as I know.

It's not crashing, it's just displaying a message and then closing.
~After dropping a .blend ontop of it, it opens up, all you see is an empty command prompt, shortly after, 3d2blb has stopped working!

Doesn't it need a .bat to run it?


~After dropping a .blend ontop of it, it opens up, all you see is an empty command prompt, shortly after, 3d2blb has stopped working!
It's not crashing. It's opening up the file and going "oh there's  something wrong with this, I don't know what to do with it" and then closes with a message explaining whats wrong but because it's closing instantly you don't see the message.

Try running it from the command line.

It's not crashing. It's opening up the file and going "oh there's  something wrong with this, I don't know what to do with it" and then closes with a message explaining whats wrong but because it's closing instantly you don't see the message.

Try running it from the command line.
Alright, gimme a sec then

EDIT: having trouble using the command prompt to find the directory of the 3dtoblb program

EDIT2: okay, I figured it out, the model file can't be read for some reason

« Last Edit: October 29, 2011, 12:20:23 AM by soba »