Hey
Anyway that I can make a semi-sphere like display in unreal engine. It has to be modifiable from both vertical and horizontal.
Hey
Anyway that I can make a semi-sphere like display in unreal engine. It has to be modifiable from both vertical and horizontal.
It’s his own post
Yes, I can’t able to proceed with that method…that’s why asked in more detailed way…
Oh! Didn’t see that coming
Sorry, I did not see that. I just rembered that other thread.
So any other method you can think of from ?
Will this be or should this be a mesh? Not just a material with adjusted opacity?
Why did the other method not work?
It should not be necessarily a mesh, the material with adjusted opacity also works. My goal is to visualize field of view of a sensor and it should not affect the physics.
The masking method is not precise. I ahve to be precise with the sphere with coordinates. i am claculating the values based on the angle and in the method mentioned, it is masking from 0 to 1. So I can’t able to find a relation between rotation and the coordinates…thats why lookking for other methods…
You can adjust the material shown by @eldany.uy like this:
Hey
Yes i have the material with four values to be adjustable (UP,DOWN,LEFT,RIGHT). Now my question is that can i able to adjust the 4 values dynamically in a blueprint. May be i can do some calculation inside the blueprint and adjust the 4 values from the blueprint.
does dynamic material instance works here ?
You can use a Dynamic Material Instance or you can use a Material Parameter Collection
If you use this method, can i able to chnage the material parameter with a public variable ? Also you mean cast to material parameter collection
I mean this:
You can create a Material Parameter Colelction like this:
I added 2 Scalar variables:
Which can be used inside the material:
And can be changed in a blueprint with this:
Every material that has these 2 Scalar variables will be affected by the change from the SetScalarParameterValue node.
Or you do this:
Thanks for the detailed solution. It works. May I ask regarding the scope of the material parameters. IS the material can always access the material parameters ??
Yes, the Material Parameters always affect the material where they are used. You change the Parameter, material gets an update.
Thanks let me try…i think this will work…long way to go
Just a stupid question maybe, i created a function and started with a branch node. But how can give the exe line to both branch and return node. I think the branch node is not working due to not executing.
So you start at ValueCalculation and then go into the Branch. Connect the nodes you have to calculate your value and output it with the return node. Then you have to do the same for the FALSE route, which value do you want to output if the BRANCH condition is false?