Coder Social home page Coder Social logo

Comments (5)

dominikdienlin avatar dominikdienlin commented on June 1, 2024

It doesn't only seem that way, roads, buildings and mostly anything made of concrete shares the same stencil value. As far as I know the stencil buffer only assigns different values to people, animals, water, sky, vehicles (eg. cars, trucks, bicycles), things made of concrete (eg. buildings, roads), certain light volumes (e.g. from street lamps at night), vegitation (grass, trees, but sometimes also signs on buildings), and some fringe classes that are hard to make out (military entities? Aliens?). Road segmentation, especially lane markings are not possible to extract from the game engine (please correct me if I'm wrong). You can make some educated guesses about the properties of the road and the lanes as done in the lanerewarder class of DeepGTAV

from gtavisionexport.

benjamintanweihao avatar benjamintanweihao commented on June 1, 2024

Thanks, that makes sense. Is there a way to get patches like these though (without resorting to renderdoc):

capture

from gtavisionexport.

dominikdienlin avatar dominikdienlin commented on June 1, 2024

That looks like from the "playing for data" paper by the Visual Inference lab TU Darmstadt. If I remember correctly, they used a directx debugging tool to extract the mesh texture IDs and then mapped those IDs to object classes. However, even those don't seem to contain the lane markings as you can see in the image. It may be possible to do something similar with the technique used here (if you can find the direct X buffer containing those mesh IDs in the rendering pipeline), but I'm no expert when it comes this stuff. Either way youd have to extract the lane markings with some computer vision techniques (some of which are fairly robust I think)

from gtavisionexport.

benjamintanweihao avatar benjamintanweihao commented on June 1, 2024

Yup it's taken from there :). I don't really need lane markings, just the entire road.

from gtavisionexport.

dominikdienlin avatar dominikdienlin commented on June 1, 2024

Then you could have a look at https://github.com/aitorzip/DeepGTAV/blob/master/Rewarders/LaneRewarder.cpp . This gives you the bounds for the road and even lanes (I think), but it's not always accurate. It would probably be best to visualise this information by drawing the corresponding points using the in-game draw functions.

from gtavisionexport.

Related Issues (20)

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.