Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
      3. The Armadillo Inn
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

dexyfex

CodeWalker 3D Map Viewer for GTAV

Recommended Posts

dexyfex

Hi everyone,
I've been working on a 3D map for PC version of GTAV. It's at:

https://www.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map

 

It now allows entities to be placed and moved, also new and modified ymap files can be be saved. This feature is still in experimental stages, but I would love to hear any feedback on it!

99b39e-cw35.png

 

99b39e-cw33.jpg

 

 

Enjoy!

[Edit: Updated screenshots and description]

Edited by dexyfex

Share this post


Link to post
Share on other sites
MrGTAmodsgerman

Like i told you, awesome! Keep please working on it

Share this post


Link to post
Share on other sites
ArthurLopes

 

This is Amazing af

Keep The good work

Share this post


Link to post
Share on other sites
Jestic

Awesome.

 

One thing though: I believe the 2nd vertex color channel is being ignored, typically utilzied with terrain shaders to blend between 4 layers (on top of the blend masks)

Share this post


Link to post
Share on other sites
dexyfex

Thanks! :)

There is still some work to do on the texture blending, I only have it working for some of the terrain shaders at the moment. Also there are still some issues with colour tinting, eg the golf course should be tinted terrain, and parts of the beach have some different masking, but I haven't figured out the algorithms yet. If you know of any details that might help, would be great to hear it!

I added a tool to disassemble the shaders, but I find it quite time-consuming to read the shader assembly code...

Share this post


Link to post
Share on other sites
Mr.Arrow

Splendid!

 

Is this open source?

Share this post


Link to post
Share on other sites
BlackScout

Wonderful job! That's the start of something great. Good luck with the tool!

Edited by BlackScout

Share this post


Link to post
Share on other sites
Mr.Arrow

Neodymium has taught you a lot of things , do you OP?

 

g2zSYBG.jpg

Share this post


Link to post
Share on other sites
dexyfex

Haha, indeed, Mr.Arrow (I love that movie btw heh)

I'll make it open source when I've stopped making such frequent changes. Also large parts of it need tidying/fixing up. I had to rewrite quite a few of the important bits in Neodymium's toolkit to make the performance acceptable, which led to things becoming messy in places.

Share this post


Link to post
Share on other sites
Mr.Arrow

It looks like it doesn't seem to render the Alamo seabed?Props like light poles and traffic lights seems to be missing too.

Share this post


Link to post
Share on other sites
dexyfex

It's possible to render most of the missing parts, by specifying the ymaps to load in the ymaps textbox (see the end of the readme for some more info on that). Really it's only rendering the LODs by default at the moment, because I'm still working on a technique to load all the highest details correctly :)

Share this post


Link to post
Share on other sites
Jestic

Thanks! :)

 

There is still some work to do on the texture blending, I only have it working for some of the terrain shaders at the moment. Also there are still some issues with colour tinting, eg the golf course should be tinted terrain, and parts of the beach have some different masking, but I haven't figured out the algorithms yet. If you know of any details that might help, would be great to hear it!

I added a tool to disassemble the shaders, but I find it quite time-consuming to read the shader assembly code...

 

On second thought, I think the 2nd vertex color channel is working fine, it's probably just some decals missing that puts me off.

Speaking of vertex colors, I have a request: Would it be possible to add an option to instead of showing textures, to just show vertex colors? Both for the 1st and 2nd channel, separately? I noticed you can see the vertex colors just before loading the textures. I realize this sounds like a useless feature to you\ most people, but it's useful for me.

 

As for '_tnt' shaders, I believe it works fairly simply: You feed it with a lookup sampler, typically recognized by the '_pal' suffix and appears to be always 256x4 pixels. In the shader you have a parameter called 'TintPaletteSelector' which contains an 'X' and 'Y' value, which selects the color from said texture sampler and then multiplies(?) it by the diffuse color.

 

Wouldn't know about the beach masking, i'll look at it one of thse days.

Edited by Jestic

Share this post


Link to post
Share on other sites
dexyfex

Ah yes, a lot of the highest details including decals aren't loading in by default at the moment. They can usually be loaded in manually by specifying the _long and/or _strm ymaps for the area in question though.

 

That's a pretty good idea about showing the vertex colours, I had thought previously about making it an option. But I think it would work well as you described, with a number to select the vertex colour index. Only problem would be if the vertex data only contains one colour channel for example, but I guess it could just show gray or black. Also I'm planning to add an option to display the normalmaps, and/or other texture channels. Might also add something to select which texture coords to use since a lot of vertex types have more than one set...

 

As for '_tnt' shaders, I believe it works fairly simply: You feed it with a lookup sampler, typically recognized by the '_pal' suffix and appears to be always 256x4 pixels. In the shader you have a parameter called 'TintPaletteSelector' which contains an 'X' and 'Y' value, which selects the color from said texture sampler and then multiplies(?) it by the diffuse color.

 

I did mostly get the colour tinting working, and it's pretty much just as you described, but something interesting I found is that there is a value that can be specified in the CEntityDef in the ymaps that specifies the Y coordinate for the palette texture... The containers on the docks are a good example, without using that value from the entity they all came out the wrong colours. But it seems that I'm still missing something with tinting because some of the trees are blue up close, and some other random objects are pink. Perhaps it has something extra to do with the TintPaletteSelector as you say, because at the moment it's just using a vertex colour channel to select the X coord for the palette texture, it seems to work most of the time.

Share this post


Link to post
Share on other sites
dexyfex

Just added v.14, it can now draw vertex normals, colours and texture coords, as well as selecting different texture samplers. Also added shadows and a few other options.

Share this post


Link to post
Share on other sites
Mr.Arrow

Just added v.14, it can now draw vertex normals, colours and texture coords, as well as selecting different texture samplers. Also added shadows and a few other options.

I like this update, I can see the usefulness for this tool (especially the lazy ones like me) :breadfish: .

 

NjXkKR1.jpg

 

JoURWSG.jpg

 

SXT901O.jpg

 

yisTsdC.jpg

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
EncryptedReality

Here's my Vice City conversion rendered within your tool :)

 

DFtEWum.png

Share this post


Link to post
Share on other sites
dexyfex

Here's my Vice City conversion rendered within your tool :)

 

Awesome! :D

Were you able to do it just by specifying the ymaps?

Share this post


Link to post
Share on other sites
EncryptedReality

 

Here's my Vice City conversion rendered within your tool :)

 

Awesome! :D

Were you able to do it just by specifying the ymaps?

 

Yep, i did :D

Share this post


Link to post
Share on other sites
dexyfex

V.15 is now available. New things include:

- Display collision meshes (static YBNs only at this stage)

- Configurable folder exclusion, Mods folder will now be excluded by default (see the .config file).

- Light direction control

- Rendering improvements
Enjoy :)

Share this post


Link to post
Share on other sites
_CP_

Great! Custom map mods still cannot be loaded? I've tried with my test map, CodeWalker says that models were loaded but they are not visible.

Edited by _CP_

Share this post


Link to post
Share on other sites
dexyfex

I haven't really tested it with any map mods yet, but if they are file replacements then I guess they should be visible... It's possible that things may not be loading in the correct order - I haven't figured out a reliable way to determine which are the "newest" versions of everything yet.

There's also the matter of loading the "level" in the way it's supposed to. At the moment it just loads the ymaps that are specified, so if the mods you are trying are additional ymaps, then you'll have to add those additional ymaps in the textbox.

If you know of any info regarding the "entry point" of the map (for a lack of a better term), like where to start reading files to load the map - I'd really like to know... Because I think this will be necessary for map mods, especially total conversions and additions.

Share this post


Link to post
Share on other sites
_CP_

Looks like my drawable resources aren't correct, because your tool cannot load them.

I'm happy that new version works a bit faster, what are your plans for the next version?

Edited by _CP_

Share this post


Link to post
Share on other sites
dexyfex

Ah, perhaps the error console might show problems loading drawables. It needs more work though because not all errors are logged there currently.

As for next version plans... I really want to get the orphan HD entities to render, because at the moment not all of the details get loaded in by default. Also I want to improve the memory usage (it is getting too high at the moment). And I want to start playing with some basic editing tools (eg move/rotate/scale selected entity), and work on exporting custom map files, maybe Map Builder format - any suggestions on this are welcomed because I know nothing of how GTA5 map editing currently works...

Share this post


Link to post
Share on other sites
_CP_

Drawables exported by OpenIV openformats are crashing your tool, I can't enable console that fast, so I cannot post a log.

Share this post


Link to post
Share on other sites
dexyfex

Hmm, well at least it shouldn't crash when it has a problem reading files... I thought I made the error handling for that more robust, but I guess I will need to investigate further.

Share this post


Link to post
Share on other sites
Mr.Arrow

If you want to know how map editing works, then Neodymium's tool will be feasible for you.

 

The current map editor is quite misleading (I'm referring to this one https://www.gta5-mods.com/scripts/map-editor).Its not really map editing but rather an object spawner that allows you to spawn props at any location.

Share this post


Link to post
Share on other sites
dexyfex

Ah yes, I had guessed the current map editor probably worked just by spawning the objects at run-time. But I think it might be a good place to start with map editing formats to load/save the format that it uses (I think it's XML or something?)... I assume it just has the entity placement info similar to what's in ymaps. Eventually I think it might be able to export ytyp and ymap files as well (based off Neodymium's code).

Share this post


Link to post
Share on other sites
Mr.Arrow

Yep, it use XML to save its position.

 

On the other hand, I would suggest looking for this one https://www.gta5-mods.com/tools/addonprops. It's pretty close to the native since it generates .ytyp instead of XML.

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
dexyfex

CodeWalker v.16 is now available. New features include:
- World mode - Now loads orphan entities and uses entity lodDist
- Rendering improvements
- Cables now rendered
- Improved support for custom models (eg openformats)
- Bug fixes and performance improvements
- Now scans only root game folder - updates/DLC not scanned in this version as it was causing problems.

This is quite a big update as it brings a new rendering mode that will load in all the ymaps specified in the gta5_cache_y.dat file, which means that all the little details will load in now. Also, start/end destruction ymaps are all shown at once, but I'll work to toggle these in future. Taking this approach, I've had to limit the file scan to just the game's root folder for now, until the app can process the DLC file lists properly.

Edited by dexyfex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.