Jump to content
Sign in to follow this  
  • entries
    557
  • comments
    1237
  • views
    423443

Untitled

Sign in to follow this  
Evil Steve

73 views

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).
Sign in to follow this  


2 Comments


Recommended Comments

That vector does look a little flat. Let me guess, you were like checking matrix transforms for two hours. [smile]

Share this comment


Link to comment
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...

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!