niacdoial / blemd

BMD importer for blender (BDL format also partially supported)
GNU General Public License v3.0
32 stars 13 forks source link

Texture coordinate offsets are off #52

Closed edbefee3-3888-462a-9411-741b7e9eb54e closed 2 years ago

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

When loading many different things, mainly from Super Mario galaxy you'd probably notice the textures are mapped completely wrong.

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

also, you should use multiply-add math nodes rather than just multiply and add separately

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

nvm it's not the transforms, but the "mirroring", for it i'd say just use a pingpong node for each axis with a threshold of 1

niacdoial commented 2 years ago

er… you might want to tick the "use complete materials" option when importing, the results are much better. the reason why it's not there by default is that it used to not export at all in fbx files and the like, although I didn't try this with more recent blender versions. For the multiply-add node, it's much newer than my project. Actually, it's not even there in blender 2.83, which I want to keep compatibility for. Also, I don't think does blender have one of those "pingpong nodes".

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

i meant a ping-pong math node

niacdoial commented 2 years ago

Ah, the ping-pong operation of the Vector Math node. I see. Sadly, it also doesn't exist in blender 2.83.

niacdoial commented 2 years ago

oh wait no it's regular Math, not vector math. I'll look into this

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

53

niacdoial commented 2 years ago

[PR #53 has been merged] does this mean that this issue can be closed ?

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

Yup