The Hero Posted January 7, 2019 Share Posted January 7, 2019 (edited) This weekend I decided to play a bit with webgl and javascript and write a little viewer for GTA models. It should be able to load most dff files (native geometry NOT supported), textures are loaded like <img> elements by the browser. To make it a bit more interesting I implemented a little parser for IDE files and carcols.dat and made this vehicle viewer for III, VC and SA: http://gta.rockstarvision.com/vehicleviewer/ As for the code, it naturally only implements a small subset of RenderWare and perhaps it should be made a bit cleaner. It was mostly meant to be a proof of concept, but feel free to use and adapt it for you purposes. Hope you like it. Screenshot: BUGS: - due to name clashes some textures are not what they should be. (black64 &c.) - HTML and CSS are hard, so that part sucks a bit Edited January 7, 2019 by The Hero dkluin, Grinch_, Wesser and 23 others 26 re3, reVC Tools: RenderWare file converter, DFF importer and exporter for 3ds max III, VC, SA: SkyGfx: PS2 and Xbox graphics for PC, PS2 and Xbox vehicles for PC, Debug menu III, VC: rwd3d9, sharptrails, PS2 and Xbox map for PC III: Skin and Bones, Into TheTimecycle!!!, LC98 VC: Beta Infernus, Phoenix and Cop car SA: PS2 to PC map General: Simple DLL loader My Workshop. Also visit me on github. Link to comment Share on other sites More sharing options...
TheBlackVomit Posted January 7, 2019 Share Posted January 7, 2019 first to like xdd. anyways great job on the viewer! Link to comment Share on other sites More sharing options...
cj2000 Posted January 8, 2019 Share Posted January 8, 2019 Looks a bit like GGM. On the pics it looks like the tool can only handle vehicles, but what about other models? Link to comment Share on other sites More sharing options...
The Hero Posted January 8, 2019 Author Share Posted January 8, 2019 It can render other models, I just didn't write an interface for it. I wanted to write something that could work with a a number of models and vehicles seemed like a good idea. cj2000 1 re3, reVC Tools: RenderWare file converter, DFF importer and exporter for 3ds max III, VC, SA: SkyGfx: PS2 and Xbox graphics for PC, PS2 and Xbox vehicles for PC, Debug menu III, VC: rwd3d9, sharptrails, PS2 and Xbox map for PC III: Skin and Bones, Into TheTimecycle!!!, LC98 VC: Beta Infernus, Phoenix and Cop car SA: PS2 to PC map General: Simple DLL loader My Workshop. Also visit me on github. Link to comment Share on other sites More sharing options...
Vadim M. Posted January 13, 2019 Share Posted January 13, 2019 This thing is osum! Link to comment Share on other sites More sharing options...
gts. Posted January 13, 2019 Share Posted January 13, 2019 (edited) Nice work aap. Have you ever think about implement alphabetical order in the vehicle lists? Otherwise, is a great tool. Edited January 13, 2019 by gts. Link to comment Share on other sites More sharing options...
The Hero Posted January 13, 2019 Author Share Posted January 13, 2019 You're right, i should do that. I'll also be happy to accept a patch though re3, reVC Tools: RenderWare file converter, DFF importer and exporter for 3ds max III, VC, SA: SkyGfx: PS2 and Xbox graphics for PC, PS2 and Xbox vehicles for PC, Debug menu III, VC: rwd3d9, sharptrails, PS2 and Xbox map for PC III: Skin and Bones, Into TheTimecycle!!!, LC98 VC: Beta Infernus, Phoenix and Cop car SA: PS2 to PC map General: Simple DLL loader My Workshop. Also visit me on github. Link to comment Share on other sites More sharing options...
GTA-Roloboy Posted December 7, 2020 Share Posted December 7, 2020 Very cool, is there a way we can make the wheels visible as well? Link to comment Share on other sites More sharing options...
The Hero Posted December 7, 2020 Author Share Posted December 7, 2020 no, sorry re3, reVC Tools: RenderWare file converter, DFF importer and exporter for 3ds max III, VC, SA: SkyGfx: PS2 and Xbox graphics for PC, PS2 and Xbox vehicles for PC, Debug menu III, VC: rwd3d9, sharptrails, PS2 and Xbox map for PC III: Skin and Bones, Into TheTimecycle!!!, LC98 VC: Beta Infernus, Phoenix and Cop car SA: PS2 to PC map General: Simple DLL loader My Workshop. Also visit me on github. Link to comment Share on other sites More sharing options...
squidiskool Posted August 12, 2021 Share Posted August 12, 2021 This is awesome! Can it load custom DFFs? I wanna try a few mods. Link to comment Share on other sites More sharing options...
The Hero Posted August 13, 2021 Author Share Posted August 13, 2021 In theory yes. but you'll have to make it load them yourself. source code is here: https://github.com/GTAmodding/modelviewjs RyanDri3957V 1 re3, reVC Tools: RenderWare file converter, DFF importer and exporter for 3ds max III, VC, SA: SkyGfx: PS2 and Xbox graphics for PC, PS2 and Xbox vehicles for PC, Debug menu III, VC: rwd3d9, sharptrails, PS2 and Xbox map for PC III: Skin and Bones, Into TheTimecycle!!!, LC98 VC: Beta Infernus, Phoenix and Cop car SA: PS2 to PC map General: Simple DLL loader My Workshop. Also visit me on github. 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