Git Product home page Git Product logo

Comments (9)

Rbn3D avatar Rbn3D commented on June 3, 2024

I tried to add motion blur in the past, but seems like it's not possible, at least not without modify timecycle files.

I'm trying things like this with no luck:

image

However, it may be possible with mods like this:

https://gta5-mods.com/misc/motion-blur-mod

I need to figure out how to set desired ammount of blur and direction.

from customcameravplus.

martin951 avatar martin951 commented on June 3, 2024

I tried to add motion blur in the past, but seems like it's not possible, at least not without modify timecycle files.

I'm trying things like this with no luck:

image

However, it may be possible with mods like this:

https://gta5-mods.com/misc/motion-blur-mod

I need to figure out how to set desired ammount of blur and direction.

Motionblur works only when I don't update camera position. Meaning if the cam is purely attached to an entity it works.
This is however quite useless for a custom dynamic camera with movement :/

from customcameravplus.

Rbn3D avatar Rbn3D commented on June 3, 2024

I tried to add motion blur in the past, but seems like it's not possible, at least not without modify timecycle files.
I'm trying things like this with no luck:
image
However, it may be possible with mods like this:
https://gta5-mods.com/misc/motion-blur-mod
I need to figure out how to set desired ammount of blur and direction.

Motionblur works only when I don't update camera position. Meaning if the cam is purely attached to an entity it works.
This is however quite useless for a custom dynamic camera with movement :/

So probably it can't be done only by script or modified timecycle files. It will most likely require some reversing (find the address of motion blur on memory and force it to be enabled and set strength/direction).

But I'm not good at reversing (yet)...

Any help is welcome.

Meaning if the cam is purely attached to an entity it works.

Do you have an example of this? Does that also require modded game files?

from customcameravplus.

martin951 avatar martin951 commented on June 3, 2024

Iam using natural visions enhanced motion blur. I believe it does the same as the mod you linked.
Just attach the cam to players current vehicle once and it should have blur

from customcameravplus.

Rbn3D avatar Rbn3D commented on June 3, 2024

Not sure if it would work in my mod by calculating camera's position and rotation just like now, but instead of setting position and rotation on each frame, attach the cam to the car and set the relative offset between camera and car to match the global position and rotation I calculated on each frame...

I hope setting the offset doesn't disable motion blur...

from customcameravplus.

Rbn3D avatar Rbn3D commented on June 3, 2024

Not sure if it would work in my mod by calculating camera's position and rotation just like now, but instead of setting position and rotation on each frame, attach the cam to the car and set the relative offset between camera and car to match the global position and rotation I calculated on each frame...

I hope setting the offset doesn't disable motion blur...

Doesn't work (no motion blur)

image

from customcameravplus.

martin951 avatar martin951 commented on June 3, 2024

Not sure if it would work in my mod by calculating camera's position and rotation just like now, but instead of setting position and rotation on each frame, attach the cam to the car and set the relative offset between camera and car to match the global position and rotation I calculated on each frame...
I hope setting the offset doesn't disable motion blur...

Doesn't work (no motion blur)

image

I believe you are not allowed to change rot either.

from customcameravplus.

martin951 avatar martin951 commented on June 3, 2024

I mean every time you update the camera pos or rot or attachment, motion blur resets. Since you call it every frame > no motion blur.

Only solution I can think of would be spline cam.. Constantly adding new points to the spline path and interpolate the cam.

from customcameravplus.

Rbn3D avatar Rbn3D commented on June 3, 2024

Surprisingly, it worked out on first person, but only when vehicle speed is between 0 and 1, when is 0 there is no motion blur, and it increases as the value gets closer to 1. As soon as the speed exceeds 1, the effect disappear. I've tried every single native related to motion blur to try to fix it, I even tried to scale cam spline velocity.

Tomorrow I will post the code used, and also will commit this stuff to a separate btanch.

from customcameravplus.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.