# How to draw a hemisphere in unreal engine?

**URL:** <https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 23, 2022, 7:17am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608 "2022-09-23T07:17:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 7:17am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/1 "2022-09-23T07:17:51Z")

</div>

Hey all,

I am planning to draw part of a sphere in unreal engine like a projection from a single point. The shape needs to change depending on the angle between the end edges. I am attaching the image for the reference. What will be the best method to draw the shape in UE4.26 ?

![SPHERE-23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/f/ebfefe09b91585b8e0902bde1e0e47e9503dc53d.png)

I only need to draw the yellow sector bounded by the green thick lines. But based on the angle between the lines, the shape must change.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 10:18am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/2 "2022-09-23T10:18:21Z")

</div>

what about something like this?

Basically is a material that clips UVS with 4 parameters.  
You can do the math to use those params to match the desired angle

Hope it helps!  
Best,  
Dany

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/2/4527ae6cb1e95fbfaa418983aea565f6ba1b007c.jpeg "UNREAL ENGINE - Clipping alpha with UV in a material") ](https://www.youtube.com/watch?v=8ZrsKdSQokM)

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 10:22am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/3 "2022-09-23T10:22:37Z")

</div>

Hey @eldany.uy Thanks for the information. This is something i am looking for. But i just had couple of doubts in that.

1. Can I able to get the end points (4 points), so that i can create a line from origin to the end points ?

2. Here the wireframe material concept is used or not ?

Thanks again

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 10:29am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/4 "2022-09-23T10:29:00Z")

</div>

if you want to create a line from the center of the sphere to the points you can use some scaled cube to make a line and parent with a scene component in the center. Then you rotate the scene component to match the end points…UVs go from 0 to 1…so vertical pole to pole angle (0 to 180) is the distance from UP and DOWN parameters…for example if ABS(UP-DOWN) = 0.5 then the angle is 90 degreees.

If vertical angle is 0 and vector is looking down and DOWN parameter is 0.25 then the angle is 45 degrees.

Horizontal UV (U) is all the circle (like the equator) so ) to 1 equals 0 to 360.

No wireframe but you can mix in the material a grid texture and emulate the wireframe.

This approach is with a material and objects UVs, not with actual geometry.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 23, 2022, 10:52am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/5 "2022-09-23T10:52:00Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/7/4f7109e99078b28bfa69a4d41ead43a3c2186459.png)

Have you _just_ made it?

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 10:55am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/6 "2022-09-23T10:55:56Z")

</div>

Hey

So far as I understood from the video, you just made a material. Then for clipping what did you do ? Duplicate the material and added the blocks. I see two materials in the content browser. SO got a small confusion.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 12:33pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/7 "2022-09-23T12:33:39Z")

</div>

yup

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 12:39pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/8 "2022-09-23T12:39:46Z")

</div>

Its just a material…one is the base material (like the blueprint of it) and the used one is an instance of the material material where you can tweak the parameters.

those params are named UP DOWN LEFT AND RIGHT…you can find them in the material BP

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/f/70f2bd50d5e30ce6131a4679b1194ddce15fbff3.png)

you can also create a material instance in any blueprint at runtime, apply the instanced material to meshes and then modify its parameters like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/5/8d5e87dca34cd854151de23806db4dc8afa5d6d4.png)

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 12:53pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/9 "2022-09-23T12:53:40Z")

</div>

Thanks for the clarification. In your opinion, can i able to create this sphere using splines ?

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 12:58pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/10 "2022-09-23T12:58:01Z")

</div>

You can create visible splines with a spline component like this example

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/d/ecd421c41ecb8c874eaa05ed101e12f7d0579947.jpeg "Unreal Engine 4 Guide - Spline component - road, pipe, railroad") ](https://www.youtube.com/watch?v=kJyWSzfwEk8)

but I don’t know what is your goal on all this.

If you just want to make it visual and not actual geometry I think dealing with materials and math is better.

Why do you want to construct a spline sphere when you can just use a sphere mesh with a grid texture on it to make it look wireframed?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 23, 2022, 12:59pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/11 "2022-09-23T12:59:28Z")

</div>

> [@eldany.uy](#):
>
> but I don’t know what is your goal on all this.

OP is making a 3d heads up display:

> [@What are the methods avaiable to draw lines in unreal engine?](https://forums.unrealengine.com/t/what-are-the-methods-avaiable-to-draw-lines-in-unreal-engine/654052/15):
>
> I kind of tried the same with the procedural mesh. But had some problem. Mainly using the wireframe material affects the physics ? i.e. when it collides with another object, does the physics of the car affected ? Also in my case, i need a square pyramid instead of cone. I think it won’t be available in static mesh drop down.

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 1:01pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/12 "2022-09-23T13:01:22Z")

</div>

My main goal is just to visualize a field of view. Actually i have a camera in the center point and just need to visualize the sphere based on the camera. So i think i will go with the materials. I had a doubt that does using materials will affect the properties or the environment while in game play ?

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/13 "2022-09-23T13:04:20Z")

</div>

yea i am now ok with the lines and in the next phase comes this sphere shaped projection. Donno what is waiting in the coming stages… 😂 😂

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 23, 2022, 1:06pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/14 "2022-09-23T13:06:37Z")

</div>

Now that we better understand what your end goal is, there’s one more thing you can add to your research list:

Widget components can do this. It’s not a sphere but a cylinder - may be suitable enough for your needs.

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/15 "2022-09-23T13:11:38Z")

</div>

Is there any sphere option available in the geometry drop down list and is this a new blueprint ?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 23, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/16 "2022-09-23T13:11:56Z")

</div>

No. But widgets can be used as materials and placed on anything really. You’d need to research how Render Targets work and this:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/3/183d54dd26f2f452c667b983358392b6d5534259.png)

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 1:15pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/17 "2022-09-23T13:15:41Z")

</div>

> [@Everynone](#):
>
> Render Targe

Thanks mahn, i will have a look into that also…

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [September 23, 2022, 1:16pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/18 "2022-09-23T13:16:43Z")

</div>

important point: will the FOV change or camera mm will be fixed? like 35mm or 50mm and never change? If so you can just use a static mesh for that…with the central ‘lines’ included

Because we are thinking into something that can be adapted to different FOV angles

---

<div class="post-metadata">

**Author:** ![ronyshaji1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Post date:** [September 23, 2022, 1:23pm UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/19 "2022-09-23T13:23:28Z")

</div>

Yes the fov changes i.e the horizontal and vertical angles should change. But I am not going inside the camera to think the imager size or focal length. I have the angles and the range also (from the center point to the sphere) readily available, so just need to construct the sphere portion with these values.

---

<div class="post-metadata">

**Author:** ![Ilkatheon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ilkatheon](https://forums.unrealengine.com/u/Ilkatheon)\
**Post date:** [January 30, 2023, 12:23am UTC](https://forums.unrealengine.com/t/how-to-draw-a-hemisphere-in-unreal-engine/654608/20 "2023-01-30T00:23:53Z")

</div>

Just jumping into this - is there a way to make the opacity of the “base color” different (eg semi-transparent - so someone can look through it?)
