sd805 / l4d2vr

Left 4 Dead 2 VR mod
369 stars 35 forks source link

Near Clipping Plane issue #80

Open UnsealedWings opened 1 year ago

UnsealedWings commented 1 year ago

Is there any way to fix the near clipping plane so that weapons and arms don't clip through the camera so easily? I like recording videos of this in a cinematic way, and the seeing through half the gun when aiming looks bad. Is there a work around maybe? like a command to adjust the Near Clipping Plane? Or could it be fixed on the mods end? Either way Fantastic mod, Can't wait for more updates!

morphium4all commented 1 year ago

Did you found any solution for this?

UnsealedWings commented 1 year ago

Nope, Hoping for the creator to reply.

Gistix commented 1 year ago

Modify lines 179 and 201 from Hooks.cpp with your desired value, and as bumping an issue is bad enough please refrain from posting duplicated issues in the future.

UnsealedWings commented 1 year ago

Well, I've been waiting for help since Feb 15th, I waited 4 months before asking again. Maybe if i had gotten a simple reply with such an easy solution within a 4month period i wouldn't have had to ask again, There is zero info about this on google, and believe me I LOOKED. But thank you for the help, I'll try this out and then spread the word to everyone so they too can fix this issue.

UnsealedWings commented 1 year ago

Okay

Modify lines 179 and 201 from Hooks.cpp with your desired value, and as bumping an issue is bad enough please refrain from posting duplicated issues in the future.

So looking through the L4D2 files including the VR mod I cannot find Hooks.cpp, and searching for it shows that it does not exist. Where would i find that?,

Edit: Nevermind I found it in the source code, but the question i have now is, how do i apply this to my VR mod? Again, there is zero info about this anywhere online.

Gistix commented 1 year ago

You'll be editing the source code so you're supposed to compile it. The README is displayed on the main repository page, scroll down and you'll see this:

Build instructions git clone --recurse-submodules https://github.com/sd805/l4d2vr.git Open l4d2vr.sln Set to x86 Debug or Release Build -> Build Solution Note: After building, it will attempt to copy the new d3d9.dll to your L4D2 directory.

(you will need git and visual studio installed obviously)

UnsealedWings commented 1 year ago

I must be doing something wrong? I followed the instructions to build, But i just get a ton of errors when building solution.

BuildLog.txt