Author Topic: Exporting 3D Car Models with Tires/Wheels  (Read 1321 times)

WillieSLT

  • Newbie
  • *
  • Posts: 4
    • View Profile
Exporting 3D Car Models with Tires/Wheels
« on: December 10, 2021, 01:30:14 AM »
Hello everyone. I've been playing a lot of Assetto Corsa lately, and had an idea of trying to port/replicate the style of a early 90's 3D car model into the game. Then I remembered Stunts, and was wondering if there was a way to export the car models. After a bit of searching, I found this forum and the Stunts Wiki, and then CarWorks and Stressed by way of that.

I tried CarWorks first, but I can't seem to get it to display 3D models for any car files (ex. carvett.res), nor could I find any key commands in the manual, or options to export anything, even if I was seeing models. My understanding is CarWorks is supposed to be able to generate wheels? Maybe that's only when importing a custom model though? I'm using Stunts v1.1, for what it's worth.



Stressed did seem to work, but it only exports the car body, which based on further searching on the forum, seems to be expected functionality? My understanding being the wheels aren't polygons, and are maybe completely separate entities from the car body model itself? I was hoping to find a way to export either a model with the wheels, or export the wheels separately as an .obj file or something similar that I could import into Blender. Worst case scenario, I guess I can try and replicate them as they're pretty simple looking cylinder shapes with a small texture on them, but I thought I would ask here first to see if anyone might have any insight into that. Thanks!

alanrotoi

  • Makes love with Stunts
  • ******
  • Posts: 4736
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #1 on: December 10, 2021, 02:02:06 AM »
Welcome! As far as I know the 3d models are saved in .P3S files in the game and after the edit the files are .3SH Stunts can read these files perfectly.

Daniel3D

  • Tunnel Twister
  • ***
  • Posts: 1383
  • so many ideas....
    • View Profile
    • Stunts resources.
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #2 on: December 10, 2021, 06:31:48 AM »
Hi and welcome to the forum.
If you load a car in stressed you can export the model as obj file.

Quote
Worst case scenario, I guess I can try and replicate them as they're pretty simple looking cylinder shapes with a small texture on them,
It will not have wheels because they are rendered by the game engine based on a few lines. But the rest of the car can be exported easily.

In stressed car0 has the most details.
« Last Edit: December 10, 2021, 08:16:42 AM by Daniel3D »
Edison once said,
“I have not failed 10,000 times,
I’ve successfully found 10,000 ways that will not work.”
---------
Currently running over 20 separate instances of Stunts or 4D Sports Driving.

alanrotoi

  • Makes love with Stunts
  • ******
  • Posts: 4736
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #3 on: December 10, 2021, 01:40:53 PM »
In stressed car0 has the most details.

BTW is the same limit for car0 and car1?

Daniel3D

  • Tunnel Twister
  • ***
  • Posts: 1383
  • so many ideas....
    • View Profile
    • Stunts resources.
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #4 on: December 10, 2021, 02:15:15 PM »
Yes
Edison once said,
“I have not failed 10,000 times,
I’ve successfully found 10,000 ways that will not work.”
---------
Currently running over 20 separate instances of Stunts or 4D Sports Driving.

WillieSLT

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #5 on: December 10, 2021, 02:20:26 PM »
Thank you for confirming that Daniel3D/alanrotoi. I had already gone through that process in Stressed with the Corvette model, so I will just continue to do that with any other models, and do my best to recreate the tires/wheels in Blender. :)

Daniel3D

  • Tunnel Twister
  • ***
  • Posts: 1383
  • so many ideas....
    • View Profile
    • Stunts resources.
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #6 on: December 10, 2021, 02:39:16 PM »
If you share the cars with anyone please mention the source and our forum. In case someone gets nostalgic and wants to race old school  8)
Edison once said,
“I have not failed 10,000 times,
I’ve successfully found 10,000 ways that will not work.”
---------
Currently running over 20 separate instances of Stunts or 4D Sports Driving.

WillieSLT

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #7 on: December 10, 2021, 03:05:48 PM »
If you share the cars with anyone please mention the source and our forum. In case someone gets nostalgic and wants to race old school  8)
Absolutely. I'll make sure to share on here if I can get one of them into AC as well so anyone who maybe plays it can try a Stunts car in more of a simulator.

Cas

  • Highway Horror
  • ****
  • Posts: 1430
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #8 on: December 10, 2021, 09:36:28 PM »
Hi, Willie!

And yes. The reason why you weren't able to open the 3D shapes in CarWorks is because original cars come with its files packed (P3S for the 3D shape and PVS for the dashboard images) and only the RES file (that contains the behaviour information mostly) can be directly read. There's another tool called "stunpack" that comes with Stressed and can be used to unpack these files to 3SH and VSH, which CarWorks can read. Correctly configured, CarWorks will automatically call this tool when reading compressed files. The current version is missing a few things, but does indeed generate the wheels (although it doesn't display them in the 3D view).

3D shapes in Stunts are stored in a way that can represent polygons up to 10 sides, but also wheels, points, line segments and spheres. When Stressed and CarWorks export to OBJ, there is nothing they can use to represent anything that's not a polygon, so these items are not exported. It would be possible to make a tool that can export to OBJ in a way that's more oriented towards using the model in Blender and other tools, but without the intention of later bringing the model back to Stunts. In that case, wheels and spheres could be rebuilt as sets of polygons and line segments could be represented as thin polygons. I've considered this at some point. It's some work and it's probably easy enough to just recreate these items in Blender, but maybe one day I'd do that. Somebody asked some time ago about a tool to export a Stunts track with all of its elements to a format readable by Blender. The difficulty would be exactly the same. Both things could be solved with the same procedure.
Earth is my country. Science is my religion.

llm

  • Otto's Student
  • **
  • Posts: 376
    • View Profile
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #9 on: December 13, 2021, 12:20:19 PM »
@Cas
Quote
It would be possible to make a tool that can export to OBJ in a way that's more oriented towards using the model in Blender and other tools, but without the intention of later bringing the model back to Stunts. In that case, wheels and spheres could be rebuilt as sets of polygons and line segments could be represented as thin polygons. I've considered this at some point. It's some work and it's probably easy enough to just recreate these items in Blender, but maybe one day I'd do that.

im waiting for that day :)

would so great to make a Stunts movie in Blender - still flat shaded but maybe with ligthing, shadows etc., or a glass/chrome version :)

Daniel3D

  • Tunnel Twister
  • ***
  • Posts: 1383
  • so many ideas....
    • View Profile
    • Stunts resources.
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #10 on: December 13, 2021, 12:47:59 PM »
I believe that it is possible to (if all shapes are exported as obj) program a track loader within softimage xsi.
I've never got so far in my learning of the program, and I'm 20 years out of practice... But I will look into it.
I could export any track as obj that way..
Edison once said,
“I have not failed 10,000 times,
I’ve successfully found 10,000 ways that will not work.”
---------
Currently running over 20 separate instances of Stunts or 4D Sports Driving.

llm

  • Otto's Student
  • **
  • Posts: 376
    • View Profile
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #11 on: December 13, 2021, 02:48:06 PM »
I believe that it is possible to

its not a question of possiblity - its only a too less spare time on my side :)

Daniel3D

  • Tunnel Twister
  • ***
  • Posts: 1383
  • so many ideas....
    • View Profile
    • Stunts resources.
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #12 on: December 13, 2021, 06:32:49 PM »
Then we have the same idea/problem  8)
Edison once said,
“I have not failed 10,000 times,
I’ve successfully found 10,000 ways that will not work.”
---------
Currently running over 20 separate instances of Stunts or 4D Sports Driving.

WillieSLT

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #13 on: December 13, 2021, 07:38:01 PM »
The reason why you weren't able to open the 3D shapes in CarWorks is because original cars come with its files packed (P3S for the 3D shape and PVS for the dashboard images) and only the RES file (that contains the behaviour information mostly) can be directly read. There's another tool called "stunpack" that comes with Stressed and can be used to unpack these files to 3SH and VSH, which CarWorks can read. Correctly configured, CarWorks will automatically call this tool when reading compressed files. The current version is missing a few things, but does indeed generate the wheels (although it doesn't display them in the 3D view).
Thanks for that explanation. I had read that CarWorks allowed for importing and setup of custom cars, so I figured it was full intended for that after I wasn't able to view the base cars models by default. I was unaware of "stunpack" for Stressed, but thanks for mentioning that!

3D shapes in Stunts are stored in a way that can represent polygons up to 10 sides, but also wheels, points, line segments and spheres. When Stressed and CarWorks export to OBJ, there is nothing they can use to represent anything that's not a polygon, so these items are not exported. It would be possible to make a tool that can export to OBJ in a way that's more oriented towards using the model in Blender and other tools, but without the intention of later bringing the model back to Stunts. In that case, wheels and spheres could be rebuilt as sets of polygons and line segments could be represented as thin polygons. I've considered this at some point. It's some work and it's probably easy enough to just recreate these items in Blender, but maybe one day I'd do that.
Thanks for the explanation of that as well. Once I saw that Stressed broke the pieces down into polygon and non polygon based elements, and it wasn't exporting the wheels/tires, I figured it wasn't possible in either program. If I get around to this idea, I'll either just try and make some simple cylindrical wheels in Blender, or take some existing wheels from a similar AC car if need be for physics. It might not like perfectly smooth wheels/tires in that game.

Somebody asked some time ago about a tool to export a Stunts track with all of its elements to a format readable by Blender. The difficulty would be exactly the same. Both things could be solved with the same procedure.
I think I saw that discussion actually before posting this thread. Totally understandable about the difficulty involved. Would still be interesting to see it though, so mark me down as someone would would like to see it happen someday. 👍

Cas

  • Highway Horror
  • ****
  • Posts: 1430
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: Exporting 3D Car Models with Tires/Wheels
« Reply #14 on: December 13, 2021, 09:19:18 PM »
Sure!  I would like to have that too. Maybe I should start with what's available first. Also, I'm not sure if OBJ would be the best format for such a big thing like transforming the whole track with cars, etc. Perhaps it could perfectly be, but maybe some other of the formats that Blender can recognise will have more features. For example, another thing that OBJ files can't handle is grilles, which are extensively used in Stunts 3D shapes. The easiest adaptation would be to replace that with a transparency index, but it's not the same. I'm not very "proficient" at Blender, but I'm pretty sure there is a way to create grille textures and then apply them in a way that they remain transparent in some parts.
Earth is my country. Science is my religion.