[fixed] Model rotation bug

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

[fixed] Model rotation bug

Post by Nash »

Okay first up, download this. It has two models in here made by me.

[link removed, see below]

Now either ]summon a RebirthSafe or RebirthFlashlight (these are some items from my mod)

Or you can place things 20000 and 20001 in your map editor.

So what's the problem then?

You see... the angles seem to be reversed. For example, placing the thing facing south in your map editor will only make it face north in-game. If I set it to west, it'll face east in-game; north-west in editor, south-east in-game. Etc.

At first I thought I can get around it by making some angle adjustments in the 3-d model editor and see if it changes things. Well it doesn't change the fact that the angles are still reversed (so while it make LOOK correct initially, as the things turn around, it'll still have that reversed behaviour as I described earlier)

Your'e going on a vacation right Graf? I imagine this is an easy one-liner fix; if you're releasing a new version for Torm's Stronghold, can you include this fix? I can't work if the models don't appear as intended in-game...
Last edited by Nash on Tue May 16, 2006 9:57, edited 1 time in total.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

So far the only models I could test orientation with are the ones in Silent Steel and they are properly positioned. And unless you can give me verifiable proof that this is wrong I won't change it.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

How else can I prove it? Have you even tried downloading the wad and test it for yourself?

"The problem?"

Rotation is reversed.

"What makes you say that?"

When I place the thing facing south in DB, it faces north in-game.

"Can't you just fix that in the model editor?"

Okay, fair enough. I rotate the model 180 degrees and tried again. Okay, looks good. It's not facing south as intended.

BUT NOW - if I change the angle to SOUTH-WEST in DB... GUESS WHAT? It appears SOUTH-EAST!

Try it.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Okay I compiled a test wad that does everything for you - all you do is run the map and see for yourself.

Try play around with the flashlight's angles in your map editor. You'll clearly see what I mean.

Just drag the ZIP into GZDoom.exe to run it.

http://nash.wanzafran.com/2modelsmap.zip

And BTW, here's a screenshot of my model in my model editor. The purple line is the Z axis. I don't think I'm making any mistakes in the orientation here.

http://nash.wanzafran.com/milkshapeflashlight.jpg
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

You can show me all you want. The fact is, that Silent Steel's models are oriented correctly. So either you are wrong or Vavoom is wrong. I need conclusive proof which one is the correct orientation and as long as I don't have that I judge in Vavoom's favor. After all that engine has been supporting models for some time.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

So are you implying that I am wrong?

Did I not tell you that, even though after ATTEMPTING (several times) to fix the model in my model editor, the angles still come out wrong?

I've tried everything; I tried rotating the model 180, I even tried a combination of rotate and flip (or mirror or whatever you want to call it)

It does not change the fact that angle south in DB != angle south in-game.

So what gives?

Come to think of it, there is nothing wrong with my model as-is - the texture comes out correctly in-game (I memorize a certain pattern that looks kind of like a semi-colon (;) to the right of the flashlight bulb).

I am not trying to be stubborn and insist I am correct. I have ABSOLUTELY NO PROBLEM AT ALL making adjustments to my model (as I have stated and did many times). But it's angle rotations are inversed!

If you can suggest me a solution, then by all means please do; for I've already spent two sleepless nights pulling my hair out trying to figure out how to get around it.

I can quickly do a Y-axis rotate at 180 degrees to overcome the initial angle problem. But as the actor moves around, you can clearly see what's wrong.

You know how this will look like, right? Let's say you're facing north and there's a monster in front of you but towards the left edge of the screen. As he walks to you, the model would be appear to face SOUTH-WEST, when it should really face SOUTH-EAST as he is walking to you.

See what I mean?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Ok, you were right. But it might have helped to write a more coherent bug report. I really had problems deciphering what exactly was wrong for you.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Examine these files.

http://nash.wanzafran.com/modeltest.zip

The model is oriented NORMALLY.

http://nash.wanzafran.com/modeltest2.zip

I rotated the model around. It SEEMS to be correct at first, but wake the monster up and observe how silly it looks as it started to move and aim at you.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Sorry, I thought I made it clear enough. I honestly tried my best to detail it as much as possible.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

It wasn't the content, it was how it was presented. ;)
Locked

Return to “Closed Bugs”