SkaceKamen / wot-model-converter

Converts World of Tanks models to wavefront obj format.
34 stars 16 forks source link

2nd UV channel support #9

Closed Pavel3333 closed 4 years ago

Pavel3333 commented 5 years ago

Unfortunately, OBJ format doesn't supports 2+ UV channels, but FBX and etc supports. Any ideas?

atacms commented 4 years ago

I think 2nd uv channel is not commonly used in WG models. only the uvtransform track used it to specify a AO texture. As a modder for WoT you can just ignore the 2nd channel and designate a dedicated AO via the visual file.

my fork supports DAE but doesn't bother with 2nd uv either.

Pavel3333 commented 4 years ago

I'd worked with one of models, that placed on the Tundra map. This model had 2nd channel that used by its shader shaders/std_effects/PBS_tiled_atlas.fx. (Model directory named as "hd_env_UNI_623_RotaryExcavator") So after converting the model 2nd channel losts. After exporting model will be rendered incorrectly in the game.

That's why I had used SkepticalFox blender converter plugin, which can convert a model including a second UV channel

atacms commented 4 years ago

oh you are talking about map objects. yes almost every building uses 2nd uv, just don't consider editing them as the common use case..

anyway since you already found your alternative and I don't need that feature personally, i'll just leave it.

by the way it's not mandatory to use 2nd uv for map objects. there's a switch in visual. if you don't turn it off yet don't provided 2nd uv channel things will happen. in your case it's a excavator so it doesn't really need that stupid tiled_atlas. it's just there for the formality. or they placed tiled_atlas in the 1st channel... in that case yeah you definitely need the 2nd channel export.

normally map objects uses two channels because they want a non-repetitive texture like doors and windows overlay with a repetitve texture like brick. that's not the case for machines like rotary excavator.

atacms commented 4 years ago

it would seems my branch already included 2nd uv export. I forgot it even existed...

Pavel3333 commented 4 years ago

Ok, thanks!

SkaceKamen commented 4 years ago

Wow, do people still use this? :O

Pavel3333 commented 4 years ago

=) sometimes