https://linen.dev logo
Join Discord
Powered by
# lime
  • h

    hallowed-ocean-84954

    05/06/2023, 2:53 PM
    sin(timeValue / 12.0) / 2.0 + 0.5
  • h

    hallowed-ocean-84954

    05/06/2023, 2:54 PM
    the one inside the brackets is reducing the x axis value (time) - slowing time kinda. The one outside is working on the y-axis - reducing the range of the value from -1 - 1 to -0.5 to 0.5
  • h

    hallowed-ocean-84954

    05/06/2023, 2:54 PM
    sorry - gotta run - have fun
  • t

    tall-teacher-57409

    05/06/2023, 2:56 PM
    ah yeah alr, and sorry I think I misinterpreted what I mean, the triangle sorta keeps flickering so fast, but the color changes normally, but bye anyways will see that later, thanks for the help 👋
  • t

    tall-teacher-57409

    05/06/2023, 4:32 PM
    I think I figured it out, so these are the values of
    timeValue
    each frame, and as you see there's a sorta huge leap from 0.2 (for example) to 5145 which makes it feel snappy and not smooth, so a problem with lime.System.getTime

    https://cdn.discordapp.com/attachments/769686258049351722/1104445624809689098/image.pngâ–¾

  • b

    bulky-insurance-39338

    05/06/2023, 4:38 PM
    why not using haxes TimeStamp ?
  • b

    bulky-insurance-39338

    05/06/2023, 4:38 PM
    (or count your own timer up by adding a delta to it inside limes onRender or onUpdate eventhandlers)
  • t

    tall-teacher-57409

    05/06/2023, 4:41 PM
    lol i just used it and worked, and was going to come and say that
  • b

    bulky-insurance-39338

    05/06/2023, 4:42 PM
    np ;)
  • t

    tall-teacher-57409

    05/06/2023, 4:42 PM
    that triangle is so beautiful
  • t

    tall-teacher-57409

    05/06/2023, 4:42 PM
    (for a newbie)
  • t

    tall-teacher-57409

    05/06/2023, 4:42 PM
    like me
  • b

    bulky-insurance-39338

    05/06/2023, 4:43 PM
    i do calculate that timer-value for the opengl-uniform like this:
  • b

    bulky-insurance-39338

    05/06/2023, 4:45 PM
    (so from haxe i can easy start/stop it :)
  • t

    tall-teacher-57409

    05/06/2023, 5:01 PM
    ohh I see
  • t

    tall-teacher-57409

    05/06/2023, 5:32 PM
    ok we're finished with this chapter

    https://cdn.discordapp.com/attachments/769686258049351722/1104460572432535653/image.pngâ–¾

  • b

    bulky-insurance-39338

    05/06/2023, 5:40 PM
    pls put samples into git-repo somewhere for us other pure haxelime-gl-coders (^_^)
  • a

    able-action-74275

    05/06/2023, 6:07 PM
    Great idea
  • t

    tall-teacher-57409

    05/06/2023, 6:07 PM
    pushing it rn
  • h

    hallowed-ocean-84954

    05/06/2023, 6:10 PM
    Cool
  • t

    tall-teacher-57409

    05/06/2023, 6:21 PM
    here is it, I'll push my solutions to each chapter as soon as I finish it https://github.com/bwkam/learnopengl-haxelime
  • a

    able-action-74275

    05/06/2023, 6:26 PM
    awesome
  • h

    hallowed-ocean-84954

    05/06/2023, 6:34 PM
    Nice and thank you for the credit - not required but appreciated. In case it's of interest, I started a project in the #1019922106370232360 for my run through - you might want to do that for yours so people can follow you. It's really great to see someone else do this I have to say. I think DeVries book is fantastic.
  • t

    tall-teacher-57409

    05/06/2023, 6:37 PM
    npp, alr I'll do rn. It is indeed amazing so far
  • b

    bulky-insurance-39338

    05/07/2023, 2:47 AM

    https://www.youtube.com/watch?v=dAc8UvpKc4sâ–¾

  • b

    bulky-insurance-39338

    05/07/2023, 2:58 AM

    https://www.youtube.com/watch?v=dCQ5Fv1rPaMâ–¾

  • b

    bulky-insurance-39338

    05/07/2023, 4:05 AM
    @able-action-74275

    https://www.youtube.com/watch?v=8gGj3r-ljyYâ–¾

  • b

    bulky-insurance-39338

    05/07/2023, 4:06 AM
    hope SDL3 also will find place sometimes .)=
  • b

    bulky-insurance-39338

    05/07/2023, 4:08 AM

    https://www.youtube.com/watch?v=-ot7eDwdpeMâ–¾

  • b

    bulky-insurance-39338

    05/07/2023, 4:10 AM
    into
    lime
1...107108109...138Latest