SFML community forums

Bindings - other languages => DotNet => Topic started by: First on November 02, 2013, 10:11:55 pm

Title: Again shaders
Post by: First 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
Title: Re: Again shaders
Post by: Laurent on November 02, 2013, 11:11:36 pm
There is a shader example in the SFML SDK.
Title: Re: Again shaders
Post by: First on November 03, 2013, 08:58:16 am
What? What is this?
Title: Re: Again shaders
Post by: Laurent on November 03, 2013, 10:02:44 am
The archive that you downloaded contains a shader example written in C#.
Title: Re: Again shaders
Post by: First on November 03, 2013, 10:50:00 am
I tried it, but it gives an error. Here's a screenshot:

(http://s2.ipicture.ru/uploads/20131103/2SbdFLn1.jpg)

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
Title: Re: Again shaders
Post by: Laurent 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.
Title: Re: Again shaders
Post by: First 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?
Title: Re: Again shaders
Post by: Nexus 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.
Title: Re: Again shaders
Post by: ZeronSix on November 03, 2013, 02:25:55 pm
I tried it, but it gives an error. Here's a screenshot:

(http://s2.ipicture.ru/uploads/20131103/2SbdFLn1.jpg)

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.
Title: Re: Again shaders
Post by: First 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