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

Author Topic: Again shaders  (Read 3608 times)

0 Members and 1 Guest are viewing this topic.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Again shaders
« on: November 02, 2013, 10:11:55 pm »
hi guys. SFML good library, I like to use it, studied it pretty not bad, but I can not understand for quite a long time to work with shaders. I am suffering for a long time, looking for information / samples, but their horrible little tired already, and I ask you to help you. Help razobratsya with shaders, why do we need Renderstates, RenderTarget etc. How to properly use them. Please, write to me at least a common example of the use of shaders to VB.NET. I have a lot of do not ask, just write a few lines here to see prices a simple example. I beg

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Again shaders
« Reply #1 on: November 02, 2013, 11:11:36 pm »
There is a shader example in the SFML SDK.
Laurent Gomila - SFML developer

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Again shaders
« Reply #2 on: November 03, 2013, 08:58:16 am »
What? What is this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Again shaders
« Reply #3 on: November 03, 2013, 10:02:44 am »
The archive that you downloaded contains a shader example written in C#.
Laurent Gomila - SFML developer

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Again shaders
« Reply #4 on: November 03, 2013, 10:50:00 am »
I tried it, but it gives an error. Here's a screenshot:


And so I do not know what to do. Can give a small example of the shader? Just do not want to bother you again. Shader.cs file to gives an error
« Last Edit: November 03, 2013, 10:52:38 am by First »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Again shaders
« Reply #5 on: November 03, 2013, 12:33:53 pm »
Have you read the C++ tutorial?

I'm sorry but everything that you need is there, have a look at the documentation, tutorials and examples. If you have a specific question I'll be happy to answer you, but to learn the basics you'll need to read a little bit.
Laurent Gomila - SFML developer

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Again shaders
« Reply #6 on: November 03, 2013, 12:52:23 pm »
I understand that it is a shader and what it's for. I just can not understand how it works. Okay, but what is RenderStates and RenderTarget and what is it for?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Again shaders
« Reply #7 on: November 03, 2013, 01:44:19 pm »
I understand that it is a shader and what it's for. I just can not understand how it works.
Then read the corresponding tutorials, examples and documentation. They exist for a reason.

Okay, but what is RenderStates and RenderTarget and what is it for?
Again, check the API documentation.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

ZeronSix

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Again shaders
« Reply #8 on: November 03, 2013, 02:25:55 pm »
I tried it, but it gives an error. Here's a screenshot:


And so I do not know what to do. Can give a small example of the shader? Just do not want to bother you again. Shader.cs file to gives an error
I don't see any SFML dlls in this folder. You must have it copied at the same path which application is placed.

First

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • Email
Re: Again shaders
« Reply #9 on: November 06, 2013, 07:39:09 pm »
All the same, I have a bug in the project at startup:

Object reference not set to an instance of an object

 

anything