Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 23 August 2012 - 04:39 PM
Posted 23 August 2012 - 05:07 PM
Edited by Radikalizm, 23 August 2012 - 05:15 PM.
I gets all your texture budgets!
Posted 23 August 2012 - 08:01 PM
Posted 23 August 2012 - 10:13 PM
This equation cannot be rearranged in terms of height with elementary algebra, because it has the both inside and outside a transcendental function (here ). You can write it out as a closed-form recursive process or a recurrence and then approximate it numerically (or directly approximate it via Newton-Raphson with two variables) - wouldn't know how to do it right then though, sorry.L = 0.5√16h²+w² + [w²/(8h)][Ln(4h + √16h²+w²) - Ln(w)]
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”
Posted 24 August 2012 - 06:13 AM
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”
Posted 24 August 2012 - 06:04 PM
input: base length W, required length L. output: approximate correct H such that Length(W, H) = L 1. Let lo = 0, hi = 4h + c (twice the limit form plus some constant, try various c) 2. Compute H_mid = (lo + hi) / 2 3. Compute L' = Length(W, H_mid) 4. If L' < L, let lo = H_mid and goto 2 5. If L' > L, let hi = H_mid and goto 2 6. If L' is close to L, return H_mid
Edited by Bacterius, 24 August 2012 - 11:24 PM.
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”
Posted 24 August 2012 - 10:50 PM
Posted 28 August 2012 - 08:21 AM
Just out of interest, how is the parabola being used? If you're talking about the motion of a projectile under the force of gravity, there are other equations you can use that are more suited to the task.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.