Textures not appearing on all meshes

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Textures not appearing on all meshes

by JKMurray » Sun Aug 10, 2014 17:08

So here's the thing: I created a cow. In Blender, with animations. In Minetest version 0.4.7 it worked like a charm, the cow had skin all over his body.

Now I'm using version 0.4.10 and something weird happens. The cow is exported to a DirectX file (.x), and only the first mesh (the body) has a texture. The head and legs don't have a texture, they're just white. If I change the order in de .x-file, for example: put the block which draws the head first, then the body, the head gets drawn and the other parts are white. When I use that .x-file and open it in version 0.4.7 it still works.

Is there someone who can point me into the right direction? I've been searching all over the place, but I can't get it working.

Thanks in advance,

JKMurray
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Textures not appearing on all meshes

by rubenwardy » Sun Aug 10, 2014 18:40

Try a format other than .x
I suggest b3d.
 

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Re: Textures not appearing on all meshes

by JKMurray » Sun Aug 10, 2014 19:32

Allright. I'll have to get an older version of Blender then. Thanks, I'll try.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: Textures not appearing on all meshes

by Evergreen » Mon Aug 11, 2014 15:17

rubenwardy wrote:Try a format other than .x
I suggest b3d.

How does one export to b3d from blender? (latest version)
 

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Re: Textures not appearing on all meshes

by JKMurray » Mon Aug 11, 2014 15:19

Evergreen wrote:
rubenwardy wrote:Try a format other than .x
I suggest b3d.

How does one export to b3d from blender? (latest version)


Well, there's a problem indeed. I couldn't find an exporter for the latest version. The one I found was for version 2.45, but still was buggy.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Textures not appearing on all meshes

by rubenwardy » Mon Aug 11, 2014 17:01

Have you enabled the plugin?
 

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Re: Textures not appearing on all meshes

by JKMurray » Mon Aug 11, 2014 17:07

rubenwardy wrote:Have you enabled the plugin?


I can't . It doesn't show up in the import/export-list (or any other one).
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: Textures not appearing on all meshes

by Evergreen » Mon Aug 11, 2014 17:46

rubenwardy wrote:Have you enabled the plugin?

What plugin? It doesn't show up in the list of addons.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: Textures not appearing on all meshes

by stu » Mon Aug 11, 2014 18:01

JKMurray wrote:When I use that .x-file and open it in version 0.4.7 it still works.


It sounds like your directx model is exporting multiple materials while you are
only supplying a texture for the first. This would explain why it works in 0.4.7
because multiple material support was not working properly before 0.4.8

You can either fix the model so that it only exports one material or supply the
missing textures in your mod.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
object:set_properties({textures={"texture1.png", "texture2.png"}})
 

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Re: Textures not appearing on all meshes

by JKMurray » Wed Aug 13, 2014 19:27

stu wrote:
JKMurray wrote:When I use that .x-file and open it in version 0.4.7 it still works.


It sounds like your directx model is exporting multiple materials while you are
only supplying a texture for the first. This would explain why it works in 0.4.7
because multiple material support was not working properly before 0.4.8

You can either fix the model so that it only exports one material or supply the
missing textures in your mod.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
object:set_properties({textures={"texture1.png", "texture2.png"}})


You sir, gave life back to Clucky and Betsy. Thank you very much!
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

Re: Textures not appearing on all meshes

by stu » Wed Aug 13, 2014 20:39

JKMurray wrote:You sir, gave life back to Clucky and Betsy. Thank you very much!


I am very glad to hear that, after all it was me that got those fixes pushed.
However, if you are planning on releasing Clucky and Betsy as a mod then the suggestion to convert
to .b3d was a good one as you'll get a much smaller filesize. On the other hand, if this is purely
for your own singleplayer game then there is very little to gain.

Evergreen wrote:
rubenwardy wrote:Have you enabled the plugin?

What plugin? It doesn't show up in the list of addons.


Search for the Gandalf b3d exporter, I think that is what I am using for Blender 2.71
 

User avatar
JKMurray
Member
 
Posts: 31
Joined: Sat Aug 24, 2013 21:20

Re: Textures not appearing on all meshes

by JKMurray » Wed Aug 13, 2014 20:45

stu wrote:I am very glad to hear that, after all it was me that got those fixes pushed.
However, if you are planning on releasing Clucky and Betsy as a mod then the suggestion to convert
to .b3d was a good one as you'll get a much smaller filesize. On the other hand, if this is purely
for your own singleplayer game then there is very little to gain.


I've been looking into that. I'll try the exporter you suggested.

By the way, here are the animals up and running http://youtu.be/_wIIPWlXH5M.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron