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

Author Topic: Dynamic light  (Read 2023 times)

0 Members and 1 Guest are viewing this topic.

Saitei

  • Newbie
  • *
  • Posts: 23
    • View Profile
Dynamic light
« on: August 15, 2014, 04:30:36 pm »
How to create something like that? Help me please  :'(

I do not understand GLSL. Maybe, lighting - the final step of creating my game

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Dynamic light
« Reply #1 on: August 15, 2014, 04:40:24 pm »
Maybe you can use this: Let There Be Light.

Saitei

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Dynamic light
« Reply #2 on: August 15, 2014, 04:43:25 pm »
Maybe you can use this: Let There Be Light.
It's works at the Visual Studio 2012 (with c++11)? 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11027
    • View Profile
    • development blog
    • Email
Re: Dynamic light
« Reply #3 on: August 15, 2014, 04:51:45 pm »
Please stop with these posts that contain no value, neither for you nor for anyone else.

Being a programmer is not something you get over night and having the expectation of reading a few pages on programming and then being able to write all the nice things other did, is thinking in a completely wrong way.

You first need to learn the language you want to use. In your case, I assume this would be C++. Since C++ is one of the most complex languages you can't really learn it with some tutorials on the internet, but instead you should get a good book. This StackOverflow list contains very good books.
But just because you bought a book you still won't be a C++ programmer. You have to read it and more importantly practice it by writing simple console applications which utilize different things of C++. Step by step over the time period of months or rather years, you'll get a solid ground on top you can build.

By that time one can only hope that your thinking has been affected as well, because the main job of a programmer is to solve problems. When you think like a programmer something like dynamic 2d lighting doesn't just drive to write a forum post, but instead you'd go and research the topic yourself and figure out on your own what you can use and how you can use it. As an example if you had searched just like a tiny bit, I'm 100% certain that you'd have found Let There Be Light which Jesper Juhl posted. The internet has so many answers and if something isn't enough detailed, you can be sure there's a book about it.

So please stop posting threads with "how do I do X" and start thinking and researching on your own.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/