Page 1 of 1

Converting a .obj to blender from sketchup

Posted: Wed Apr 15, 2009 9:12 pm
by lucasfart
so i get the file converted to .obj allright but whenever i try to import it into blender it doesn't work. heres what i did:
1. using the plugin i converted the .kmz or whatever to a .obj. this worked fine.
2. i opened blender and went to file/import/wavefront (.obj)
3. from the list i selected my .obj
4. i clicked Import a Wavefront OBJ in the top right corner
5. In the boxes i had selected: Smooth Groups under import..... Object, Group and Material under Seperate Objects by OBJ...... and the clamp scale was set to 10.0. these were all the default settings.
i clicked import and it came up with this error:

Code: Select all

Python Script Error: check console
so i checked the console and this is what it said at the very end, all the rest looked perfectly fine:

Code: Select all

KeyError: 'index out of range'
Hidden/Spoiler:
[attachment=0]Blender Console.jpg[/attachment]
and thats it.... it doesn't work... :cry: :cry: :cry:
EDIT:sorry for sounding so impatient but i need help so could someone pleeeeeeeeeeease post here. i really want to see what my models look like igame, and i don't want't to keep on bothering other modders with my pathetic models.

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 16, 2009 6:53 pm
by ryukaji
lucasfart wrote: 1. using the plugin i converted the .kmz or whatever to a .obj. this worked fine.
You know you dont have to convert it to obj..... I just take the dae from the extracted .kmz thing but you will likely have to scale it down a lot in blender. Try that and see what happens

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 16, 2009 7:04 pm
by lucasfart
ok. thanks ryukajl. i'll try that out and let you know if it doesn't work.
EDIT: ok thanks heaps for that!! it worked perfectly. anyway i can convert textures as well??
EDIT2: ok so i get the model into blender and export it as a .wrl in vrml97 format or whatever. then i try to drag it into the SWBF Viewer to convert to mesh and it comes up with this:
StarWars Battlefront Viewer:
An exception of class OutOfBoundsException was not handled. The application must shut down.
i did not edit the file in any way in blender. do i need to do something before i export it??
i also did not create an odf for it. would this affect it in anyway??

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 16, 2009 9:35 pm
by ryukaji
Ugh I got that before but right now im blank on how to fix it....ill post it as soon as I remember, but one thing to do is make sure you give it a material and tell it to be texface after you give it a texture. Also make sure you triangulate...I am not 100% on it but I think that just might fix it... triangulate = ctrl+T in edit mode

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 16, 2009 9:51 pm
by lucasfart
ok thanks for that ryukajl. i'm having trouble creating models and doing anything in blender but i'll see what i can do......

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 16, 2009 9:58 pm
by ryukaji
http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro

I really highly reccomend you check this out it will help you out a lot its better than trying to figure it out on your own, and a bonus is if you stick with it, blender is real powerful so as a user myself id reccomend learning to model with it. Ugh I cant stand XSI haha, but then again it all depends on what you learn with.

Re: Converting a .obj to blender from sketchup

Posted: Sat Apr 18, 2009 7:53 pm
by lucasfart
had any luck with remembering what that error is ryukajl??

Re: Converting a .obj to blender from sketchup

Posted: Sat Apr 18, 2009 8:23 pm
by ecko_66
I believe swbf2 viewer will only take vrml 2.0 files. exporter link here:

http://kimballsoftware.com/blender/wrl2export.zip

worked for me.

Re: Converting a .obj to blender from sketchup

Posted: Sun Apr 19, 2009 7:17 am
by lucasfart
where do i put the plugin converter???
EDIT: ok i go the plugin working, but it's no different to vrml 97...... or atleast i'm still getting the same error in BFViewer.

Re: Converting a .obj to blender from sketchup

Posted: Mon Apr 20, 2009 7:41 am
by ryukaji
lucasfart wrote:where do i put the plugin converter???
EDIT: ok i go the plugin working, but it's no different to vrml 97...... or atleast i'm still getting the same error in BFViewer.
Do you think you could send me your model and ill try it out and see if your forgetting to do something or if it really is a problem with your model

Re: Converting a .obj to blender from sketchup

Posted: Mon Apr 20, 2009 6:46 pm
by lucasfart
that might work. how do i send it to you?

Re: Converting a .obj to blender from sketchup

Posted: Mon Apr 20, 2009 6:56 pm
by ryukaji
upload it somewhere and send me the link

Re: Converting a .obj to blender from sketchup

Posted: Tue Apr 21, 2009 4:42 am
by lucasfart
the download is just a cube. it still causes the error though. http://www.megafileupload.com/en/file/9 ... e-wrl.html

Re: Converting a .obj to blender from sketchup

Posted: Tue Apr 21, 2009 5:18 pm
by ryukaji
Well I noticed a bunch of things wrong. First of all you dont need any more than 1 material. You had like 5-6 materials. Materials will not work as far as I know you have to texture. Also in the objects material you need to select texface, and only texface, you dont need to bother with color or anything else. Another thing is if you make a wall out of a plane, one side will not be visible and you will be able to walk through, so you have to make walls have thickness. I was able to open the warehouse in the viewer just fine after fixing these things.

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 23, 2009 4:38 am
by lucasfart
wow. ok. i'll try doing all that but it sounds a bit confusing. so basically the walls need to be 3d and i need to only use 1 material?? by material do you mean texture??
EDIT: also whats texface??????
EDIT2: ok i found texface, but what does it do??

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 23, 2009 7:18 am
by ryukaji
you need to texture the object with an image http://en.wikibooks.org/wiki/Blender_3D ... Map_Basics and texface will make the object use the image as its texture.

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 23, 2009 9:16 am
by lucasfart
Thank you so much for all this help ryukajl. i haven't added a texture to it but should it still show up in game?? i managed to add it to ZE, and it is all black in there, but shouldn't it show up as grey without a texture?

Re: Converting a .obj to blender from sketchup

Posted: Thu Apr 23, 2009 1:25 pm
by ryukaji
lucasfart wrote:Thank you so much for all this help ryukajl. i haven't added a texture to it but should it still show up in game?? i managed to add it to ZE, and it is all black in there, but shouldn't it show up as grey without a texture?
it should show up gray ingame, try it out.

Re: Converting a .obj to blender from sketchup

Posted: Fri Apr 24, 2009 3:37 am
by lucasfart
well they come up black and the half that i am facing is seethrough or something like that because i can only see half the object...

Re: Converting a .obj to blender from sketchup

Posted: Fri Apr 24, 2009 8:47 am
by ryukaji
In blender go into textured view and go into edit mode and the faces that are see through select them and flip normals.