NextPreviousHomeinfo for texture in 3d model

Franco Aversa | 6 years ago | 15 comments | 1,820 views

I tried to create a simple 3d model in blender.
I added a texture, it is a jpg image.
But I don't understand one thing, when I export to X file
It should also generate the texture or I just have to put
the jpg image in the same directory ?

The image does not come with texture and I do not understand what's wrong.
I have selected in Blender "export reference attive immage as texture"
but it does not work.
What am I doing wrong ?

I know that I have to suddivide the model with CTRL U ( but is the same with only one single piece )

Thanks to all




Share this on FacebookShare this on X

When you place the .JPG file next to the .X file, BluffTitler will have no trouble finding it.

michiel, 6 years ago


I open the file x with and editor and I see that there isn't any reference to materials,
instead in your model there is...Why does blender not mark materials on the file?

Your file:
Material {
1.000000;1.000000;1.000000;0.000000;;
0.000000;
1.000000;1.000000;1.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"avatar.png";
}

Franco Aversa, 6 years ago


The avatar model has been created with 3ds Max.

Maybe someone in the Blender forum knows how to do it.

michiel, 6 years ago


this is an example of one cube with texture...but the texture where is ?

xof 0303txt 0032

Frame Root {
FrameTransformMatrix {
1.000000, 0.000000, 0.000000, 0.000000,
0.000000,-0.000000, 1.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000;;
}
Frame Cube {
FrameTransformMatrix {
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000;;
}
Mesh { // Cube mesh
8;
-1.000000;-1.000000;-1.000000;,
-1.000000;-1.000000; 1.000000;,
-1.000000; 1.000000;-1.000000;,
-1.000000; 1.000000; 1.000000;,
1.000000;-1.000000;-1.000000;,
1.000000;-1.000000; 1.000000;,
1.000000; 1.000000;-1.000000;,
1.000000; 1.000000; 1.000000;;
6;
4;2,3,1,0;,
4;6,7,3,2;,
4;4,5,7,6;,
4;0,1,5,4;,
4;0,4,6,2;,
4;5,1,3,7;;
MeshNormals { // Cube normals
6;
1.000000; 0.000000;-0.000000;,
-0.000000;-1.000000;-0.000000;,
-1.000000; 0.000000;-0.000000;,
-0.000000; 1.000000;-0.000000;,
-0.000000;-0.000000; 1.000000;,
-0.000000; 0.000000;-1.000000;;
6;
4;0,0,0,0;,
4;1,1,1,1;,
4;2,2,2,2;,
4;3,3,3,3;,
4;4,4,4,4;,
4;5,5,5,5;;
} // End of Cube normals
MeshMaterialList { // Cube material list
1;
6;
0,
0,
0,
0,
0,
0;;
Material Material_001 {
0.640000; 0.640000; 0.640000; 1.000000;;
96.078431;
0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;;
}
} // End of Cube material list
} // End of Cube mesh
} // End of Cube
} // End of Root

Franco Aversa, 6 years ago




Maybe something wrong here (export options).

wiki.blender.org...

vincent, 6 years ago


Clearly there's no texture info in the model file.

I advise you to ask for help in the Blender forum.

michiel, 6 years ago




Boh ? It's the same !!
Is it possible that I check the texture wrong?
I put it on the material!

Franco Aversa, 6 years ago


Maybe you can try to paste manually :
TextureFilename {
"banana.jpg";
respecting the number of { and } and ;

then place banana.jpg in the model.x folder

vincent, 6 years ago


For first thank you very much Michiel and Vincent.
I tried to add manually the code, but dosen't work !! :-(
I would have liked to use textures, maybe it's better to control Blender because it is not BluffTitler's fault.
I do not understand why its internal Blender addon and doesn't work.
Vincent did you have a .x file to send me with Blender so I check the difference, please ?

Franco Aversa, 6 years ago


@Franco

So you got a model with an texture and the texture is correctly mapped in Blender but doesn't export.

Have you tried to add model in Blufftitler and add texture with F9 to model.
You can use Effects\Special\UVModifier.cfx to correct the position of the texture.

There are x.models that came with the installer like Bix, Ez, Avatar, Daisy and Grass

Good luck,

komies, 6 years ago


Now I succeed, in BluffTitler takes the texture,
But if I do not have any effect I see the black object
If instead I put "reflextionmap" you see that there is texture
But of course it is not right!

I use effect: \V11_UVMapper_Text.cfx Is the only one I can use to map the texture well


Material Material_001 {
0.640000; 0.640000; 0.640000; 1.000000;;
96.078431;
0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;;
TextureFilename {"legno2.png";}
}
} // End of Sphere material list
} // End of Sphere mesh
} // End of Sphere
} // End of Root

Franco Aversa, 6 years ago




Franco here an example (sorry the file is a little big)
Hope that can help you

Note that the name of the file 'sculpt' appears in sculptmaterial / end of sculpt material.
i suppose list material can be named or numbered as in your example
maybe the bitdepth of png is important
in my previous post in the link to .x export module there is an email to contact the creator of the Python script, sur he can help you.
you can found infos here too:
msdn.microsoft.com...(v=vs.85).aspx
DONWNLOAD HERE EXAMPLE:

vv.matalot.fr...

vincent, 6 years ago




Thank you so much Vincent
Finally I understand...
Depended on the lights and how I created the texture.
The base color of the object must be white or gray and
then apply the texture. Otherwise the object becomes black and can not be seen.
It's very important work in "ambient occlusion".
Maybe I'm not good at Blender (I'm still at the beginning)

Franco Aversa, 6 years ago


I'm happy for you Franco and thank you for the informations, personaly i have only used Blender to convert never to create so i had no this problem. Blender is a powerful program but not easy to use because there are lot of menus and options. I suppose it needs time to well use it.

vincent, 6 years ago


Yes, it's quite difficult, I made some animation and models
but for BluffTitler I use Blender to convert 3d models too !

Thanks again !

Franco Aversa, 6 years ago


Comment to this article

You must be logged in before you can comment to this article. Login | Register

More by Franco Aversa

About Franco Aversa

I'm a videomaker since 1986, now I work at my company.

327 articles 421,998 views

Contact Franco Aversa by using the comment form on this page or at facebook.com/francoaversavideomaker/