Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom SceneView/Screen-Space Shaders
#1
I'd like to be able to apply a shader to the whole render but I'm not quite sure how to do it.

I'm not able to find any sort of Effect or Material on the SceneView or the SharpEngineSceneView (I'm using WPF).

ThreeJS has something called an EffectComposer which allows you to apply layers of post processing to the render, including a "ShaderPass".

Does SharpEngine have a similar thing?
#2
The first version does not provide any easy way to implement customer shaders or post-processes. I am planning to improve that in the next version that is planed in two months.
Andrej Benedik
#3
I am right now testing sharpengine for an app I am developing and I must say that I am impressed.
However, I need to apply kind of glow and overlap effect for selected elements, so they can be seen even if hidden after other non-selected elements.
Your instructions about this are so generic that I have no clue on how to proceed.
Some help would be much appreciated.
Also a date-goals roadmap will also be appreciated.

Thanks a lot
#4
I am glad to hear that you are impressed with the engine.

But as you see, this is just the first version and many features are still missing. The next version is planned for June 2024. 

For that version, I plan to add features that I think would be useful for most of the users, for example: pixel and point-cloud rendering, object mover, rotator and scaler, glTF importer / exporter (so you will not need to use native Assimp) and some other features from Ab3d.PowerToys and Ab3d.DXEngine. I will also try to provide an example of how to write your own shader. But I cannot promise that selection with glow will be possible - this is quite complicated as it requires custom rendering steps with expand and blur post-process and usage of a stencil buffer.

I am deciding which features will be developers for the next version based on my opinion on how big the demand for that is (your feedback also helps there) and the required effort.
Andrej Benedik
#5
I would like to inform you that the new samples that come with Ab4d.SharpEngine v2.0-RC1 have a sample that shows how to create a custom effect - in this case an effect that can renders 3D objects with a fog. The custom effect comes with full source code including the source for the vertex and fragment shaders.

You can check that by getting the latest samples (https://github.com/ab4d/Ab4d.SharpEngine.Samples) and checking the "Advanced / Custom Effect" sample. The sources for the effect are in Ab4d.SharpEngine.Samples.Common project in the Advanced and Resources/Shaders folders.

Note that this sample may still not provide enough support to create a glow effect because that would require post-processing support and use of stencil buffers. I am planning to add support for that in the next version (planned for end of 2024).
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)