dexyfex Posted March 4, 2017 Share Posted March 4, 2017 (edited) 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! Enjoy![Edit: Updated screenshots and description] Edited May 13, 2017 by dexyfex JacobSmaga, WindowsExPee, Lowi and 41 others 44 Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted March 4, 2017 Share Posted March 4, 2017 Like i told you, awesome! Keep please working on it dexyfex 1 Link to comment Share on other sites More sharing options...
RokkuDayo Posted March 4, 2017 Share Posted March 4, 2017 This is Amazing af Keep The good work dexyfex 1 Link to comment Share on other sites More sharing options...
dexyfex Posted March 4, 2017 Author Share Posted March 4, 2017 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... kalleKompura and MrGTAmodsgerman 2 Link to comment Share on other sites More sharing options...
sgtsev3n Posted March 4, 2017 Share Posted March 4, 2017 take a look at this: https://www.gta5-mods.com/maps/custom-prop maybe you can do the same, then we basically have an V version of MED. dexyfex and MrGTAmodsgerman 2 Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 5, 2017 Share Posted March 5, 2017 Splendid! Is this open source? dexyfex 1 Link to comment Share on other sites More sharing options...
BS_BlackScout Posted March 5, 2017 Share Posted March 5, 2017 (edited) Wonderful job! That's the start of something great. Good luck with the tool! Edited March 5, 2017 by BlackScout dexyfex 1 Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 5, 2017 Share Posted March 5, 2017 Neodymium has taught you a lot of things , do you OP? dexyfex and Muzzarino 2 Link to comment Share on other sites More sharing options...
dexyfex Posted March 5, 2017 Author Share Posted March 5, 2017 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. Mr.Arrow 1 Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 5, 2017 Share Posted March 5, 2017 It looks like it doesn't seem to render the Alamo seabed?Props like light poles and traffic lights seems to be missing too. Link to comment Share on other sites More sharing options...
dexyfex Posted March 5, 2017 Author Share Posted March 5, 2017 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 BS_BlackScout 1 Link to comment Share on other sites More sharing options...
dexyfex Posted March 6, 2017 Author Share Posted March 6, 2017 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. Link to comment Share on other sites More sharing options...
dexyfex Posted March 7, 2017 Author Share Posted March 7, 2017 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. Jestic, Mr.Arrow and Ash_735 3 Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 7, 2017 Share Posted March 7, 2017 (edited) 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) . Edited March 7, 2017 by Mr.Arrow dexyfex, kalleKompura, inkoalawetrust and 2 others 5 Link to comment Share on other sites More sharing options...
EncryptedReality Posted March 7, 2017 Share Posted March 7, 2017 Here's my Vice City conversion rendered within your tool OVO, inkoalawetrust, Lowi and 8 others 11 Link to comment Share on other sites More sharing options...
dexyfex Posted March 8, 2017 Author Share Posted March 8, 2017 Here's my Vice City conversion rendered within your tool Awesome! Were you able to do it just by specifying the ymaps? Link to comment Share on other sites More sharing options...
EncryptedReality Posted March 8, 2017 Share Posted March 8, 2017 Here's my Vice City conversion rendered within your tool Awesome! Were you able to do it just by specifying the ymaps? Yep, i did dexyfex 1 Link to comment Share on other sites More sharing options...
dexyfex Posted March 16, 2017 Author Share Posted March 16, 2017 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 improvementsEnjoy Mr.Arrow, DuPz0r, MrGTAmodsgerman and 3 others 6 Link to comment Share on other sites More sharing options...
_CP_ Posted March 16, 2017 Share Posted March 16, 2017 (edited) 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 March 16, 2017 by _CP_ Link to comment Share on other sites More sharing options...
dexyfex Posted March 16, 2017 Author Share Posted March 16, 2017 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. Link to comment Share on other sites More sharing options...
_CP_ Posted March 16, 2017 Share Posted March 16, 2017 (edited) 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 March 16, 2017 by _CP_ Link to comment Share on other sites More sharing options...
dexyfex Posted March 16, 2017 Author Share Posted March 16, 2017 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... MrGTAmodsgerman 1 Link to comment Share on other sites More sharing options...
_CP_ Posted March 16, 2017 Share Posted March 16, 2017 Drawables exported by OpenIV openformats are crashing your tool, I can't enable console that fast, so I cannot post a log. Link to comment Share on other sites More sharing options...
dexyfex Posted March 17, 2017 Author Share Posted March 17, 2017 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. _CP_ 1 Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 17, 2017 Share Posted March 17, 2017 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. Link to comment Share on other sites More sharing options...
dexyfex Posted March 17, 2017 Author Share Posted March 17, 2017 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). Link to comment Share on other sites More sharing options...
Mr.Arrow Posted March 17, 2017 Share Posted March 17, 2017 (edited) 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 March 17, 2017 by Mr.Arrow Link to comment Share on other sites More sharing options...
dexyfex Posted March 29, 2017 Author Share Posted March 29, 2017 (edited) 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 March 29, 2017 by dexyfex Mr.Arrow, Tez2, comet_ and 7 others 10 Link to comment Share on other sites More sharing options...
dexyfex Posted April 17, 2017 Author Share Posted April 17, 2017 (edited) CodeWalker v.17 is now available. New features include: - Day/night cycle (right-drag) - Emissive textures and distant LOD lights - Sky colour based on time of day and weather - Instanced grass - Grass and foliage wind movement - Bug fixes and performance improvements Edited April 17, 2017 by dexyfex _CP_, Tez2, DuPz0r and 14 others 17 Link to comment Share on other sites More sharing options...
BS_BlackScout Posted April 18, 2017 Share Posted April 18, 2017 Holysh*t... This looks awesome! dexyfex 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now