jeromeetienne / tquery

extension system for three.js
http://jeromeetienne.github.io/tquery/
MIT License
651 stars 120 forks source link

MD2 Character Skin Issues #228

Closed jdiegod closed 12 years ago

jdiegod commented 12 years ago

Hi everyone recently i converted a md2 character to JSON but for some reason doesnt matter which md2 character i convert the skin of the character doesnt load correctly, any ideas for this issue?

jeromeetienne commented 12 years ago

is the geometry ok ?

jdiegod commented 12 years ago

The wireframe looks ok, the only md2 characters it displays ok is the ratamahatta.js the one that comes with the examples. If you convert the same ratamahatta.md2 (the one that comes wih the examples) with the md2 to JSON converter the skin looks different. I've tried to convert the md2 character with the latest versions of Opera, Chrome and Firefox.

jeromeetienne commented 12 years ago

so my guess is that you hit the 'y mirror' in the texture mapping

the way Y are handled in r50 and r51 have been inverted

the converter has been done before. so, under the assumption that my guess is correct,you need to port the converter

jdiegod commented 12 years ago

Sorry but I didn't understand what you mean with "you need to port the converter"...

jeromeetienne commented 12 years ago

make it such that the UV are inverted.

"texture coordinates aren't anymore flipped in the geometries, instead textures have flipY property (true by default); all models need to be " search this in https://github.com/mrdoob/three.js/wiki/Migration for details

On Wed, Sep 26, 2012 at 6:12 AM, jdiegod notifications@github.com wrote:

Sorry but I didn't understand what you mean with "you need to port the converter"...

— Reply to this email directly or view it on GitHubhttps://github.com/jeromeetienne/tquery/issues/228#issuecomment-8878473.

jdiegod commented 12 years ago

I downloaded the r49 and it works ok! Thanks for the tip

jeromeetienne commented 12 years ago

on the loader :)

jeromeetienne commented 12 years ago

Pass on irc and we will chat