Problem with some models imported from Wings 3D in to Oolite
Moderators: winston, another_commander
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Problem with some models imported from Wings 3D in to Oolite
Gents - I have been testing an early pre-release version of the Mantis Scout Ship and have discovered that there are some non-transparent areas around the ship visible on the below screenshot (Black triangles).
I have changed the background colour on the texture file which changes this black to whatever colour I specify for the background.
I have also looked at the 3D Wings model but can't see any issues with the 3D model.
Has anyone else come across this and if so what is the problem and how is it resolved ?
I have changed the background colour on the texture file which changes this black to whatever colour I specify for the background.
I have also looked at the 3D Wings model but can't see any issues with the 3D model.
Has anyone else come across this and if so what is the problem and how is it resolved ?
Last edited by Shipbuilder on Sun Jun 03, 2012 3:15 pm, edited 2 times in total.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Re: Problem with some models imported from 3D Wings in to Oo
Nice looking ship. If it's not solvable, how about incorporating the black into the paintjob?
On a break
- Staer9
- ---- E L I T E ----
- Posts: 570
- Joined: Fri Feb 18, 2011 4:53 pm
- Location: Hatfield, Hertfordshire (poor industrial)
Re: Problem with some models imported from 3D Wings in to Oo
Oolite doesn't support transparency and will therefore use full-opacity of whatever colour you have on the texture, if this is black then it will use black.
This is often used to advantage by baking maps (specular or illumination normally) onto the alpha channel.
if you don't want it to be transparent then I can only assume it is a quads-tris error on export that has messed up your UV map and is referencing the wrong parts of your texture.
:edit: apon closer examination it is indeed a triangulation error, use wings to triangulate before exporting
This is often used to advantage by baking maps (specular or illumination normally) onto the alpha channel.
if you don't want it to be transparent then I can only assume it is a quads-tris error on export that has messed up your UV map and is referencing the wrong parts of your texture.
:edit: apon closer examination it is indeed a triangulation error, use wings to triangulate before exporting
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Problem with some models imported from 3D Wings in to Oo
Which converter are you using. The Obj2DatTex or Obj2DatTexNorm. The later should be better, but can have issues. You can set a winding parameter inside the script. It is commented in the script itself. 2 is default, but I see I set it to 0 (=keep original winding) in my script. That was also to get rid of some black triangles.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Re: Problem with some models imported from 3D Wings in to Oo
Thanks for the suggestions and advice gents. Once I've got my next oxp issued I'll play about with your suggestions and hopefully get rid of the triangles. If all else fails I guess I could incorporate into the ship texture but I will look to sort the problem out first if possible.
Staer9 I assume it is a good idea to always triangulate your model in Wings 3D before exporting.
I have been using Obj2DatTex script.
Amaranth - I'm glad you like the look of the ship.
Staer9 I assume it is a good idea to always triangulate your model in Wings 3D before exporting.
I have been using Obj2DatTex script.
Amaranth - I'm glad you like the look of the ship.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Problem with some models imported from 3D Wings in to Oo
Wow, thanks for the info eric - i've have a few models become exported with the odd polygon hole in them when using the Obj2DatTexNorm script, i assume it's because of my messy style of working without keeping nice edgeloops in the model, usually i've been able to fix problems by spinning the relevant polygon edges in wings or by defining some hard edges around the problem area, will definately look into messing about with this parameter in the scriptEric Walch wrote:Which converter are you using. The Obj2DatTex or Obj2DatTexNorm. The later should be better, but can have issues. You can set a winding parameter inside the script. It is commented in the script itself. 2 is default, but I see I set it to 0 (=keep original winding) in my script. That was also to get rid of some black triangles.
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Re: Problem with some models imported from Wings 3D in to Oo
I have created a ship model in Wings 3D which looks fine. I have then exported it and created the .obj and .mat files, then created the .dat file.
Once I incorporate the model in to Oolite however their is a section of the ship which is different to the wings model I.e. a sloped section of hull at one side of the ship is vertical in Oolite whereas in wings it is sloping.
Has anyone had this problem and if so haver you been able to solve it ?
Once I incorporate the model in to Oolite however their is a section of the ship which is different to the wings model I.e. a sloped section of hull at one side of the ship is vertical in Oolite whereas in wings it is sloping.
Has anyone had this problem and if so haver you been able to solve it ?
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
-
- Deadly
- Posts: 163
- Joined: Mon Aug 22, 2011 3:16 am
Re: Problem with some models imported from Wings 3D in to Oo
Shipbuilder wrote:I have created a ship model in Wings 3D which looks fine. I have then exported it and created the .obj and .mat files, then created the .dat file.
Once I incorporate the model in to Oolite however their is a section of the ship which is different to the wings model I.e. a sloped section of hull at one side of the ship is vertical in Oolite whereas in wings it is sloping.
Has anyone had this problem and if so haver you been able to solve it ?
it happens beause of the exporter's need to triangulate shit before exporting it it just doesnt accept some types of surfaces, smoothing normaly solves it but if you want to low poly everything you should design everything with that in mind
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Re: Problem with some models imported from Wings 3D in to Oo
I may try to triangulate the individual panels in question in Wings 3D and recreate the .dat file. I'll post a update to advise whether or not this solves the problem once I get the chance to try it out.
This is annoying as I have completed most of the texturing (hopefully if this fixes the model the texture map won't be effected)
The other side of the ship, which is symmetrical formed fine.
This is annoying as I have completed most of the texturing (hopefully if this fixes the model the texture map won't be effected)
The other side of the ship, which is symmetrical formed fine.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
- Tricky
- ---- E L I T E ----
- Posts: 821
- Joined: Sun May 13, 2012 11:12 pm
- Location: Bradford, UK. (Anarchic)
Re: Problem with some models imported from Wings 3D in to Oo
It would help if you dropped the kiddie arrogance and actually posted some constructive help.commanderxairon wrote:Shipbuilder wrote:I have created a ship model in Wings 3D which looks fine. I have then exported it and created the .obj and .mat files, then created the .dat file.
Once I incorporate the model in to Oolite however their is a section of the ship which is different to the wings model I.e. a sloped section of hull at one side of the ship is vertical in Oolite whereas in wings it is sloping.
Has anyone had this problem and if so haver you been able to solve it ?
it happens beause of the exporter's need to triangulate shit before exporting it it just doesnt accept some types of surfaces, smoothing normaly solves it but if you want to low poly everything you should design everything with that in mind
When exporting OBJ files from Wings 3D you need to select the options by clicking on the highlighted section in this image...
Then you need to make sure that your options match this screen...
EDIT: You will need to reload (import) the object back into Wings 3D to do the UV mapping.
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Re: Problem with some models imported from Wings 3D in to Oo
Thanks Tricky I'll double check tomorrow but I am 99% sure that I selected all the settings you have kindly posted screenshots of.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
- Tricky
- ---- E L I T E ----
- Posts: 821
- Joined: Sun May 13, 2012 11:12 pm
- Location: Bradford, UK. (Anarchic)
Re: Problem with some models imported from Wings 3D in to Oo
kk. Wasn't a dig at you Shipbuilder.Shipbuilder wrote:Thanks Tricky I'll double check tomorrow but I am 99% sure that I selected all the settings you have kindly posted screenshots of.
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Re: Problem with some models imported from Wings 3D in to Oo
No problems Tricky.Tricky wrote:kk. Wasn't a dig at you Shipbuilder.Shipbuilder wrote:Thanks Tricky I'll double check tomorrow but I am 99% sure that I selected all the settings you have kindly posted screenshots of.
OK I have managed to overcome this problem so will post the solution so that anyone else who experiences this issue can correct their model.
1) Make a backup copy of your Wings 3D file (Just in case you do something wrong).
2) Open the Wings 3D file and select the faces around the area which is not forming correctly.
3) Right click and select Tesselate then select Triangulate from the drop down menu.
4) Select file > export > wavefront (Ensure that the options in Tricky’s screenshots in the above post are selected).
5) Select save (This will produce the .obj and .mtl files which you can then use to produce the .dat file as usual.
This should correct the problem.
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Re: Problem with some models imported from Wings 3D in to Oo
I always Tesselate -> Triangulate my models in Wings3D before UV mapping. That way I can .Turn. any awry looking edges to my liking (automated triangulation sometimes makes dents where there should be none or breaks surface curvature - no matter if it is done while modelling or when exporting to .obj) and check easily how the texture I'm making will look like. Sure, it might mean more work with getting UV mapping done right, but defining some temporary hard edges help tremendously there.
...and keep it under lightspeed!
Friendliest Meteor Police that side of Riedquat
Far Arm ships
Z-ships
Baakili Far Trader
Tin of SPAM
Friendliest Meteor Police that side of Riedquat
Far Arm ships
Z-ships
Baakili Far Trader
Tin of SPAM
- Tricky
- ---- E L I T E ----
- Posts: 821
- Joined: Sun May 13, 2012 11:12 pm
- Location: Bradford, UK. (Anarchic)
Re: Problem with some models imported from Wings 3D in to Oo
ALWAYS.Shipbuilder wrote:OK I have managed to overcome this problem so will post the solution so that anyone else who experiences this issue can correct their model.
1) Make a backup copy of your Wings 3D file (Just in case you do something wrong).
What I do is select faces on the top, click on a face then select all (CTRL-A) and then right click and then select tessalate and triangulate.Shipbuilder wrote:2) Open the Wings 3D file and select the faces around the area which is not forming correctly.
3) Right click and select Tesselate then select Triangulate from the drop down menu.
4) Select file > export > wavefront (Ensure that the options in Tricky’s screenshots in the above post are selected).
5) Select save (This will produce the .obj and .mtl files which you can then use to produce the .dat file as usual.
This should correct the problem.