Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / No diffuse texture for limb

Author
Message
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 8th Sep 2012 10:48 Edited at: 8th Sep 2012 14:38
Hi there,

Got a strange behaviour in one model.
It happens that all limbs texture properly with Texture Limb, but there is a limb that refuses to get textured.

I've revised that the texture exists and that the limb has UV coordinates and normals.
Anyone has suffer this before? Many thanks in advance

[Edit: typo]

New World Order
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location:
Posted: 8th Sep 2012 11:20
Hm, tha's weird... I'm poking around in the dark here, but maybe you want to check the bone structure in your modelling program again.
Don't know how you created you model, but sometimes when I extrude bones in blender, I sometimes accidentally extrude one and then another, where the fist one has "size 0", ie. starts and ends at the same point... That would mess up the numbering of the limbs...
That's probably not it, but the only idea I have right now..
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 8th Sep 2012 14:37
I cannot see any difference between the problematic limb and the others, uh

I edited the mesh in 3d studio. I attached the bad limb to a good one so it restored materials from the good limb. Then detached it again, but behaviour stays the same.

I want to have it detached to better control limb texture and effects.

I set an effect on the limb, and I can see the lightmap, that is applied in other texture stages, but I still cannot see diffuse map

All other limbs shader fine.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 18:17
can you try moving the camera inside the limb and see if the texture is showing on the inside?

I am still very new to Modelling so... just a wild guess...

kind of like creating a negative number sphere...

New World Order
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location:
Posted: 8th Sep 2012 18:24
yeah, same thing came to mind, too.. but if the normals were inverted they would either be culled automatically (ie. you would see the inside, even from the outside), or, if culling was disabled, the texture would also show on the backface and therefore on the outside... What *does* the limb look like anyways? is it jut the standard grey color of an untextured object? Does it react to lighting? Does it get textured when you use the "texture object" command to apply an image to the entire object?
ah, sorry just reread you last post.. hmm.. might sound silly but are you 100% sure there's no typo in the code where you assign the texture (eg. wrong image number or sth)? ^^
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 8th Sep 2012 22:45
Thanks for the support. The problem stil persist.

@MrValentine, thank you but the texture cannot be seen in any side, normals are not inverted as far as I can see, and culling is enabled.

@New World Order, yeah grey color of an untextured object, it gets lighting though.

'Texture object' textures all limbs except these 2 ones (I didn't say it before, but there are two of them acting wrong, out of 27.)

I've also tried:

Texture Limb
Set Limb Normals
Set Object Normals

with no luck.

I've done an isolated test and this is definitively an issue with the mesh. The fact is that these 2 problematic limbs were imported from a different 3ds file, although that shouldn't make any difference...
Stuck

Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 9th Sep 2012 10:39
Finally got it.

I detected that the bad limbs have multi-material assigned in 3ds, while the other limbs have just one material.

I assigned to the bad limbs a single material and it did it.
I guess that the .3ds -> .x conversion messed it up, along with the mesh editing that I did.

Strange but possible, new learnings all along.
Many thanks

New World Order
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location:
Posted: 9th Sep 2012 11:19
good to hear that you got your problem solved =)
Also nice of you to post the solution, I'm sure this will benefit others

Login to post a reply

Server time is: 2026-07-08 03:49:28
Your offset time is: 2026-07-08 03:49:28