Converting a .obj to blender from sketchup

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Post Reply
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Converting a .obj to blender from sketchup

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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??
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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......
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post by lucasfart »

had any luck with remembering what that error is ryukajl??
User avatar
ecko_66
Private First Class
Posts: 77
Joined: Tue Mar 31, 2009 10:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In the cyberspace of SWBF2

Re: Converting a .obj to blender from sketchup

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post by lucasfart »

that might work. how do i send it to you?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post by ryukaji »

upload it somewhere and send me the link
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post by lucasfart »

the download is just a cube. it still causes the error though. http://www.megafileupload.com/en/file/9 ... e-wrl.html
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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??
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Converting a .obj to blender from sketchup

Post 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...
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Converting a .obj to blender from sketchup

Post 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.
Post Reply