Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Help With Interpolation  (Read 882 times)

0 Members and 1 Guest are viewing this topic.

DGYLLEANN

  • Newbie
  • *
  • Posts: 4
    • View Profile
Help With Interpolation
« on: August 31, 2022, 04:25:21 am »
Hiya Guys
I am trying to work on a 2D perlin noise generation algorithm, but thought I better make a 1D one first so I can understand it better. However, I am completely stuck on linear interpolation between my points. I am using a vector of SFML vertex arrays to store each pixel and its coordinants, but I don't know how to draw lines between them manually. I don't want to set a primitive type, as these lines are really jagged and pointy. Looking to implement either cubic or cosine linear interpolation. I am fine with swapping out of a vertex array, but I just don't know how to draw custom, bendy lines directly to the screen.

Basically just looking for help on how to draw connecting lines  that don't go straight there between the two points.



 

DGYLLEANN

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Help With Interpolation
« Reply #1 on: August 31, 2022, 11:31:24 pm »
Figured it out, basically just got a function that gave me pixel values and rendered them as a single vertex along the coordinates returned by the function. However still asking for more help in my new post :)

 

anything