Jump to content
JohnBobSmith

How to create .tex files from blender?

Recommended Posts

Hello again. I am trying to export my model, but it needs a .tex file. I read online that I need to bake a texture for it to work, but my bake menu is non existent, and heres a pic:

 

https://www.dropbox.com/s/5d7qxqroxm26csv/blender_render_menu_missing.png?dl=0

 

So my questions are:

 

1) Why is there no bake menu? Every tutorial on the web has this bake menu.

2) How to create .tex files from blender?

 

I'm using blender 2.69 with cycles render, will upgrade soon if needed.

 

All help appreciated!

Share this post


Link to post

Just import whatever texture format you are using. There is no way to export .tex files. These are generated when you put in .png, .tga, .bmp, etc. files into your project.

Share this post


Link to post

Thats odd, as the blender exporter for Leadwerks has ".mdl, .tex" in its name. Let me try importing the texture file, and post back if it works. Still perplexed about the missing render menu though...

Share this post


Link to post

Oh it does? Well you don't need to worry about that then. It's ok to just not export the texture map and to put it in the Leadwerks project folder with the model in it's original format (whether .png or another format).

Share this post


Link to post

Okay, so I'm encountering a slightly different problem now. I can export my model just fine, but when I load it in leadwerks it has no texture. To fix this, I go to the exported material, give it a diffuse shader and my .tex texture, and then save the material and save the model in leadwerks and then it shows up correctly. Any ideas as to why the material, upon export, doesnt have a shader or the image already present? Its a bit of an anoyance, but I was able to correct it myself.

 

Now to not suck so much at UV mapping...

Share this post


Link to post

What is your workflow? Basically, this is how you should import textures into Leadwerks.

1. Place source image in your project folder, Leadwerks will automatically generate a .mat file.

2. Right click on the newly created .tex file within Leadwerks and click on the Generate Material option.

3. If your model appears white, then open you model in the model viewer and drag the new material onto the model in the viewer.

4. If your model appears black, then use one of the options (probably Angular Threshold under the normals command in the model viewer)

 

Some programs produce .mat files, but these will likely not be compatible with the Leadwerks .mat file format. I would ignore any .mat files that haven't been produced in Leadwerks, since these vary widely across the board.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...