How can I fix sniper scope?

Hello! I was working on my game and was trying to add a sniper weapon. The issue is that my scope’s end circle is blocking the whole screen.

So I was wondering how games like “COD mw roblox” does that?


I tried dual rendering but it didn’t work as good as this screenshot.
Thanks!

1 Like

This is very interesting, I kinda wonder how do you dual render the whole world and even the players when they’re moving.

1 Like

Gotta be a viewport frame. Don’t see any other way in the ROBLOX engine

you can have one part for the zoomed out scope that is normally transparent and sets to transparent when you zoom in

and another part that is way shorter for your zoomed in scope that can tween to opaque when zoomed in and transparent when zoomed out

its kinda hard for me to explain

from looking at how the scope looks compared to the actual world, this isn’t dual rendering. they just have an extremely high FOV. there is in fact a UI in the scope however, i believe they just disable the texture on the scope until u zoom in.

as you can see in the pic above, the line matches up in and out of the scopes frame, also the quality doesn’t degrade like it does in viewport frames.

2 Likes

If you had used any software such as blender and exported it, I think an easy fix is to remove the faces in the scope part and turn off double sided faces, plus I believe it has a setting where you can see the face Direction, I do not have a solution if it is a Unions part.

I think you can achieve this affect by simply make the other part of the scope, except for the front part, invisible when you aim. This way it will avoid unnecessary parts blocking your view.

I know it’s been a year since the last post. But from my knowledge; a lot of games just make the sniper scope have no texture/geometry inside of the scope model. Kinda the opposite of double-sided mesh.

1 Like

Hello,
I know this an old post but I have got a solution, which is not very reliable and flexible because its a workaround, but its not hard to make.
Here is the post that covers how you can do this (it has worked for me):

Weapon scope effect

basically you have to set the material of the scope (the tube part) to glass and set the transparency of it to 0.011, then make the scope lens (the transparent part with the image) glass material and 0.5 transparency.

here is how it turned out for me in a little test version I made (I’m also using depth of field):

Now again, this is a workaround, it might not be intended and it could actually be a bug that Roblox might fix, but we don’t know much about it. To read more information check out the post I linked at the beginning.

It is also possible to do it like apictrain0 said, you can remove the inside faces and disable ‘double sided’ inside of the scope tube mesh to also achieve the effect, however it doesn’t work with more complicated models that I’m using, because the the faces facing the camera will still be visible as shown on this picture:

image

I hope this helps people having trouble with this. :smile:

1 Like