Join also our Discord channel! Click here.

Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D file

Post questions about game models here, or help out others!
User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D file

Post by Ferrari formula 1 » Sun Dec 13, 2015 3:41 pm

Hello everyone!

After a long search I found tools for converting models from CMR04/05 and they work,but I got errors with every model.
Basically,they all have damaged normal data and some of the faces are facing wrong direction.

Maybe there's a way to automatically fix them or fix the script?

Here are the examples and a script [roll]

http://www.mediafire.com/download/h9k8q ... AMPLES.rar

Image
Image

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Sun Dec 13, 2015 8:02 pm

Ferrari formula 1 wrote:Hello everyone!

After a long search I found tools for converting models from CMR04/05 and they work,but I got errors with every model.
Basically,they all have damaged normal data and some of the faces are facing wrong direction.
First of all: whose script is it?
Can't tell about normals since you didn't provide the textures for Lansd.p3d.
What do you mean by "damaged" normal data and wrong directed faces?
(Guess you mean those black holes visible in max?)

Would be helpful to have textures.

(Only oddness I can see so far are those additional submeshes/rectangles which can be erased to make the model look better.
Well, and the position of the steering wheel is a little bit funny. :D )
Lansd.JPG
(I would suggest to separate the lod models. But I don't have the time to modify the script.)
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
MichaelDarkAngel
mega-veteran
mega-veteran
Posts: 267
Joined: Thu Nov 04, 2010 11:25 pm
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Been thanked: 165 times
Contact:

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by MichaelDarkAngel » Mon Dec 14, 2015 3:56 am

I fear there is no quick fix for this script.

Parenting is read, but never applied. That would possibly fix the rotation issues with the steering wheel and wiper blades and make it easier to separate the lod meshes. Something strange going on with the way the faces are read and the normals are applied and then manipulated. There also may be some vertex issues, but what I'm seeing there may be caused by the face issue, or vice-versa.

--MDA
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Mon Dec 14, 2015 9:44 am

Thx - now I can see wrong/strange faces at least:
Lansd_.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Ferrari formula 1 » Mon Dec 14, 2015 10:31 am

I don't know who made this script,It's old and it was very hard to find,I searched for hour visiting dead websites which are not updated since 2006 :)

Here are the textures for tests :)
http://www.mediafire.com/download/awp52 ... xtures.rar

Kinda like how It's supposed to look like (Simulated with DoubleSided Shader,you can still easily see broken places)
Image

And what it looks like when It's imported :[
Image

Image
Image

A look at the normals in 3DSMax,they seem to be just reversed
Image
shakotay2 wrote:Thx - now I can see wrong/strange faces at least:
Lansd_.JPG
I bet It's just a broken tire model,not a corrupted face...

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Mon Dec 14, 2015 11:19 am

Ferrari formula 1 wrote:Here are the textures for tests :)
thanx. :)
A look at the normals in 3DSMax,they seem to be just reversed
In blender there's a "flip normals" button.
There should be something similar in max. But you should apply it to the concerning submeshes only - not the whole model.
Hmm, that's strange: it's only some of the faces of a submesh which have wrong orientated normals.
strangeNormals.JPG
Guess the face winding of those 6 faces is incorrect. Means you have to dig into the script how the faces are constructed.

Sadly I'm too busy with my own projects but I'll check the Lansd submeshes sooner or later.
I bet It's just a broken tire model,not a corrupted face...
I see - but one face is corrupt, obviously. :D
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Ferrari formula 1 » Mon Dec 14, 2015 12:09 pm

shakotay2 wrote:
Ferrari formula 1 wrote:Here are the textures for tests :)
thanx. :)
A look at the normals in 3DSMax,they seem to be just reversed
In blender there's a "flip normals" button.
There should be something similar in max. But you should apply it to the concerning submeshes only - not the whole model.
Hmm, that's strange: it's only some of the faces of a submesh which have wrong orientated normals.
strangeNormals.JPG
Guess the face winding of those 6 faces is incorrect. Means you have to dig into the script how the faces are constructed.

Sadly I'm too busy with my own projects but I'll check the Lansd submeshes sooner or later.
I bet It's just a broken tire model,not a corrupted face...
I see - but one face is corrupt, obviously. :D
There are flip normals options both in Cinema4D and 3DSMax but there's a bit of a problem with it

1)Flipping normals on some faces from a whole part is very hard in 3DSMax
2)Some of the parts(Like mudflaps) are correct and supposed to use double-sided shaders
3)When I'm doing it in Cinema4D I get this,even strangier problem (for example,wing and spoiler)

Image
Image
Image
Image

And I can't really dig into this script because I'm not familliar with Max scripting and data extraction :(

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Mon Dec 14, 2015 1:17 pm

Ferrari formula 1 wrote:And I can't really dig into this script because I'm not familliar with Max scripting and data extraction :(
maybe you don't need to. :)
I'm not sure but maybe it's just a matter of handling materials/textures in 3ds max?
I simply put SDBod.dds onto the whole selected mesh and the door texture seems to be ok despite those few wrong orientated normals.
Lansd_looks_fine_doesn't_it.JPG
(I didn't unselect the window glass so the texture appears there, too. Sry for that. :D )

btw: what a genius script. Really would like to know who the creator was or from which site you got it.
You do not have the required permissions to view the files attached to this post.
Last edited by shakotay2 on Mon Dec 14, 2015 3:04 pm, edited 1 time in total.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Ferrari formula 1 » Mon Dec 14, 2015 3:03 pm

shakotay2 wrote:
Ferrari formula 1 wrote:And I can't really dig into this script because I'm not familliar with Max scripting and data extraction :(
maybe you don't need to. :)
I'm not sure but maybe it's just a matter of handling materials/textures in 3ds max?
I simply put SDBod.dds onto the whole selected mesh and the door texture seems to be ok despite those few wrong orientated normals.
Lansd_looks_fine_doesn't_it.JPG
(I didn't unselect the window glass so the textures appears there, too. Sry for that. :D )

btw: what a genius script. Really would like to know who the creator was or from which site you got it.
Well,first of all,even if 3ds max shows textured car correctly(doesn't works for me :D But it's still pretty useless...),it doesn't fixes the normals and it can't be used anywhere outside the 3DSMax
Image

I also have a script for CMR04 Models but it works absolutely the same way with the same errors(can post with examples if needed)

There's no alive website with this archive(they are all dead) and I just was lucky enough to find an archive on Russian social network with utilites for CMR04/05 by some annonymous :[

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Mon Dec 14, 2015 3:20 pm

Ferrari formula 1 wrote:Well,first of all,even if 3ds max shows textured car correctly(doesn't works for me :D But it's still pretty useless...),it doesn't fixes the normals and it can't be used anywhere outside the 3DSMax
I see - same problem with blender.
Lansd_blender.JPG
Maybe I'll find out why 3dsmax displays that textured door correctly in my previous post. Guess it uses LOD2's normals or something like that.
(As I've told I've selected the complete mesh before applying the texture.)
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Ferrari formula 1 » Mon Dec 14, 2015 3:29 pm

shakotay2 wrote:
Ferrari formula 1 wrote:Well,first of all,even if 3ds max shows textured car correctly(doesn't works for me :D But it's still pretty useless...),it doesn't fixes the normals and it can't be used anywhere outside the 3DSMax
I see - same problem with blender.
Lansd_blender.JPG
Maybe I'll find out why 3dsmax displays that textured door correctly in my previous post. Guess it uses LOD2's normals or something like that.
(As I've told I've selected the complete mesh before applying the texture.)
Well,how could it do that? When I'm importing the car there are no any lod parts...
Car is just LOD0 everywhere :D

Maybe it just ignores the rules and shows it by using double-sided shader?
(As I showed before)

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2910
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 743 times
Been thanked: 1498 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by shakotay2 » Mon Dec 14, 2015 11:03 pm

Ferrari formula 1 wrote:When I'm importing the car there are no any lod parts...
Car is just LOD0 everywhere :D
yeah, it's simply an inner and an outer door. I confused that. :roll:
I also have probs to get the correct sum of 315 verts for both parts of the door:
Lansd_door.JPG
Just another project for life time wasters... :D

There's something strange with the creation of tristripped faces in this script.
There's only aface = [fa,fb,fc].
Normally you've an alternative assignment such as aface = [fa,fc,fb] depending on a face orientation variable which toggles with each face.
I'll check that...

(But not sure whether adding aface = [fa,fc,fb] will do any good because too many faces are correct.)

yay, seems I got it - at least for that damned door.
try

Code: Select all

					face_array = #()
					faceDir = 1
and

Code: Select all

						if ((fa!=fb)and(fa!=fc)and(fc!=fb)) then
						(
							faceDir *= -1 ;
							if faceDir > 0 then aface = [fa,fb,fc]
							else aface = [fa,fc,fb]
							append face_array aface							
						)
Checked for the right door only. So don't blame me if there's still other weird meshes...
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Shine
beginner
Posts: 21
Joined: Mon Sep 22, 2014 6:15 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Shine » Wed Dec 16, 2015 9:15 am

how to extract Colin Mcrae Rally 05 textures from BIG?
cmr04big.exe not working?

User avatar
Ferrari formula 1
advanced
Posts: 72
Joined: Mon Aug 11, 2014 11:42 am
Has thanked: 28 times
Been thanked: 11 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Ferrari formula 1 » Wed Dec 16, 2015 11:55 am

shakotay2 wrote:
Ferrari formula 1 wrote:When I'm importing the car there are no any lod parts...
Car is just LOD0 everywhere :D
yeah, it's simply an inner and an outer door. I confused that. :roll:
I also have probs to get the correct sum of 315 verts for both parts of the door:
Lansd_door.JPG
Just another project for life time wasters... :D

There's something strange with the creation of tristripped faces in this script.
There's only aface = [fa,fb,fc].
Normally you've an alternative assignment such as aface = [fa,fc,fb] depending on a face orientation variable which toggles with each face.
I'll check that...

(But not sure whether adding aface = [fa,fc,fb] will do any good because too many faces are correct.)

yay, seems I got it - at least for that damned door.
try

Code: Select all

					face_array = #()
					faceDir = 1
and

Code: Select all

						if ((fa!=fb)and(fa!=fc)and(fc!=fb)) then
						(
							faceDir *= -1 ;
							if faceDir > 0 then aface = [fa,fb,fc]
							else aface = [fa,fc,fb]
							append face_array aface							
						)
Checked for the right door only. So don't blame me if there's still other weird meshes...
Wow,man,you rock!Amazing stuff! 8D

Oh and could you please send me your .ms script? Seems like I'm modifying it not correctly and I can't change it:D
how to extract Colin Mcrae Rally 05 textures from BIG?
cmr04big.exe not working?
Here are all the tools for cmr 04/05. theese can extract car textures and sounds.
http://www.mediafire.com/download/m14y3 ... ntools.rar
To extract textures/sounds from 05 version of the game you should first convert bin file with CMR5_BIG_decomp.exe and only then convert them with cmr04big.exe :wink:

Shine
beginner
Posts: 21
Joined: Mon Sep 22, 2014 6:15 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D

Post by Shine » Wed Dec 16, 2015 1:18 pm

Thank you the decompress tools!
After decompressed the CMR5 big file use cmr04big tools can get texture easily!

https://www.mediafire.com/?l2pg1fhogpooqyj

Post Reply