Hello,My English isn't very good, please don't mind
How do I make two "XRayMaterial"Ojb do not interact:?:
AmplifyShaderEditor XRay
-
roger19921212
- Posts: 3
- Joined: Fri Jun 29, 2018 6:59 am
AmplifyShaderEditor XRay
- Attachments
-
- 1530257508938.jpg (119.6 KiB) Viewed 19156 times
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: AmplifyShaderEditor XRay
Hello, thank you for getting in touch and for your support!
Unfortunately, this sample was not built with that particular situation in mind, and our Outline implementation does not support it as is.
Would you be able to share additional information regarding the effect you wish to create, so that we may best help you?
Thanks!
Unfortunately, this sample was not built with that particular situation in mind, and our Outline implementation does not support it as is.
Would you be able to share additional information regarding the effect you wish to create, so that we may best help you?
Thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
roger19921212
- Posts: 3
- Joined: Fri Jun 29, 2018 6:59 am
Re: AmplifyShaderEditor XRay
Thank you for the time and patience you devoted to reading my messages.
I want other players to show X-rays behind the wall, but not between the player and the player,thank!
I want other players to show X-rays behind the wall, but not between the player and the player,thank!
- Attachments
-
- 1530273831734.jpg (95.05 KiB) Viewed 19140 times
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: AmplifyShaderEditor XRay
No problem, we're always happy to help!
In the current example, if both materials with the X-Ray shader do not clip through each other, they won't be casting the effect, as we can see on your screenshot and on the one I'm sharing below.

Apologies if I'm not understanding correctly but, isn't this what you were looking for?
Or do you want the effect to not intersect when both are behind the wall, for example?
In the current example, if both materials with the X-Ray shader do not clip through each other, they won't be casting the effect, as we can see on your screenshot and on the one I'm sharing below.

Apologies if I'm not understanding correctly but, isn't this what you were looking for?
Or do you want the effect to not intersect when both are behind the wall, for example?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
roger19921212
- Posts: 3
- Joined: Fri Jun 29, 2018 6:59 am
Re: AmplifyShaderEditor XRay
when two models overlap each other, the overlapping place will become xray effect(image1).
It's not my expectation.
i just want it become xray effect when it was saw through the wall(image2).
It's not my expectation.
i just want it become xray effect when it was saw through the wall(image2).
- Attachments
-
- image1
- 1530454823474.jpg (91.49 KiB) Viewed 19116 times
-
- image2
- 1530454960057.jpg (85.72 KiB) Viewed 19116 times
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: AmplifyShaderEditor XRay
Thank you for providing additional details.
As I've previously stated, this sample was not built with that particular situation in mind, however, we're going to investigate if there's any way to achieve this effect within our sample or if a custom solution would be required.
I'll be sure to get back to you when we have any developments regarding this situation.
As I've previously stated, this sample was not built with that particular situation in mind, however, we're going to investigate if there's any way to achieve this effect within our sample or if a custom solution would be required.
I'll be sure to get back to you when we have any developments regarding this situation.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: AmplifyShaderEditor XRay
Hello!
We've performed some changes to the XRay sample in order to allow for the effect that you've requested.
Here's a package that contains updated shaders, together with materials and sample scene:
Do note that there is now a dependency between both shaders, as we've set a MAINPASS in the BehindTheWall shader that is accessed and used as a Additional Use Pass by the XRayWithIntersections shader.
Also, before importing the package, please update to the latest ASE version that is currently available for download through our website.
Please let me know if this helps, thanks!
We've performed some changes to the XRay sample in order to allow for the effect that you've requested.
Here's a package that contains updated shaders, together with materials and sample scene:
Do note that there is now a dependency between both shaders, as we've set a MAINPASS in the BehindTheWall shader that is accessed and used as a Additional Use Pass by the XRayWithIntersections shader.
Also, before importing the package, please update to the latest ASE version that is currently available for download through our website.
Please let me know if this helps, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Re: AmplifyShaderEditor XRay
Sorry for the bump! Just been working on implementing XRay effects for my game and stumbled across this. It's really good and works perfectly in the sample scene, but unfortunately as I'm using deferred rendering in my game, as soon as I try and implement it the XRay effect just fails to work - just toggling the rendering back and forth from forward to deferred instantly makes it stop/start working. Is there any way to get this to work with deferred rendering? The original XRay shader I was able to use in deferred, but not this one, and can't quite figure out why. Thanks in advance for any help!
- Ricardo Teixeira
- Posts: 954
- Joined: Fri Aug 09, 2013 2:26 pm
Re: AmplifyShaderEditor XRay
Hey there, no problem!Kathar wrote:Sorry for the bump! Just been working on implementing XRay effects for my game and stumbled across this. It's really good and works perfectly in the sample scene, but unfortunately as I'm using deferred rendering in my game, as soon as I try and implement it the XRay effect just fails to work - just toggling the rendering back and forth from forward to deferred instantly makes it stop/start working. Is there any way to get this to work with deferred rendering? The original XRay shader I was able to use in deferred, but not this one, and can't quite figure out why. Thanks in advance for any help!
I'm afraid the technique used is not ideal for Deferred rendering given the use of Transparency.
An image effect based solution might be ideal for your requirements.
Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Re: AmplifyShaderEditor XRay
Perfect, thanks so much for the quick reply! I'll look into using these, cheers!Ricardo Teixeira wrote:Hey there, no problem!Kathar wrote:Sorry for the bump! Just been working on implementing XRay effects for my game and stumbled across this. It's really good and works perfectly in the sample scene, but unfortunately as I'm using deferred rendering in my game, as soon as I try and implement it the XRay effect just fails to work - just toggling the rendering back and forth from forward to deferred instantly makes it stop/start working. Is there any way to get this to work with deferred rendering? The original XRay shader I was able to use in deferred, but not this one, and can't quite figure out why. Thanks in advance for any help!
I'm afraid the technique used is not ideal for Deferred rendering given the use of Transparency.
An image effect based solution might be ideal for your requirements.
Thanks!