The Forum is up for sale: XeNTaX Forum looking for new owner

Megami Tensei - Imagine: model UV's

Post questions about game models here, or help out others!
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Megami Tensei - Imagine: model UV's

Post by finale00 »

I have a question about UV's.
I just exported some models and textures from megami tensei: Imagine using nifscope and found that the textures were all messed up.

I've seen people do UV-flipping so I figured that might be the problem.
Since nifscope exports in obj, I put that through noesis since it conveniently comes with a UV-flipper and imports obj as well.

And it worked!
Here is a comparison between the rendering in nifscope, and the resulting output after flipping the UV's

Rendered

Flipped UV

Except..............it's mirrored lol
I am converting the obj to mqo format, and I wrote a parser for the mqo that allows me to swap UV and vertices, but I'm so far I haven't found the correct combination.

Is there a general way of "mirroring" textures? I'm not sure if that deals with vertices or UV's.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1411 times

Re: Megami Tensei - Imagine: model UV's

Post by chrrox »

to flip it top to bottom multiply v * -1
to flip it left to right multiply u by -1
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Megami Tensei - Imagine: model UV's

Post by finale00 »

Hmm...I just came across this model:

Image

I ran it through noesis by flipping UV and got this

Image

I think the fact that the model itself is mirrored might be the reason why the words are mirrored

So much for problem identification on my part :|
This looks like a vertex issue. How can I mirror the model itself? lol
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Megami Tensei - Imagine: model UV's

Post by finale00 »

lol I got it.

But it was more complicated than I thought.

First I had to negate one of the vertex positions.
Then I had to multiply all v's by -1
Then I had to swap the the y and z vertices
Then I had to swap the UV coords for the y and z vertices to reflect the previous change
jaden
mega-veteran
mega-veteran
Posts: 209
Joined: Sat Feb 05, 2011 1:41 am
Been thanked: 1 time

Re: Megami Tensei - Imagine: model UV's

Post by jaden »

Thanks a lot chrrox
Post Reply