# Solid sphere in unreal engine?

**URL:** <https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, Blueprint, question\
**Created:** [October 13, 2022, 10:46am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692 "2022-10-13T10:46:39Z")\
**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:** [October 13, 2022, 10:46am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/1 "2022-10-13T10:46:39Z")

</div>

Is there any way to insert a solid sphere in unrela engine. The dafault one is a hollow one and i am looking for a solid one ?

is there any option available ?

---

<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:** [October 13, 2022, 11:04am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/2 "2022-10-13T11:04:59Z")

</div>

No such thing as a solid sphere. It’s all fake and made from triangles. 😃 You can paint on the inside of the sphere by having a dual sided material.

> It’s all fake and made from triangles.

Point cloud? Ray march? But that’s not what you’re after, surely.

---

<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:** [October 13, 2022, 11:07am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/3 "2022-10-13T11:07:21Z")

</div>

Can you please check this post…[https://forums.unrealengine.com/t/how-can-i-make-a-semi-sphere-like-display-check-image-for-reference/667868/26](https://forums.unrealengine.com/t/how-can-i-make-a-semi-sphere-like-display-check-image-for-reference/667868/26)

I dont really need a solid sphere but some method to visualise it. I thought like cutting/masking a solid sphere with a material gives what I need 😀

---

<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:** [October 13, 2022, 11:09am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/4 "2022-10-13T11:09:22Z")

</div>

The only thing that comes to mind is procedural mesh. Probably can be done in shader but that kind of magic is beyond me 😑

---

<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:** [October 13, 2022, 11:10am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/5 "2022-10-13T11:10:43Z")

</div>

Yea but is it possible for the curved surface like sphere ? i see procedural mesh with triangles only…

---

<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:** [October 13, 2022, 11:11am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/6 "2022-10-13T11:11:16Z")

</div>

> [@ronyshaji1](#):
>
> i see procedural mesh with triangles only…

All geometry is made of triangles. That’s the whole point. If you have enough triangles and shade them nicely, you get away with something that looks like a solid surface.

---

<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:** [October 13, 2022, 11:12am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/7 "2022-10-13T11:12:01Z")

</div>

yea but in this case, there will be infinte no.of points with regards to sphere…

---

<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:** [October 13, 2022, 11:13am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/8 "2022-10-13T11:13:05Z")

</div>

No. That’s not how graphic works. A sphere is a bunch of triangles:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/e/b7ec24b114f0e6b4702a2144682a4996b86435e2.jpeg)

Infinite point cloud is not here yet, check next century perhaps. 😉

---

<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:** [October 13, 2022, 11:14am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/9 "2022-10-13T11:14:03Z")

</div>

Yes, for creating a procedural mesh i have to input the points and it will be difficult to get the points for the triangles from my set up ?

---

<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:** [October 13, 2022, 11:17am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/10 "2022-10-13T11:17:25Z")

</div>

Yes, working with procedural mesh is not easy. Start with a single triangle.

---

<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:** [October 13, 2022, 11:55am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/11 "2022-10-13T11:55:31Z")

</div>

but the issue here is that the edges are curvy, not straight…

---

<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:** [October 13, 2022, 11:56am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/12 "2022-10-13T11:56:37Z")

</div>

So is the sphere and it’s made out of triangles. You’d need many triangles.

---

<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:** [October 13, 2022, 11:58am UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/13 "2022-10-13T11:58:19Z")

</div>

but in my case the semi-sphere changes with respect to the angle and I really can’t able to find out the end points of the sphere since i am masking the sphere based on the angle only.

---

<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:** [October 13, 2022, 12:37pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/14 "2022-10-13T12:37:32Z")

</div>

@Everynone Is there any way to get the end point of the sphere ?

---

<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:** [October 13, 2022, 12:40pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/15 "2022-10-13T12:40:02Z")

</div>

> [@ronyshaji1](#):
>
> end point of the sphere

If you’re working with a component, you can get its radius:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/f/83f699fca42b68fd4f64c0128c79bec658f3986e.png)

But to get an actual vector, you need direction, too.

---

<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:** [October 13, 2022, 1:13pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/16 "2022-10-13T13:13:22Z")

</div>

Does splines work to trace the curved sides of the sphere ?

---

<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:** [October 13, 2022, 1:42pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/17 "2022-10-13T13:42:49Z")

</div>

You could setup a spline to follow a curvature of a sphere. Not sure how that would help, though. What are we doing with that data next? If you are planning on having a surface, you still need triangles.

(Sphere) surface normal \* radius is the plane tangent, afaik. May be wrong. 👀

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

Got this with fixed values. _Looks_ somewhat spherical. If these are arbitrary points on a sphere, you’d need to get the dot product involved, I think.

* * *

I used to do some orbital mechanics but it’s fading at this point, replaced with other things - not all useful. Time for a refresh perhaps.

---

<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:** [October 13, 2022, 2:00pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/18 "2022-10-13T14:00:13Z")

</div>

May be after some thought i am thinking to construct a rectangle with the four points of the sphere like below (becoz of the complexity to cover the edges of the sphere):-

 ![IM18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/6/1067f0582489cf7c6763fa0c66bd9fb2a93c7838.png)

I set up the procedural mesh but it is not displaying. Is it due to that I attached in the construction script as a last link or due to something else ?

 ![IM17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/7/9f7c2712879418efda6e16c92fec8ea5fd415400.png)

 ![IM16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/e/abe4d0b05ea5a3062aea3617c782d99544255047.png)

why the lines are not showing ?

---

<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:** [October 13, 2022, 2:46pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/19 "2022-10-13T14:46:31Z")

</div>

> [@ronyshaji1](#):
>
> lines

What lines?

If you can’t see the triangle, it’s either at the location you do not expect, or you’re looking at it from a direction where a single sided material has no chance to show up.

A triangle is this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/a/45a0f23c46ec572d4a2d65351d38a8aa07d10ac2.png)

Since it’s attached to the actor, those values are local.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/8/b48585d1958fcdd8a8442fb2e744dcfa79c6e8c4.jpeg)

For a display like yours, you will want a two-sided, unlit, transparent material.

Next step, write a small function that creates a quad. Next, see if you can connect some quads, next look up how to create a more complex surface, next I’d look into how to make a cone.

Admittedly, this is not something you do over breakfast break.

* * *

Honestly, I wouldn’t know how to create a shape you need from the top of my head. Would be chuffed if I got it after a day of trying. ;p

---

<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:** [October 13, 2022, 2:51pm UTC](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692/20 "2022-10-13T14:51:49Z")

</div>

Yes i am able to plot the triangle. I think i had still issues with the location. It is perfect from the blueprint viewport but in the editor blueprint it comes behind the car. Does the triangle should be stick to the blueprint even in the editor ?

 ![IM19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/8/4188326f697f4e0ef223b4b3ba2786e1f2e1e0dc.png)

 ![IM20.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/f/d6f34490fc96a298b37f6e7bcc85e633a9a7632c.jpeg)

[Next page](https://forums.unrealengine.com/t/solid-sphere-in-unreal-engine/668692.md?page=2)
