Problems to export

RedZaC

18-10-2006 14:13:54

Hi Guys,

This is my first post in this forum :) the first what i want to say is: sry for my bad english skills ;)


so i have some problems and i do not found an answer with the search function.
i made the tutorial of normal mapping which is older than the ofusion version i use so i got some problems which i got answered with the search button.

i want to make a house with more than one texture so i need multi texturing and i do not have any idea how it works. i hope you can give me some tips or a tutorial or something else.

the second problem is, if i want to export the material i made with the tutorial it doesn t work it says me 0 materials exported but i can see the material in the ogre viewport (but without the normal map (this is the next problem)


i hope someone can translate my mistake of a text ;) and i hope someone can help me. i am from germany if here are someone who knows the answers or who can help me pls write it or help me in icq.


i think if i got more problems i will write them here ^^.

Lioric

18-10-2006 21:58:22

Multitexture depends on what you need to do, if what you need is to have different textures for different parts of the same object, it would be better if you merge all the textures in a single (bigger) image, called "texture atlas" and map each part with the "UVW Map" modifier to assign the correct texture part

Or you can use the oFusion Material, and assign to each Texture Unit from a pass to the map channel of the object part

Or you can use Multi/Sub-object material to assign different materials to each material ID of the same object

About the material issue, is the "Export Materials" option selected? is the material file created? if so, is the object's material inside this file?

There are several threads in this forum with information on the normal map material

RedZaC

19-10-2006 11:57:28



Or you can use Multi/Sub-object material to assign different materials to each material ID of the same object



So this is what i want to do but how can i a material with a normal map? it doesn t work :(

yes i activated to make a material and the tool creats a material but it shows like this:

material Haus2/ofusion2
{
technique
{
pass
{
ambient 0.7 0.7 0.7 1
diffuse 0.7 0.7 0.7 1
specular 0.9 0.9 0.9 1 20

vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
{
param_named worldViewProj float16


i have the problem that i can only export a material with a normal map but without a diffuse(texture) but i do not know if it work or i can export a normal texture without a normal map but a material with a texture and a normal map doesn t work

and i do not have any idea how it works with the multi/sub- textur modifer (i know how it works with max only but not how i use it that i am able to export it)

i hope you can help me :(

maybe it could help than i upload my files ? (than i need only a place where i can upload them)

Lioric

19-10-2006 17:27:23

Im not sure of what you mean

Images are "TextureUnits" of a Pass, being them normal maps or diffuse textures or whatever image is in there, there is no difference, the fragment program (if any) is what uses them as normal maps or samplers for whatever the shader wants

It would be good if you post your scene file