Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello Dear VS community,
Can someone please share all the shader files containing tml texts for below;
1. Realistic feel of the model i.e steel piping looking ultra realistic, Steel container frames showing required textures and shadows.
2. Shader showing smoke effect
3. Water flow shader
And many more like these....
If someone has it already, please share it here. It would be really very helpful for me and will really be appreciated!
Hi @Dhaval_Bendale,
hopefully somebody will share examples for for sharer definition e.g. water, smoke etc. effects which are tested and have a good performance.
One point I want to mention, when we use shaders we need to pay attention that it should work not only in Studio preview mode on a high performance laptop but also on mobile device where we have restricted power and possibly we do not achieve these effect what will work in preview.
In generally there are some shader definitions as part the OCTO -effect extensions https://github.com/steveghee/OCTO_effects_extensions
Possibly this custom widget could be helpful in your case.
Otherwise you can check the following sources
theoretical consideration https://thebookofshaders.com/ for design of the fragment shader - > mostly we do not need to modify the vertex shader seciton (use the same as the x-ray shader).
What I did in the past I used some of the excellent example provide on https://www.shadertoy.com/browse and tried to convert them to the tmlText fragment section. 'But unfortunately they are not optimized so that possibly does not provide a good graphical performance on the mobile device (on Laptop in preview is always working fine.) I check my old project and will provide , examples if I have to the mentioned points.
You can check also the following topic related to shader issue in Vuforia Studio :
https://community.ptc.com/t5/Vuforia-Studio/Simulate-Fluid-Flow/m-p/670190
https://community.ptc.com/t5/Vuforia-Studio/TML-widget-X-ray-shader/m-p/603526
https://community.ptc.com/t5/Vuforia-Studio/Water-flow-visible-after-a-time/m-p/664831
In some of the posts to the topic mentioned above - there are examples projects attached e.g.
https://community.ptc.com/sejnu66972/attachments/sejnu66972/studio/8186/1/shader-community-test.zip
Thanks
BR