EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   OpenEQ::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=609)
-   -   Placeable object help please. (https://www.eqemulator.org/forums/showthread.php?t=17121)

jbb 11-28-2004 06:50 AM

Unless I'm mistaken you're drawing the main zone object in a different way from the placable objects and not taking into account that the main zone object may also be rotated. I seem to have a rotation on my main zone object too in my renderer, maybe that's the difference unless I've missed something in your code.

I'll try to "hack" in a quick additional rotation to undo the rotation of the main object to confirm that theory.

jbb 11-28-2004 07:01 AM

Er, no sorry. My renderer also ignores the rotation on the main object too.

jbb 11-28-2004 07:35 AM

I'm well confused now.

The good news is that I've stepped through your code and my code with a breakpoint on the code which draws each object and the (x, y, z) and (rx, ry, rz) is identical in every case. You're trying to draw *exactly* the same thing right down to the low level drawing code.

The bad news is that it looks right on mine and wrong on yours still.

The only thing I can think of is that opengl has a right handed coordinate system and direct 3d a left handed (by default). Maybe it's something to do with that.

My brain hurts now so I'm taking a break.

daeken_bb 11-28-2004 07:38 AM

Quote:

Originally Posted by jbb
I'm well confused now.

The good news is that I've stepped through your code and my code with a breakpoint on the code which draws each object and the (x, y, z) and (rx, ry, rz) is identical in every case. You're trying to draw *exactly* the same thing right down to the low level drawing code.

The bad news is that it looks right on mine and wrong on yours still.

The only thing I can think of is that opengl has a right handed coordinate system and direct 3d a left handed (by default). Maybe it's something to do with that.

My brain hurts now so I'm taking a break.

Well, at least we now know that there's nothing completely off-the-wall happening here :)

Thanks for giving it a shot and giving me some confirmation that I'm not doing something horrendously stupid ;)

I'll look into a bit more later today, but right now I'm trying to finish frustum culling... it's not cooperating lol

jbb 11-28-2004 10:38 AM

Will look at this again when I've had some more sleep.
I must be missing something obvious.

daeken_bb 11-28-2004 10:53 AM

Quote:

Originally Posted by jbb
Will look at this again when I've had some more sleep.
I must be missing something obvious.

Thanks for all the help :)
Talking with windcatcher on irc right now about this... m'be we can work it out hehe

jbb 11-28-2004 08:50 PM

I'm not quite so sure about having the same data any more.
One of us is drawing 695 objects and the other 665.
I only compared the first 10 or so and assumed that if they were were same they all were. But maybe not.

jbb 11-29-2004 11:25 AM

any progress? Not had time to look today, hopefull can tomorrow.

daeken_bb 11-29-2004 12:01 PM

Quote:

Originally Posted by jbb
any progress? Not had time to look today, hopefull can tomorrow.

Nope. Windcatcher said that the problem with the placeable object drawing was probably our camera code, so he convinced me to switch over to gluLookAt() and I haven't been able to get our movement code working properly since haha. So I'm probably going to switch back to the old style in a moment, as this is really frustrating as-is :P

jbb 11-29-2004 12:17 PM

That sounds plausable.

daeken_bb 11-29-2004 12:25 PM

Quote:

Originally Posted by jbb
That sounds plausable.

That wasn't the problem. I'm sure of that now (after having seen what it looked like when rendering with gluLookAt), but it was a possibility then. I finally realized that I'm essentially doing what gluLookAt() does hehe.

Anyway, I'm getting closer. Torches appear perfectly now, so that's pretty cool. I think the problem is with the X and Y axes, so I'm looking into that.

jbb 11-30-2004 07:04 AM

Any progress?
I'm going to have another look at this now, so let me know if you solved it :)

daeken_bb 11-30-2004 07:19 AM

Quote:

Originally Posted by jbb
Any progress?
I'm going to have another look at this now, so let me know if you solved it :)

Nope, I've been working on reverse-engineering character models, and making a ton of progress :D


All times are GMT -4. The time now is 07:22 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.