Comments (8)
setting Game.TimeScale
to zero resolves this issue.
// slow down time to minimize moving pixel drift.
Game.TimeScale = 0;
CaptureTiff();
Script.Wait(1); // for some reason this is necessary.
Game.TimeScale = 1;
from gtavisionexport.
After doing some research, I found that lens distortion is GTAV's default setting according to this article.
And it can't be tweak in the game setting option.
The only way to turn it off is to modify the rendering parameters by some MOD tool. (here I use openIV)
-
open the file timecycle_mods_1.xml in the path: Grand Theft Auto V \ update \ update.rpf / common / data / timecycle
(open the update.rpf by openIV ) -
within the block modifier name="NG_first"
turn the following 2 parameters into 0
<lens_dist_coeff>
<lens_dist_cube_coeff>
Then, there's no lens distortion in your first-person view.
Hope this information would be useful for someone who needs the perfect pixel-matching data between color image and depth image.
from gtavisionexport.
Game.TimeScale = 0
slows down the GTA world time, you may give any number between (0, 1).
It also took me a while to figure this out, glad it helps.
from gtavisionexport.
wait longer time right after Game.pause(true) can greatly improve this situation. (e.g., Script.wait(100), )
But actually, it will still exist about 1 frame offset between RGB scene and depth.
anyone solve this problem ?
from gtavisionexport.
on nice!!!!!! thx, it bothered me almost 2 weeks!!!
but how's Game.TimeScale really doing? is it like a switch?
any where do you get instructions of these functions? I can't find it in the script.
from gtavisionexport.
@JiamingSuen
the other problem is there's a little bit distortion on the outer ring of color image.
it would be very visible when a pole (or something like that stands near the boarder).
did you solve it?
notice the pole on the left side. In color image, the pole is arched.
from gtavisionexport.
I'm not observing this issue on my machine, maybe a little tweak on camera FOV or render resolution would be helpful.
from gtavisionexport.
After doing some research, I found that lens distortion is GTAV's default setting according to this article.
And it can't be tweak in the game setting option.The only way to turn it off is to modify the rendering parameters by some MOD tool. (here I use openIV)
- open the file timecycle_mods_1.xml in the path: Grand Theft Auto V \ update \ update.rpf / common / data / timecycle
(open the update.rpf by openIV )- within the block modifier name="NG_first"
turn the following 2 parameters into 0
<lens_dist_coeff>
<lens_dist_cube_coeff>
Then, there's no lens distortion in your first-person view.Hope this information would be useful for someone who needs the perfect pixel-matching data between color image and depth image.
Thanks!
I found another mod works in a similar way:
https://www.gta5-mods.com/misc/no-chromatic-aberration-lens-distortion-1-41
from gtavisionexport.
Related Issues (20)
- what is inside constant buffer?
- 3D Bounding boxes
- HRESULT 0x80004002 HOT 1
- module machine type 'x64' conflicts with target machine type 'x86' HOT 2
- where can we get the intrinsic parameter of the camera?
- Possible to get road segmentation? HOT 5
- Stencil and depth data
- Managed plugin could not be loaded
- Only NativeUI managed to load HOT 9
- Version problem about managed branch HOT 1
- When I press the N key,The following error may occur in the WriteToTiff method of ImageUtils. Try and fail several times. Is there a better solution
- GTA V does not start (launch) with GTAVisionNative.asi HOT 1
- Can you release a compailed asi file?
- No need for "experimental" here. HOT 1
- How to export specular map HOT 1
- GTA internal camera intrinsic matrix
- Native part generates color.raw and depth.raw with only pixels and stencil.raw totaly black HOT 1
- how to change the camera into the Orthophoto projection ?
- Depth distorted HOT 1
- Dataset link does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtavisionexport.