How can i make a semi sphere like display (check image for reference)?

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 @ronyshaji1

here is a similar post:

Maybe it is helpful.

2 Likes

It’s his own post :exploding_head:

3 Likes

Yes, I can’t able to proceed with that method…that’s why asked in more detailed way… :roll_eyes: :roll_eyes:

Oh! Didn’t see that coming :smiley:

2 Likes

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?

2 Likes

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:

2 Likes

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

2 Likes

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:

image

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:

image

Every material that has these 2 Scalar variables will be affected by the change from the SetScalarParameterValue node.

Or you do this:

2 Likes

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 :slightly_smiling_face: :slightly_smiling_face:

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?

Can you please explain “Connect the nodes you have to calculate your value and output it with the return node”. I didnot unnderstand it.

Yes I have to create nodes for false also. But my values are set such that it is always TRUE. Just for testing.

YOU MEAN LIKE THIS ?