Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
just posted a video on HLSL Shaders to be used with coppercube. Video doesn't dive deep into the programming part of HLSL but will give you an understanding of what format coppercube uses to write HLSL Shader. where your code should reside and how coppercube handles techniques and passes. and what values or constants coppercube provides us and how ShaderCallback function is used, how textures are used, and all other stuff. This will be going a video series on HLSL shaders and in each video, I will cover some components of shader programming and how we can implement them in coppercube. I will also tell about the mistakes and bugs one can encounter and how to avoid and fix them. here is the link to the video https://youtu.be/8EQn3EP155k Hopefully, you guys will find this video useful. |
||||
|
Thanks to share. |
||||
|
Thanks man, I always wanted to learn shader programming so I'm looking forward to watching this series :) |
||||
|
Hey nice video, I'm looking into how to apply post-process on the camera rather than a object. Much like reshade you can use post processing to change the way the camera views the world :O |
||||
|
If you don't know shaders you can apply overlays to your scene and then can also use them as post processing effects for the camera. Can also use animate texture behavior along to make it more beautifull. For example CRT effects, vignette and all. Just attach a big 2D overlay and apply the texture to it, animate it if you want. It is highly recommended to use textures with transparency. Anyways in one or 2 days i will upload second video to the series. In which i will try to make people learn to write a basic shader which does nothing but changes the color of an object. |
||||
|
Hey just_in_case Nice workaround, yes I can see that working and being better for me, appreciate that :) |
||||
|
2 Video has been added to the youtube series. Creates a basic shader that changes the color of an object according to the provided RGB value. watch the video on YOUTUBE here:- https://www.youtube.com/watch?v=... please let me know if you find any difficulty in understanding the videos. |
||||
|
Hello Vazahat, Even though I prefer playing with GLSL shaders, I watch your video tutorials relative to the DirectX shaders (HLSL format). As usual you clearly share your knowledge. A few weeks ago I discovered an amazing software "RenderMonkey" on this website https://gpuopen.com/archived/ren... It works nicely on my computer, but you have to know that my graphic card is a AMD Radeon. Of course, there are many similar applications (most of them are for online testing purposes), but RenderMonkey has the advantage to be a very old software working with DirectX9.0c (HLSL), OpenGL 2.0 (GLSL) and OpenGL ES 2.0. The software shows the detailed settings of the shaders, a preview window, an "artist editor" and the source of the shaders are easily exportable. |
||||
|
By the way, today I spent a few hours (yes, I know, it took me too much time, because everything is difficult for a newbie) to write this "action script" dedicated to the shaders. I wouldn't ever be able to imagine and to fully write that script by myself without having discovered this very nice "action_shader" created by the member 'pmax' in this forum. Please see this thread : https://www.ambiera.com/forum.ph... And here is the source code of the "action_ShaderPlus.js" : // 'action_ShaderPlus' is inspired by the original 'action_Shader' created by 'Pmax'. |
||||
|
For the purpose of testing, these two files were associated to that "action_ShaderPlus" : 1) Vertex Shader (GLSL format) file "v_01.glsl" : uniform mat4 mWorldViewProj; 2) Fragment Shader (GLSL format) file "f_01.glsl" :
Of course, this action_ShaderPlus" can handle HLSL shaders. The name of the files and their extension could be whatever you want. (example : "myshaderfolder/myvertexshader.txt" with which you specify the folder and the file containing your shader). |
||||
|
Yeah , I do rember pmax sharing some cool shaders like x-ray and toon shading. And it was already planned by me to include the vertex.text and fragment.txt method in my next video in which i will be showing how to convert shaders into actions. So am already aware about that method. @P-max also had created some cool javascript snippets command if i remember correctly. His programming skills are really good. He once mentioned his github repo if my memory is correct you might find some more usefull stuff there if you checkout. He still sometime appears on the forums as well. I will take a look into "render monkey" when I get time. Right now am working with lights in shaders. Am still learning and sharing videos on the basis of what i have acheived so far in shaders and am really fascinated by the subject. Shadera has become my favourite in game developing. I do have more ideas for coppercube which were left written in my diaries for year and this year i will try to execute them, i was having health issues previously but am recovering much faster so hopefully this year will be a good year for me to execute my ideas with coppercube.😇 Will see what i can brought to the community 😇 |
||||
|
Hello Vazahat, Thank you for your comment. I previously read about your health issues mentioned in one of your old comments. I wish you good health at this difficult time. No doubt that CopperCube's forum is a place where you can share your programming skills with many people from all around our planet which is now a gigantic village thanks to the internet. |
||||
|
Thanks guys, I am not a programmer, the plugins I have written are very rough but thanks to all of you they can be improved. Thanks again to everyone. |
||||
|
Hello Pmax, I am glad to "meet" you. I especially want to thank you for having created your action_shader. What you declare about yourself and your creation is modesty. Indeed you found the inspiration to import the shaders in their original format. Thanks to your discovery it is now possible to perform much easier tests with new shaders. By the way, for the members who wish to experiment with your action_shader (or with my version, why not?), it is important to know that it is required to save a first time the .CCB project before running it. If it is not done, then the files containing the shaders are not found and therefore it results in an error. |
||||
|
3rd installment to the series has been added. Will teach you how to use texture data coming from CopperCube in your HLSL Shaders. Basically, it will teach you how you can use textures in your shaders using incoming texture coordinates and then outputting them to Pixel Shader(fragment program), how to sample your textures and obtain the color data from textures using the texture coordinates and sampled texture. link to the Video https://www.youtube.com/watch?v=... P.S Ignore my bloating voice only I know how I managed to speak with boils in my mouth in this video hope you guys find this video useful. |
|