Tuesday, February 26, 2008
"Resolution of the Curve"
I wanted to see how changing the xDelta would affect the smoothness of the curve. Although I don't know exactly how the levels will be generated, I'm certain that I will have to strike some balance between preserving the framerate of the game and how smooth the track will appear to the user. Obviously the more points used to define a curve, the smoother it will be. But with a higher "resolution" comes more data to update during gameplay. So I created this version of the previous example that shows the segments and allows you to input the xDelta. By changing the value in the bottom left I could begin to see what xDelta makes a smooth curve and what xDelta begins to look less like a curve and more like a bunch of line segments. You will notice that there's very little gained by going from 20 down to 10, but we have doubled the amount of data used to store this particular curve. This is good information to have. I'm still in the very high level planning phase, but it's important to at least have this type of thing in the back of my mind as I'm designing the game. NOTE: All of the nodes in this example are draggable.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment