textures not applying corectly

jchmack

22-05-2007 06:43:11

I have a scene in 3ds and it looks fine in both the 3ds viewport as well as the oFusion viewport. But when i export it... not all the textures are applied to the level.

I will go through my creation process because it differs from the tutorials on the site.
My creation process is pretty simple:

1) model with simple shapes (im very inexperienced in 3ds)
2) make my textures
2a) I make my materials by creating a new oFusion material
2b) then just using the max viewport/render material then i hit evaluate
3) i use a map scaler binding modifier to line up the textures
4) i combine all my simple shapes by
4b) converting all to a editable poly
4c) use list attact to attach all the objects into one poly
5) export to .mesh file

Like i said, the scene looks fine in both the both the 3ds viewport as well as the oFusion viewport.

Why doesn't this export properly?

I'm pretty sure that im using the latest oFusion.

Thank's to all who help. And a BIG thanks to Lioric for this great tool :D

edit:
Some Notes:
1) The only texture that applies properly is the base object that i attach all the other objects to.

2) I get very bad frame rates with this un-textured mesh. I would figure that ogre would get better frame rates if it doesn't have to texture everything.

I believe that these steps might be what is messing this up:

2b) then just using the max viewport/render material then i hit evaluate
i have never used this evaluate feature but it seems to work.

3) i use a map scaler binding modifier to line up the textures
i dont know if oFusion can export this modifier (or any)

4) i combine all my simple shapes by
4b) converting all to a editable poly
4c) use list attach to attach all the objects into one poly
I do this to make one big mesh so i can use it for my physics too. I have used this method to export before, but i belive it was an earlier version.

Lioric

22-05-2007 17:01:01

Could you post a screenshot?

If the objects are correctly displayed in the preview viewport, they should be correctly exported

Post the ogre.log file of your application when loading the scene

jchmack

22-05-2007 21:18:39

i think the problem is:
15:17:06: Error in material Material_#203/Wall at line 35 of Catacombs Level.material: Invalid texture option - masonry.brick.adobe.running.jpg.
15:17:06: Error in material Material_#203/Floor at line 77 of Catacombs Level.material: Invalid texture option - rosette.jpg.

but i exported those textures with oFusion and the directory is in Resources.cfg

export log:
== Exporting Objects ==
Exporting Object: Center Room Floor
Object has 1 texture sets
Compiling material Material_#203/Grass
New texture unit GRASS2.JPG
Object has 1 texture sets
Compiling material Material_#203/Wall
New texture unit Masonry.Unit Masonry.Brick.Adobe.Running.jpg
Object has 1 texture sets
Compiling material Material_#203/Trim
New texture unit cement.jpg
Object has 1 texture sets
Compiling material Material_#203/Floor
New texture unit Finishes.Flooring.VCT.Diamond. Rosette.jpg
Mesh: Center Room Floor_mesh.... done

== Exporting Materials ==
Material_#203/Grass
Material_#203/Wall
Material_#203/Trim
Material_#203/Floor
4 material(s) exported to Catacombs Level.material

jchmack

22-05-2007 21:24:07

bah i got it oFusion doesn't like the spaces in the filenames. Thanks for all the help anyways Lioric =).

As a side note maybe you might want to make it when oFusion exports it removes the spaces from the filenames and the .material file. Not a big problem but kinda confused me (and might do others in the future). oFusion is wonderful Keep up the good work =).