Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

bi-quadratic interpolation?

4: Adsense

Old topic!

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.


  • You cannot reply to this topic
2 replies to this topic

#1 thecoast47   Members   

255
Like
0Likes
Like

Posted 06 April 2013 - 07:39 PM

Recently i've been messing around with interpolation methods on scalar fields because im trying to make the scalar field of discrete points, continuous.

I think I understand how bi-linear interpolation works. To my knowledge,In order to interpolate a value(using bilinear interpolation) you have to do three "lerps" using four discrete neighbor points on the field. But when it comes to higher order interpolation methods, I'm lost. I know how to use quadratic interpolation  to interpolate a value using 3 discrete points on a function. How would I use quadratic interpolation on a scalar field?

 



#2 C0lumbo   Members   

4366
Like
2Likes
Like

Posted 07 April 2013 - 04:10 AM

I suspect that cubic interpolation rather than quadratic interpolation is the correct tool for this job. This website (http://freespace.virgin.net/hugo.elias/models/m_perlin.htm) describes 1D cubic interpolation in the function Cubic_Interpolate.

 

To extend this to 2D, I think you would need to do 4 cubic interpolations on the horizontal, then feed in those 4 results for one final cubic interpolation for the vertical.



#3 StephanieRct   Members   

168
Like
1Likes
Like

Posted 11 April 2013 - 01:09 PM

You might want to take a look at the generalization of Bézier Curves : http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Generalization

You can do interpolation to any degree.


@StephanieRct

Website | IndieDb | Twitter | Youtube

 

 

|o|  (-o-)   |o|
       /  /

 





Old topic!

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.