I've been using blender to produce some simple building models for a map I'm making, and most of them have come through alright, however I've been having a bit of difficulty with a few of them. I've been using cube projection to uv them, as I'm only using one texture per model. Anyway, most of them have worked totally fine, but with a few others, if i uv using cube projection, the texture does not import into swbfviewer at all. The model is completely white. I've experimented, and found that using smart projection/standard unwrap export the textures just fine.
Any help getting the textures to export using cube projection would be greatly appreciated. I'm thinking it might have something to do with overlapping uv's on the uv editor, but I'm not a pro and as such I'm not sure.
All these props are meant to fit together like lego, and using cube projection the textures have all been to the right scale, however if i try manually uving the remaining two, it would be extremely difficult to get the scale right...
Importing With Textures To SWBFViewer - Blender [Solved]
Moderator: Moderators
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Importing With Textures To SWBFViewer - Blender [Solved]
Last edited by lucasfart on Fri Nov 11, 2011 10:02 am, edited 1 time in total.
-
mswf
- Master Bounty Hunter

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: Importing With Textures To SWBFViewer - Blender
Could you post a screenshot of your UV layout? The projection you choose is just selecting the technique blender should use to unwrap them, the end product should be, technically, the same.
The type of projection you've used may have resulted in a weird layout, so that's why I'm asking for a screenshot.
The type of projection you've used may have resulted in a weird layout, so that's why I'm asking for a screenshot.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Importing With Textures To SWBFViewer - Blender
Here's the image. The UV's are pretty cluttered and have a weird layout, so yeah. 
IMageshack has disabled the directlink option on their images.
http://imageshack.us/f/98/94783931.jpg/
IMageshack has disabled the directlink option on their images.
http://imageshack.us/f/98/94783931.jpg/
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Importing With Textures To SWBFViewer - Blender
lucasfart wrote:Here's the image. The UV's are pretty cluttered and have a weird layout, so yeah.
IMageshack has disabled the directlink option on their images.
http://imageshack.us/f/98/94783931.jpg/
Oh hey look, the direct link.
Hidden/Spoiler:
When you upload a single image, it "disables" the direct link field so you can't copy paste it. However all you have to do is right click the image in the link you provided and then copy the image's link. A little hard to explain, grammar is not my best skill. I think you can can figure it out though.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Importing With Textures To SWBFViewer - Blender
Haha. Thanks for that.
I immediately saw the greyed out direct link and gave up. 
EDIT: I'm posting this now for the benefit of others, who may have a similar problem in the future. I managed to fix this problem, and while i still don't completely understand how it occured, i get most of it.
What happened, was that i used a texture off the internet with one of those weird letters/numbers mixes. I used this original name when i first uv'ed the models, and afterwards i decided to change the name to something more memorable. I then went back through and changed the textures for which the uv's had been applied. For some reason, which i still do not know, some of the textures refused to update properly, so when i exported, i mistakenly assumed that there had been a problem exporting due to the white texture on my model.
The way i found and fixed this was to open the .wrl in notepad ++ and found this section (The section with the colour tags around it:
In order to fix the problem, i updated the name of the texture on both those lines to the current texture name and voila! Perfect textures....
EDIT: I'm posting this now for the benefit of others, who may have a similar problem in the future. I managed to fix this problem, and while i still don't completely understand how it occured, i get most of it.
What happened, was that i used a texture off the internet with one of those weird letters/numbers mixes. I used this original name when i first uv'ed the models, and afterwards i decided to change the name to something more memorable. I then went back through and changed the textures for which the uv's had been applied. For some reason, which i still do not know, some of the textures refused to update properly, so when i exported, i mistakenly assumed that there had been a problem exporting due to the white texture on my model.
The way i found and fixed this was to open the .wrl in notepad ++ and found this section (The section with the colour tags around it:
Hidden/Spoiler:
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Importing With Textures To SWBFViewer - Blender
I'm pretty sure the first mention of the image is just a name that defines that section hence "DEF" preceeding it. I'll look into the VRML syntax later to confirm. The second line is the one with the actual image file name. You also shouldn't leave spaces in file names.lucasfart wrote:Code: Select all
texture DEF Fortress_-_Wall ImageTexture { url "Fortress - Wall.png"
Fortress - Wall.png
should be
Fortress-Wall.png
or
FortressWall.png
or
Fortress_Wall.png
EDIT
The DEF syntax gives a name to a node
You can name any node
Names can be most any sequence of letters and numbers
Names must be unique within a file
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Importing With Textures To SWBFViewer - Blender [Solved]
Yeah i only thought of that after, but they worked fine ingame and in ZE, so i didn't worry about it too much...
So what you're saying is that i can put anything in the first line near DEF and that it's just a title of some sort?
So what you're saying is that i can put anything in the first line near DEF and that it's just a title of some sort?
