LGT(Leo's Games Tools)

Games[PSX, PC, PS2] => Gran Turismo 2 => Tools => Topic started by: Leo2236 on March 19, 2017, 08:09:05 pm

Title: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on March 19, 2017, 08:09:05 pm
-GT2 Car Viewer v0.2.4a- (Release date 16/6/2020)

About:It's an viewer and converter for Gran Turismo 2, tool can preview(without the wheels for now) cars from the game and export the 3D models of the cars to *.OBJ format and the textures to *.TGA 32bit...

Note:
First of all the tool work only along with the GT2VolTools (http://www.airesoft.co.uk/gt2volexploder) which is used to extract GT2.VOL maybe in the future release/s GT2CV will allow to open GT2.VOL directly for simplicity, we'll see... Anyway once you extract GT2.VOL using GT2VolTools (http://www.airesoft.co.uk/gt2volexploder) you should have a folded(among the others) called carobj and that folder GT2CV will use to view and convert GT2 cars.

Tips:
Start GT2CV then click Browse button and select carobj folder the tool will scan that folder and you should have 2220 cars in total(1110 day versions and 1110 night versions of the cars). Then you can export selected car to a chosen folder with all colors that one or another car have or you can export several cars by checking them in list or all of them by checking them all. To export all car at once you gonna need about 2.5GB of free space and the whole process may take about 30 minutes depending on CPU...

Info:
Even though the wheels are not shows in the tool but still one wheel will be included in exported car *.OBJ, it's not hard to clone that wheel and fit it to the car using rotate/scale/position features in some 3D modeler like 3dsmax for example.

Credit:
kian (http://lgt.createaforum.com/index.php?action=profile;u=71) for motivation and all the others for the support!  :)
pez2k & TheAdmiester for creating v0.2.4a update! :)

Here's the change-log since v0.2b:
Quote
v0.2.4a TheAdmiester's fix
Fix quad data left over when loading a smaller car than previous

v0.2.3a
* Fix UV map drawing breaking when a model uses a UV Y coordinate
  of 224.

v0.2.2a

* Port to a newer version of Delphi, to replace an unlicensed
  gzip component with the built-in gzip library. Rewrite use of
  gzip to use this library, which conveniently also fixes crashes
  when scrolling quickly through cars.

v0.2.1a

* Reorganise the UI to maximise the size of the render window.
* Store the last selected path, checkbox state, and render
  background colour in the config file.
* Resize the texture preview to the correct 256x224.
* Change the vertex colour to magenta rather than yellow, and
  shrink the size on the texture preview from 2x2 to 1x1 to trade
  visibility for accuracy.
* Remove the gradient and vignette from the render, as well as
  the FPS counter.


Screenshot: GT2 Car Viewer v0.2.4a
(https://www.mediafire.com/convkey/4705/jm4flfk3vic9og26g.jpg)

Screenshot: GT2 Car Viewer v0.2b
(http://i.imgur.com/P1EGgKP.png)

Vedeo:
https://www.youtube.com/watch?v=N6d9iTI_g1Y

(http://www.lostwindowspassword.com/images/public/download_gif.gif) GT2_Car_Viewer_v0.2.4a (884 KB) (http://www.mediafire.com/file/hizjc1f27v79ah6/GT2CarViewerEdit_v024a.7z/file)

(http://www.lostwindowspassword.com/images/public/download_gif.gif) GT2_Car_Viewer_v0.2b (441 KB) (https://drive.google.com/open?id=0BzhGScKuuD56bG1lcC1Iazl2NkU)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on March 24, 2017, 01:53:52 pm
Very early screenshot of GT2 Car Viewer(GT2CV):
(http://i.imgur.com/FgjBgEz.gif)

Have fix some bugs have add some features, now the tool should be able to export any car to *.OBJ with one flatted texture(not with alpha for now but at the end it will be). Also I'm working on the wheels and have some progress with it too but nothing to show yet...

So I'm continue the work!  ;D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on March 24, 2017, 07:32:28 pm
Wooho! Good job man..
Now the wheels, alpha channel and CTRL-A/CTRL-E (export) AND WOALA :D
<3

Edit: April 15
AND ITS DONE! :D
The GT2 community is going wild..
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on March 27, 2017, 05:39:23 am
Thanks! ;)

I guess I'm done with the texture alpha channel, will do more test but I think it's working fine already, tool will export texture to 32bit *.TGA. Now I'll work on the wheels and some other stuff...

3dsmax render(texture alpha seems fine):
(http://i.imgur.com/WesZ7AF.gif)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on March 27, 2017, 08:23:52 am
Spectacular.
Good job.  :)

Leo.. A bit oftopic. What do you think about this?
https://s20.postimg.org/5jy0j8unh/Untitled.png (https://s20.postimg.org/5jy0j8unh/Untitled.png)

Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on March 27, 2017, 12:30:28 pm
I suppose it's the track for the game you planning to make isn't it? Seems nice, hope to see final version at some point  :)

Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on March 27, 2017, 03:09:14 pm
Thank you :) .. I hope that too xD.
There will be 227 of these square km to do.
I'm still figuring out the best way to do it.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 03, 2017, 01:08:35 am
The good news that I think I've figure out the structure of the wheels(it's completely different from *.CDO) but I think every car use it's owe car wheel properties or somehow the game load default wheel and apply some settings on it.
(http://i.imgur.com/5yZ8uQG.gif)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on April 03, 2017, 07:33:25 pm
Oh god okay.. that actually makes sense.. So.. what can we do now?
Can you make the cars extract with a default small wheels?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 06, 2017, 02:59:57 pm
I suppose all I can do right now is to export car main body with the alpha texture of course(I suppose you're not interesting in lower polygon models do you?) to *.OBJ and put a wheel in it as well, then all you'll have to do is to clone that wheel rotate/scale/pos each of them in 3d modeler that you're using, if it's ok with you I can proceed with that.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on April 06, 2017, 03:55:11 pm
Alright then.. that would solve it.
And ofcourse I'm only interested for the highest poly model.

Thanks man.
Oh about the wheel
Can you make the wheel without the hole.
(https://s11.postimg.org/gdcbjhc5f/Untitled.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 06, 2017, 09:56:27 pm
I see...

About the wheel, I'm not sure if I can do anything, the hole are the part of the wheel I only convert it to *.OBJ...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on April 07, 2017, 01:17:31 pm
Oh so it is supposed to be like this..oh okay than XD
than its all done.. In 3-4 years i'm gonna write again if u would help me code the racing game xd
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on April 08, 2017, 10:42:24 pm
Awesome job with the tool, can't wait to try this this out.  :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 09, 2017, 06:30:29 am
Thanks and welcome @mm2mm1fan!

I think the first release is not so far it's matters of a few days, I hope  ;D

Exported car with wheels in 3dsmax:
(http://i.imgur.com/fFhmW5d.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on April 09, 2017, 07:25:12 am
Oh sweet, thanks for the update! What's left to do?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 09, 2017, 08:32:26 am
Well... I have to add an option that would allow to export multiple cars or all at once, cause right now it allows to export only the selected car plus I need to fix some bugs and add some more options, stuff like that...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on April 11, 2017, 01:41:28 pm
Cool, can't wait :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 12, 2017, 10:25:16 am
The tool is almost ready, just doing some final tests and stuff, so I guess I'll release it today or tomorrow  :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on April 12, 2017, 01:55:54 pm
Thats great news! Another great tool in your arsenal too.
Thank you so very much.. It would had taken 4-5 years to convert em all otherwise.
<3
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on April 12, 2017, 10:42:17 pm
Can't wait! :D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 13, 2017, 08:55:21 am
Ok... the first release is ready, hope I didn't miss anything  :)

First of all the tool work only along with the GT2VolTools (http://www.airesoft.co.uk/gt2volexploder) which is used to extract GT2.VOL maybe in the future release/s GT2CV will allow to open GT2.VOL directly for simplicity, we'll see... Anyway once you extract GT2.VOL using GT2VolTools (http://www.airesoft.co.uk/gt2volexploder) you should have a folded(among the others) called carobj and that folder GT2CV will use to view and convert GT2 cars.

Start GT2CV then click Browse button and select carobj folder the tool will scan that folder and you should have 2220 cars in total 1110 day versions and 1110 night versions cars. Then you can export selected car to a chosen folder with all colors that one or another car have or you can export several cars by checking them in list or all of them by checking them all. To export all car at once you gonna need about 2.5GB of free space and the whole process should take about 30 minutes depending on CPU...

Even though the wheels are not shows in the tool but still one wheel will be included in exported car *.OBJ it's not hard to clone that wheel and fit it to the car in some 3D modeler like 3dsmax.   

One more thing I was testing GT2CV only with SCUS_944.55 so I'm not 100% sure about the other versions  ???

Screenshot:
(http://i.imgur.com/9pnZiWZ.png)

(http://www.lostwindowspassword.com/images/public/download_gif.gif) GT2_Car_Viewer_v0.1b (440 KB) (https://drive.google.com/open?id=0BzhGScKuuD56MU85V3M5aWdqMGs)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Fabrizio on April 13, 2017, 11:54:21 am
Very good job Leo! This tool is simply amazing! Will be any chance in any future update/version to load the cars of the various demos/early builds?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on April 13, 2017, 07:30:36 pm
Thank you <3
Purfect!
Oh you even gave me the credit for motivation 8) f**K yea
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on April 14, 2017, 07:14:51 am
Awesome job, this is going to be fun :D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 14, 2017, 03:20:20 pm
Thank you all for the support!  :)

Will be any chance in any future update/version to load the cars of the various demos/early builds?
If car formats are identical in those demos then maybe yes, by the way send me the link/s for those demos via PM I'll check them at some point.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: tugaevil15 on April 14, 2017, 04:06:59 pm
Congratulations for cool tools.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 14, 2017, 04:24:36 pm
Thanks a lot!
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Fabrizio on April 14, 2017, 06:39:23 pm
Sent you a PM, Leo. Let us know if you can find a way to open the cars from the demos too, Thanks! : )
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 14, 2017, 07:51:34 pm
Sent you a PM, Leo. Let us know if you can find a way to open the cars from the demos too, Thanks! : )
Thanks for the links Fabrizio!... I will check those out just give me some time, cause right now I just wanna take a break from GT2CV cause it took 2-3 weeks to make it ;)

With all respect:
Leonidas...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Fabrizio on April 14, 2017, 08:35:32 pm
Surely, take your time! Good luck!  :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 20, 2017, 07:26:08 pm
Thanks!

Have add support for the GT2 demo that was in the Euro Demo 53 CD, now I'll have to check the other builds...

GT2CV v0.2B WIP:
(http://i.imgur.com/qYmQllK.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kamilm122 on April 21, 2017, 03:05:14 pm
Hi Leo, great work

I have to ask you, what language do you use to make all these tools? Delphi like before? Do you use some library? If so, what library?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 21, 2017, 03:58:50 pm
Thanks!

For the last few years I use Delphi 7 Personal before that I was using Delphi 6 Personal, as for the library I use standard Delphi library mostly but time to time I use some extra Components like PngComponents which allows to use 32bit *.PNG in buttons and some other interface related stuff.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on April 22, 2017, 01:40:08 am
GT2 Car Viewer v0.2b is now available(download link on the first post)! :)

It support all the demos that I know, supported demos are:

*GT2_EARLY (1st Build)
*GT2_BONUS (2nd Build)
*GT2_EURODEMO53 (3rd Build)
*GT2_TESTDRIVE

Thanks to Fabrizio (http://lgt.createaforum.com/index.php?action=profile;u=59)  for providing me with those demos!  ;)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: FMecha on May 04, 2017, 01:10:10 pm
Hello there, I've joined your forums to thank you for this program and report a bug: if you scroll too fast in the car list, the application will crash.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: tugaevil15 on May 05, 2017, 03:04:40 pm
Any future for GT2 race track view?
I was probably able to do a remake on unity 5.xx. But unfortunately the wheelCollider in Unity is not in perfect condition.
Who knows. :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on May 05, 2017, 03:50:09 pm
Hello there, I've joined your forums to thank you for this program and report a bug: if you scroll too fast in the car list, the application will crash.
You welcome and thanks for the bug report, I'll check it out soon  ;)

Any future for GT2 race track view?
Actually yes there is a chance, can't tell when though...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on June 10, 2017, 02:23:25 am
Hi Leo I have a question, I don't know if Zmodeler 2 is importing wrong but the cars have some of the UV mapping off, like the roofs the bottoms and the sides.
(http://i.imgur.com/CPjWmcS.png)
(http://i.imgur.com/ttqUmba.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Andrakann on July 06, 2017, 09:36:59 pm
Greetings!

You made an excellent tool and great progress in Gran Turismo series reverse engineering, congratulations! :)

I got some bugs with exporting to OBJ:
Car a2azn.cdo looks good in viewer:
(http://i.imgur.com/EESGmGO.png)
but loses tail lights in OBJ form (in fact, they hidden behind a trunk polygons, i delete one for screenshot):
(http://i.imgur.com/e04OGqc.png)
and some details is missing (same way) for a222n.cdo, but there's another problem with car name on the trunk, it's intersected in viewer too:
(http://i.imgur.com/46nZkJk.png) (http://i.imgur.com/GwVW10e.png)
Most of night versions of cars also have problems with lights glow.

For OBJ i think it's caused by low precision - 3 symbols after dot it's really low, it's better to use 5-6 symbols.
But for viewer IDK, maybe PS models have low precision in overall?..
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: lude on July 18, 2017, 11:24:14 pm
hello
I love the tool, I really enjoy the low poly car models from these era of games. I have a question though. When I export a model all I get are the obj file and the tga texture files. Isn't there supposed to be an mtl file as well- so modelling programs know which texture to use and how to apply it? When I import the model I don't see the texture map, its just flat shaded. I'm not so good with this stuff so forgive me if its an amateur problem.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Wasabi on July 19, 2017, 12:39:00 am
hello
I love the tool, I really enjoy the low poly car models from these era of games. I have a question though. When I export a model all I get are the obj file and the tga texture files. Isn't there supposed to be an mtl file as well- so modelling programs know which texture to use and how to apply it? When I import the model I don't see the texture map, its just flat shaded. I'm not so good with this stuff so forgive me if its an amateur problem.
Hi, you dont need to apologize for be a learner (and coming to 3D there's a lot to)
If you use Blender I can help you. I didn't tried this tool since long ago and its uninstalled atm, but probably the UV are stored so you only have to set the material (texture) and save it to desired format.
Just select the mesh and click on the chessboard-like icon you'll see at panel header (right side of screen)
(https://wiki.blender.org/uploads/5/53/Manual-Interface-Panels-PropertiesPanels-25.png)
Repeat with every mesh group if necessary. If nothing happens, then you need to create a materials page... and if this doesn's sound familiar to you I lovingly recommend you to grab this (It's one of my bibles)https://people.sc.fsu.edu/~gerlebacher/gd/blender/blender/blender_noob_to_pro.pdf (https://people.sc.fsu.edu/~gerlebacher/gd/blender/blender/blender_noob_to_pro.pdf)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: lude on July 19, 2017, 02:14:02 am
Hi, you dont need to apologize for be a learner (and coming to 3D there's a lot to)
If you use Blender I can help you. I didn't tried this tool since long ago and its uninstalled atm, but probably the UV are stored so you only have to set the material (texture) and save it to desired format.
Just select the mesh and click on the chessboard-like icon you'll see at panel header (right side of screen)
Repeat with every mesh group if necessary. If nothing happens, then you need to create a materials page... and if this doesn's sound familiar to you I lovingly recommend you to grab this (It's one of my bibles)https://people.sc.fsu.edu/~gerlebacher/gd/blender/blender/blender_noob_to_pro.pdf (https://people.sc.fsu.edu/~gerlebacher/gd/blender/blender/blender_noob_to_pro.pdf)

thanks for your response, but alas I am still lost. I am indeed using blender, and this is the current state of my progress lol.
(https://pictr.com/images/2017/07/19/ZyJ0g.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Wasabi on July 19, 2017, 03:30:58 pm
You seem to did well. You don't need a camera unless you want to get a render pic in Blender Cicles engine or use the Blender Game Engine.
Select your point lamp and change it to "Hemi" with "Specular" unticked. You are in solid mode and textures doesn't display on it, so go to the lower panel
and right to "Object Mode" you'll see a white sphere icon. Click it and change to materials/texture or render mode. You did it!
EDIT: light properties are in the right panel header. The icon appear only with lamp selected. And dont forget to swap between flat and smooth shading (left panel, tools tab)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on September 16, 2017, 07:59:25 pm
Hello! Thanks for approving me~

Firtly, Thanks a lot for making this tool for us GT enthusiasts! It really is amazing. However I was wondering.... since the tool allows to convert .cdo/cno/cdp/cnp into .OBJ and .TGA, I was wondering if you think it would be possible to have the program compile .OBJ and .TGA textures into the original file types?

Of course, that's on the assumption that there is nothing missing from the exported OBJ, like wheel handles, or any type of data that the game's engine might use to render the car properly in-game.

Thanks for taking the time to make this tool for us in the first place :D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on December 22, 2017, 03:25:31 am
I miss you Leo.. I wonder what were you doing the past year.
Any plans?

I'm planning to buy a b360 motherboard for a intel i5 8600k and 32gb of ram that are waiting for me.
And from time to time really commit into figuring out ways of how I should do my province in 3D.
After that is done then I think it will be all about learning how to program and put all the GT2 cars in the game..
Then make a mmo racing game out of it
http://polycount.com/discussion/194715/remeshing-terrain-questions/p1?new=1

Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on December 26, 2017, 04:22:53 pm
Basically all I was doing the past year is playing games before just recently my monitor and graphic card burnt out together at the same time, I already bought another monitor and tomorrow I'll buy new GPU, and I guess I'll play some more games  :)

Good luck with your project and with the PC assembling!  ;)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on December 29, 2017, 08:44:00 pm
Glad you are having fun!
I've been worried cus you weren't active here.
So thank you for the reply :)

Thanks.. I hope I'll have smooth sailing with my project.
Btw.. when you feel like it. Could you do another big contribution to the community?
I was thinking about Gran Turismo 2 Track Viewer.
That would probably give the community everything needed to reverse engineer GT2.
I should had thought of this sooner.. you'd probably feel generous for christmas. xD

Anywho :) Happy xmas and new year!






Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on January 05, 2018, 11:57:37 am
Thanks for the care and the wishes, same to you!  :)

As about the Gran Turismo 2 Track Viewer sorry but I must say no at least for now, simply because I don't want to start another yet project that I won't be able to finish... It just that I don't have much interest left for all this kind of stuff after all this years, and without interest I think there's no point to even start... But who knows what tomorrow will bring!?  ???
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on January 05, 2018, 07:04:58 pm
Thank you..
I understand and I can relate.. It comes and goes just as fast as it comes.
When the time is right then :)
I'll check out the forum from time to time to see if there is anything you will be working on.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on January 08, 2018, 06:39:33 am
Hello again! Happy New Year!
Then if you don't have any plans to work on that right now @Leo2236 would it be possible for you to give me the source code for the GT2 Vehicle viewer? It's been done in Delphi, right? That way I can try to understand it and add a repacker for the .cdo, .cno, .cdp and .cnp formats...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on January 08, 2018, 06:46:04 am
Hello and Happy New Year to you too!

Sure no problems, just give me a few minutes and I'll post the source ;)

And yes it was done using Delphi, btw I used version Delphi 7 Personal, also you may need some extra components to compile the project but they easy to find...

Edit:
Here's the source>
https://drive.google.com/open?id=1xlbLoLNenzQzRPe5Ud3WPHe52SMCj0Wu



Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on January 08, 2018, 10:09:28 pm
Delphi 7 Personal. Noted. Thanks a bunch! :D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on January 09, 2018, 02:05:05 am
You welcome, I wish you achieve all your goals, and please do not forget to share your results with us, good luck!  ;)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on January 13, 2018, 07:23:50 pm
Will do if we manage do make anything out of it :D
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: guest70 on February 11, 2018, 04:19:14 am
You welcome, I wish you achieve all your goals, and please do not forget to share your results with us, good luck!  ;)
Hey leo i sent you a pm.Check it out when you can,surely when you will be able to visit the website.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on May 25, 2018, 06:50:28 pm
Hi Leo, I was wondering if you ever fixed the uv mapping issues when the cars are exported to obj

Hi Leo I have a question, I don't know if Zmodeler 2 is importing wrong but the cars have some of the UV mapping off, like the roofs the bottoms and the sides.
(http://i.imgur.com/CPjWmcS.png)
(http://i.imgur.com/ttqUmba.png)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on May 26, 2018, 01:21:12 pm
Hi, I'm aware of this issue but I'm afraid I can't do anything from my apart to fix it, the problem is that as you probably know PSX doesn't use any kind of filter for it's textures like PC does, and if I disable in 3dsmax texture filtering by setting it to Nearest(similar to PSX filtering) the texture look fine Pic1 but if I set filter to Anisotropic the problems appears Pic2... So I guess the tool export correctly UV's, I think It just that the cars are textured to work correctly only without filtering!? :-\

Pic1:
(https://i.imgur.com/pBoa8GP.png)

Pic2:
(https://i.imgur.com/sSGsgJP.png)

Sorry I didn't answered your previous post,  I've completely forgot about it...
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: mm2mm1fan on May 26, 2018, 11:10:01 pm
Thanks for responding, I'll look and see if I can turn off the filter in ZModeler and Blender :D

Edit: So it worked in Blender but when I reexported it to obj for ZM2 it was messed up again. Anyway I can change the texture filter on the material or rework the textures so they would work with the texture filter?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on July 17, 2018, 08:05:21 am
Passing by..
Oh so thats why I see those pink lines. Good to know that.
So sup Leo.. Hows life?
I just can't wait to see those Gran Turismo 2 cars running in here.
(https://s15.postimg.cc/461v3a51z/woow.png) (https://postimg.cc/image/461v3a51z/)
I've figure out how I'm gonna do it.  once I can make this one square km I will make every one.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on March 02, 2019, 06:27:50 am
Look Leonidas.. All the pieces of the puzzle are slowly falling together! :3
(https://i.postimg.cc/McgY8ttm/Hope.png) (https://postimg.cc/McgY8ttm)
(https://i.postimg.cc/Fk4gYRMf/Trying-Hard1.png) (https://postimg.cc/Fk4gYRMf)
(https://i.postimg.cc/ftXfWXrn/Trying-Hard3.png) (https://postimg.cc/ftXfWXrn)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: harmalarm on May 05, 2019, 01:47:00 pm
Hi Leo2236,

I have a question about the texture format (cdp, cnp) and perhaps you can help me out. I am trying to make a GT2 I/O Maxscript set, just for practicing Maxscript. So far I have managed to get the actual models in-game with UV coordinates, but I am struggling with the textures. What I understand so far is that they are 256x224 textures, with a number of palettes for the color changes of the cars. I know the colors are indexed from the address of 17312 (43A0h), and I understand that the palette colors are basically 16x16 colors, all made up out of words (two bytes).

What I don't understand is that the color indexes all refer to 4bit values (0-15) while the texture uses 256 colors. Certain parts of the texture use a certain 16 color palette strip? I cannot find out how the game knows which part of the texture uses which palette. But perhaps I am totally wrong in this assumption?

Also, I am having trouble reading the word values to rgb colors in Maxscript. I suspect it is a 16bit color (rgb565) but when looking at your source files you do some bit shift and and operations that I don't really understand. Everything I can find on the internet is referring to different shift operations and I am quite confused now.

Would it be possible for you to give me a quick explanation of your procedure in simple terms? You have written your tool in Delphi, which I can follow for the most part, but I am stuck at the color values and palette indices at the moment.

cheers and thanks for your awesome tools which have inspired me much  :D,
Harmalarm
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: harmalarm on May 10, 2019, 11:44:17 am
Well, at least I figured out I was wrong in one of my assumptions. The textures are using rgb555 instead of rbg565, so I got that part licked now. Only need to figure out how to determine which part of the texture is using which part of the 256 color palette.
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on May 25, 2019, 07:50:59 am
sorry I didn't answered you earlier, about your last question as far I can remember the each polygon data have some value(bit shift) that tell which palette to use in which polygon, that's all I can remember...

Here's the source BTW:
https://drive.google.com/open?id=15MBQb1HELJCa4Zx7GsJDq3NF4y4wUZX0

@kian that looks nice!
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: harmalarm on May 27, 2019, 03:28:46 pm
Awesome Leo, thanks for the info. I took a quick dive in your files and found it in texture_maker.pas
for triangles:
PI := ((TR1[LOD, ii].UKN13 shr 6) *4) +(TR1[LOD, ii].UKN13 and $003F);
for quads:
PI := ((QU1[LOD, ii].UKN12 shr 6) *4) +(QU1[LOD, ii].UKN12 and $003F);

I have never seen a situation like this before, but then again this is an old game and they used old tricks to get things rendered :D

Thanks again for the sources. would it also be possible for you to send me the sources of your track tool, perhaps via PM?
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on May 28, 2019, 11:41:09 am
...would it also be possible for you to send me the sources of your track tool, perhaps via PM?
sure thing, check your PM ;)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on June 16, 2020, 08:09:25 pm
Hello everyone, I come with an updated GT2 car viewer thanks to Leo's source code, with his approval.
The edit was done mostly by pez2k, with a quick fix by TheAdmiester.

Here's the changelog:

v0.2.4a TheAdmiester's fix
Fix quad data left over when loading a smaller car than previous

v0.2.3a
* Fix UV map drawing breaking when a model uses a UV Y coordinate
  of 224.

v0.2.2a

* Port to a newer version of Delphi, to replace an unlicensed
  gzip component with the built-in gzip library. Rewrite use of
  gzip to use this library, which conveniently also fixes crashes
  when scrolling quickly through cars.

v0.2.1a

* Reorganise the UI to maximise the size of the render window.
* Store the last selected path, checkbox state, and render
  background colour in the config file.
* Resize the texture preview to the correct 256x224.
* Change the vertex colour to magenta rather than yellow, and
  shrink the size on the texture preview from 2x2 to 1x1 to trade
  visibility for accuracy.
* Remove the gradient and vignette from the render, as well as
  the FPS counter.

Here's the download to the archive. http://www.mediafire.com/file/hizjc1f27v79ah6/GT2CarViewerEdit_v024a.7z/file

The source code to it is available upon request.

Here's an image to show the changes (background color is changeable in the .ini)
(https://www.mediafire.com/convkey/4705/jm4flfk3vic9og26g.jpg)

Happy car viewing!
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Leo2236 on June 16, 2020, 10:05:30 pm
Thanks a lot for the update! Have add download link the screenshot and all the rest to the first post :)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: submaniac93 on June 17, 2020, 12:17:10 am
Awesome ^^
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: xXxKOKExXx on June 17, 2020, 10:51:18 am
Hi Leo!

i wish you will be able to "read" the others tracks of GT series ( to can remake them to others games).

up today, this is your Trial Mountain mesh.

before

(https://i.imgur.com/ZRfLpsx.jpg)


after ( and still to much to do)

(https://i.imgur.com/J3bqxlo.jpg)


(https://i.imgur.com/Om8syui.jpg)


yes, thats your cars ;) good for atrezzo

i hope you would give some love to GT Track tool and reach the vision ( for exporting) of the rest of the tracks. Assetto community will be grateful to you forever ;)
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: Tosyk on June 17, 2020, 02:08:40 pm
this is cool! thanks for update guys! love old game models
Title: Re: GT2 Car Viewer: A tool to view GT2 cars...
Post by: kian on July 12, 2020, 08:55:19 am
Thank you Submaniac and Leo. I see some nice projects going on. Me very proudina :)