MindVisceral / EZGame

1 stars 0 forks source link

Weapon models clip through meshes #23

Open MindVisceral opened 7 months ago

MindVisceral commented 7 months ago

Common issue with FPS games

Possible workarounds: -a shader??? -make the gun move out of the way when close to a surface; issues - a lot of work, possibly many edge cases -make the guns very, very tiny, but close to the Camera; issue - might break bullet trails -render models on a separate viewport; issues - breaks shadows on models, certainly breaks bullet trails

MindVisceral commented 7 months ago

-put model last render queue; issues - draws the gun over exisiting pixels, which is inefficient -Custom Render Pass - put model first in render queue, and then stencil it so nothing gets drawn over it; issue - too complicated for our case

MindVisceral commented 4 months ago

Possible workarounds: -render models on a separate viewport; issues - breaks shadows on models, certainly breaks bullet trails

Tried this, it indeed breaks shadows and bullet trails. Doesn't seem worth the effort to fix that. I'll try another method.

MindVisceral commented 1 month ago

Tried this, it indeed breaks shadows and bullet trails. Doesn't seem worth the effort to fix that. I'll try another method.

On the other hand, this worked very well for Wrought Flesh. Perhaps this method is worth revisiting. Trails remain the biggest problem here.

MindVisceral commented 1 month ago

Before I tackle this, I will attempt to add a body model rig to the Player with working IK hands and legs. This issue can be solved later.