[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How do fps games mantain the same fov on the weapon but change

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 32
Thread images: 4

File: FOVcomparison.jpg (130KB, 1023x621px) Image search: [Google]
FOVcomparison.jpg
130KB, 1023x621px
How do fps games mantain the same fov on the weapon but change it in the environment?

Do they use two cameras, and if so, dosnt this screw up the effects coming out in the front of the weapon because of different fov?

per example one camera with 60fov and the weaopn one with 30 all the time, its screwing my effects coming out of the barrel (per example a trail from the barrel to an enemy)

Thanks! I've been wraping my head around this
>>
>>515822
>mantain the same fov on the weapon
it's clearly different, the effect is less pronounced because it's closer to the camera.
>>
>>515822
its a pretty good subject though. what degree of FOV is best for fps games ? MW3 in particular is a pretty good example.
>>
You have a camera/layer that only renders the gun so you can maintain same FOV on the gun if you want and it prevents the gun from clipping through the world geometry since its on its own rendering layer.
>>
Yeah guys, sorry the pic isnt exactly the problem.

Yeah >>515825 thats the part I get, but the effects are screw up, because the effect is rendered in the world camera, so when you have different fov on the weapon camera the effect is not coming out from the barrel (and even if you adjust the position to "fake it") if you change the fov of the world camera, everything is different again.

The effect/particles part is where im lost :( thanks!
>>
>>515827
they render the particle in the same render layer as the gun
duh
>>
>>515828
You cant because in the example im using ( a trail from the barrel of the weaopn to the enemy ) if you have different fov you are not gonna get to the same point, and if you should maybe im doing something wrong.
>>
>>515829

I dont exactly know what you mean but bullets in games dont come out exactly where the barrel is on screen in first person view, which can create problems/misses when shooting at someone from very up close.
>>
File: world60weapon30effectonworld.jpg (46KB, 1054x683px) Image search: [Google]
world60weapon30effectonworld.jpg
46KB, 1054x683px
>>515830

Image a laser from the weapon to a random player. thanks for reading.

I have 2 cases, World fov at 60, weapon fov at 30, effect on world layer or effect on weapon layer. the image is has the effect on world
>>
File: world60weapon30effectonweapon.jpg (47KB, 1047x686px) Image search: [Google]
world60weapon30effectonweapon.jpg
47KB, 1047x686px
>>515831
this is the other one, world 60 weapon 30 effect on weapon
>>
File: scene.jpg (53KB, 1027x654px) Image search: [Google]
scene.jpg
53KB, 1027x654px
and this is the scene
>>
>>515830
Bullets in games are fired from the middle of your screen, the gun just gets a particle effect.
>>
>>515822
this pic is retarded as shit
fov isn't resolution based at all, you won't get a different view at the same fov with different resolutions, the devs are lying to you. or probably the pic, looking at how the bottom pics were taken with a wider ratio and just marked with green lines
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/
for reference
>>
>>515831
>>515832

Pls just do a raycast from the middle of the screen.
>>
>>515835
Ignore the first pic please, just updated with 3 new ones with my example on top, thats the problem im having, thanks, will take a look at the link tho.
>>
>>515836
Raycast from the middle of the scren, why? I still want the effect to come out of the weapon to the middle of the screen yeah, I dont have problem hitting the target, I have problems with the effect coming from the barrel, theres a discontinuity if you render the effect on world.

I dont know if theres something to fix this or..

thanks!
>>
>>515838
oh, ok, looks like rotating it on the vertical axis will fix the issue?
>>
>>515838
I haven't done this myself, but from playing any fps what I gathered is there is a vector from the playerview to a distant point somewhere and all bullets/laser/weapons align with it, I'm not sure of fov will change that. Maybe render it without multiplying it to the fov?
>>
>>515841
No because if you change the world fov (from 60 to 100 per example) the character goes away but the effect stays the same,

The effect should be on the world camera (The first example)

What are are doing right now is moving the Z of the effect start position but I dont quite like it.. because it has some cons..
>>
>>515842
Sorry I dont think I fully understand what you are saying, the problem is the start of the effect (where it is missaligned with the weapon, like the first example) the end of the effect is perfect.

Thank you so much for taking your time.
>>
>>515844
you should've posted an animation, cause I can't understand the problem properly.
>>
>>515845
I'll try to explain a bit better, cant do a video rn.

I have two cameras, one rendering the world with 60 fov and another one rendering the weapon with 30 fov, But I want a "Laser" effect coming from the barrel of the weapon to an enemy on the screen (see screen 1 on my other posts), since the fovs are different, if you place the starting point of the effect in the barrel of the weapon in the scene ( see the scene screen ) in the game view theres a distance between the weapon and the start of the effect (because the weapon is on 30fov) so thats my problem, I need to effect to start from the barrel of the weapon in the game view

the world fov is configurable but not the weapon one, thats why just faking the effect is not really the solution.

Thanks for helping.
>>
>>515834
The games that actually do this are fucking garbage.
>>
>>515846
>I have two cameras, one rendering the world with 60 fov and another one rendering the weapon with 30 fov,
You're continuing to think of rendering as happening with "cameras" and not "matrices". If you want to change the FOV you change the Projection Matrix.

>But I want a "Laser" effect coming from the barrel of the weapon to an enemy on the screen (see screen 1 on my other posts), since the fovs are different, if you place the starting point of the effect in the barrel of the weapon in the scene ( see the scene screen ) in the game view theres a distance between the weapon and the start of the effect (because the weapon is on 30fov) so thats my problem, I need to effect to start from the barrel of the weapon in the game view
You do your physics calculations / collision in World Space without any camera or viewing component even being a factor...

I repeat...FOV is not a factor in collision / physics, its not even in the equation....look at any physics / collision system for confirmation...
>>
>>516095
>The games that actually do this are fucking garbage.

Almost every game does this center cam raycast. Even many 3rd person ones, often allowing you to fire from 100% cover.

But yeah it's objectively shit if you as a player is aware of what's going on and exploit it. Or play against people who understands what's going on and exploit it.
For the casual clueless pleb that equates to ~95% of players it actually enhances their experience since they don't have to deal with barrel alignment.
Playtesting with proper gun/ray geometry they be all like "I can see that guy behind the pillar but I cant shoot him, that's BULLSHIT!11".
Or in 1st person they aim down sights over a ledge and fail to realize the barrel is lower than the sights so the shot at concrete and becomes pissed.
>>
>>516097
>I repeat...FOV is not a factor in collision / physics, its not even in the equation....look at any physics / collision system for confirmation...

Just set it up yourself and see what happens, it's clear you're capable of understanding this stuff but don't have a clear understanding of the problem.
You can't superimpose a FOV X image ontop of a FOV Y image and expect parallel lines to end up in the same place of your visual field.
>>
they can keep the fov on the weapon because it's not the real weapon other players see. the player mostly can't see it's own weapon and just sees arms with a weapon only he or she can see himself on a layer not effected by the fov
>>
>>515822
yeah, the weapons are drawn as a different scene overlay, with their own FOV and camera.
>>
>>516098
Tom Clancy's The Division has proper gun barrel alignment and people don't seem to be bitching about it too much. Then again, The Division has a proper cover system.
>>
>>515833
why do you shoot his ass in the first place
>>
>>517268
this
>>
>>517268
upvote
Thread posts: 32
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.