Hi thomas; Just one last note for the evening.
when I switched your z to y, it was for clarity's sake for the email. I'd assumed you would adapt the new code with your current orientation as I'd made other changes as you'd asked. The formulae are right but I was using x and y to show what I was doing in a standard way. -Only for clarity in my note. :) So sorry I obviously didn't make that clear enough. There's no reason, even in a worst case scenario that you should ever need to rewrite that much code for changes like these. I'll need to check back in with DX, but last I checked, you could essentially flip your world around any way you wanted it simply by changing two coordinates. -And, as I'd just mentioned, even if you change back y to z as I thought you would, the other changes I made will give you proper calculations. -but at the end of the day, if your engine is already essentially doing what you need then why change it at all? -this was, afterall, just a lil' experiment, yes? -I'm sure not asking you to change your style. :) I'm just personally working in one of the paradigms we were chatting about and having success with it. -But this is your baby after all. -If I can make suggestions that help, then great! If not, then don't use them. Yes? :) Anyway, Talk witcha on the 'morrow and have a terrific night!… Smiles, Cara :) On Dec 11, 2010, at 8:28 PM, Thomas Ward wrote: HI Cara, Why did you change z to y? As I under stand it x runs east/west, z runs north/south, and y is up/down. This is how DirectX operates and principle why I wrote my engine the way I did. If I am going to pass a vector to DirectX's buffer3d object I have to provide the coordinates as x east/west, y up/down, and z as north/south. Any other way would absolutely hose the engine big time. Yeah, I could change to have say z as up/down and y as north/south, but were talking one massive rewrite to do it. As MOTA is nearly done practically rewriting the engine and game right now would be suicide. I tried out the code changes you suggested and it made a huge mess of things. The G3D engine no longer works properly at all. The GetDirection() function no longer returns the proper angle to the object/target. Instead of returning 0 degrees, do north,it returns some other value. I'm sorry to say this, I know you are trying to help, but applying those changes has massively messed up the operation of the engine. Everything, and I do mean everything, is broken. Nothing works right, and in order to resolve the problem I'm going to have to rewrite several hundred lines of code in the engine and in games like MOTA to implement these suggestions. So the big question is how necessary are these changes in reality? Is it worth it, my time and energy, spending six weeks or so rewriting the engine from the ground up to make these changes making 0 do east, or whatever your code does, and switching z and y around? Is there any real compelling reason to do it your way over the methodology I'm already using besides the fact my code apparently is non-standard? Thanks. On 12/11/10, Cara Quinn <caraqu...@draconisentertainment.com> wrote: > Hi Thomas; > > I'll comment and adapt your code below. > > These methods should all return normal vectors anyway, so you shouldn't need > to normalize. I just did a few tweaks as that's all they seem to need. > changed z to y for consistency. Let me know how it goes, K?… > > Smiles, > > Cara :) --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.