🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Untitled

posted in DruinkJournal
Published August 25, 2006
Advertisement
Hmm... I thought the model looked a little odd. After I added rotation, I found it looked 2D, as it it had been flattened onto a plane. After about 2 hours of investigation (an hour on the train and this hour for lunch), I came across this little gem of code:
inline Vector3 operator*(const Vector3& a, float f){   return Vector3(a.x*f, a.y*f, a.x*f);}

I think I need to take a break...

Also, for anyone who has the Quake II source code handy - how does it decide where the base of a model is? The Gladiator model has a base of around -25.0f on Y, but I suspect that's arbitrary. I'll check the source when I get home (I have it on my main PC).
Previous Entry Untitled
Next Entry Untitled
0 likes 2 comments

Comments

noaktree
That vector does look a little flat. Let me guess, you were like checking matrix transforms for two hours. [smile]
August 25, 2006 10:16 AM
Evil Steve
Quote: Original post by noaktree
That vector does look a little flat. Let me guess, you were like checking matrix transforms for two hours. [smile]
An hour and a half. The other half hour was spent checking all the vertices, the vertex buffer, the index buffer andadding a ground plane in...
August 25, 2006 01:30 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement