Python OpenGL. Introduction to Shaders

Поділитися
Вставка
  • Опубліковано 13 бер 2022
  • This is an OpenGL Tutorial on creating Effects with Python and writing Shaders in GLSL based on the ModernGL module.
    More Python Projects: • Python Projects
    Fragment shader code:
    gist.github.com/StanislavPetr...
    #coderspace #python #opengl #glsl #moderngl
    #programming #coding #programmer #developer #technology #code

КОМЕНТАРІ • 24

  • @kazeroth1234
    @kazeroth1234 7 місяців тому +1

    This is truly amazing. I love content likes yours Coder Space.
    I'm just following alongside your tutorial, but seeing the results on my end is absolutely mesmermizing!

  • @moddofx
    @moddofx Рік тому +3

    Exactly the type of videos I was looking for. Perfect. Thank you so much for your work.

  • @karim-gb5nx
    @karim-gb5nx 2 роки тому +1

    This is all you need to get started !
    Much appreciated

  • @RoniStudio
    @RoniStudio 2 роки тому +2

    Awesome! Looks like I have a lot to learn from you.

  • @rampage_sl
    @rampage_sl 2 роки тому

    I'm glad I discovered your channel

  • @renepusch8218
    @renepusch8218 Рік тому +2

    Short but very useful video. Nice :)

  • @KumquatChampion
    @KumquatChampion 5 місяців тому

    This is incredibly helpful thank you!

  • @nacnud_
    @nacnud_ 2 роки тому

    Perfectly paced. 👍

  • @nebulae_wanderer
    @nebulae_wanderer 2 роки тому

    been looking for something like that for the past 4h thx

  • @mrdixioner
    @mrdixioner Місяць тому

    I had an error with the geometry module and Python version 3.11.7. I had to write the line to make it work: "from moderngl_window import geometry".
    It also doesn't find shader files for me. What could be the problem?

  • @IgneousGorilla
    @IgneousGorilla 3 місяці тому

    Is there a way to get an explicit excecution loop? Clearly a loop is being executed until the window is closed, and I'd like direct access to it

    • @CoderSpaceChannel
      @CoderSpaceChannel  3 місяці тому

      there is a video on the channel about prime numbers, it shows an example of what you want

  • @sebastianstein6128
    @sebastianstein6128 9 місяців тому +3

    How do I change the window size and the size of the vao? If i just change the pixel numbers in window size this does not affect the actual resolution of my created shader art. (Im trying to get a quadratic window with 1080 times 1080 pixel)

  • @supriyapol9149
    @supriyapol9149 Рік тому +2

    I have problem with geometry line no. 11 it says Cannot find reference 'geometry' in '__init__.py'

    • @JohnSmithjohnsmithjohnsmithjoh
      @JohnSmithjohnsmithjohnsmithjoh 11 місяців тому

      importing the geometry itself by 'from moderngl_window import geometry' worked for me. My code still worked as shown in the video, but the static analysis couldn't find the geometry module. If that doesn't work then make sure you've correctly installed moderngl and moderngl_window for python 3.9, for best reproducibility. I was able to run it fine with 3.11 but other's mileage may vary I suppose

  • @rterminatu
    @rterminatu 9 місяців тому

    It cannot find the shader files despite them being in the same folder as main dot py and have tried using relative python ./ etc on Linux. Anyone else had the same issue?

    • @mrdixioner
      @mrdixioner Місяць тому

      I have the same thing, I don't know what the problem is.

  • @tilakrajgolari1577
    @tilakrajgolari1577 3 місяці тому

    Sir,
    What if we want this in 3d?

  • @zaqk2
    @zaqk2 2 місяці тому

    Only uses bottom left quarter of the screen on MacOs 😢 ... Anyone facing similar issue ?

  • @kivy_kivymd4952
    @kivy_kivymd4952 Рік тому

    i want to learn
    please make full cource from scratch
    or give me a road map for glsl shader 😔💙✨✨

  • @itssuperninja
    @itssuperninja Рік тому +2

    what the hell is that emoji at 1:10 😂

  • @toutenunmot
    @toutenunmot Рік тому +1

    Anyone able to run this on macOS?

    • @toutenunmot
      @toutenunmot Рік тому

      I had to change the version to 330 in both .glsl files, possibly because my computer is old or because apple does not support OpenGL so well...
      #version 330