XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Sep 22, 2018 4:05 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D file
PostPosted: Sun Dec 13, 2015 3:41 pm 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
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


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Sun Dec 13, 2015 8:02 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
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 )

(I would suggest to separate the lod models. But I don't have the time to modify the script.)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 3:56 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 163 times
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


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 9:44 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
Thx - now I can see wrong/strange faces at least:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 10:31 am 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
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:


I bet It's just a broken tire model,not a corrupted face...


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 11:19 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
Ferrari formula 1 wrote:
Here are the textures for tests :)
thanx. :)

Quote:
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.

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.

Quote:
I bet It's just a broken tire model,not a corrupted face...
I see - but one face is corrupt, obviously. :D


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 12:09 pm 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
shakotay2 wrote:
Ferrari formula 1 wrote:
Here are the textures for tests :)
thanx. :)

Quote:
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.

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.

Quote:
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 :(


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 1:17 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
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.

(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.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Last edited by shakotay2 on Mon Dec 14, 2015 3:04 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 3:03 pm 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
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.

(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 :[


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 3:20 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
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.

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.)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 3:29 pm 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
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.

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)


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Mon Dec 14, 2015 11:03 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
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:

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:
               face_array = #()
               faceDir = 1
and
Code:
                  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...


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Wed Dec 16, 2015 9:15 am 
Offline
beginner

Joined: Mon Sep 22, 2014 6:15 pm
Posts: 21
Has thanked: 5 times
Have thanks: 7 times
how to extract Colin Mcrae Rally 05 textures from BIG?
cmr04big.exe not working?


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Wed Dec 16, 2015 11:55 am 
Offline
advanced
User avatar

Joined: Mon Aug 11, 2014 11:42 am
Posts: 72
Has thanked: 28 times
Have thanks: 11 times
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:

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:
               face_array = #()
               faceDir = 1
and
Code:
                  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

Quote:
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:


Top
 Profile  
 
 Post subject: Re: Need help Fixing MAXScript Colin Mcrae Rally 04/05 .P3D
PostPosted: Wed Dec 16, 2015 1:18 pm 
Offline
beginner

Joined: Mon Sep 22, 2014 6:15 pm
Posts: 21
Has thanked: 5 times
Have thanks: 7 times
Thank you the decompress tools!
After decompressed the CMR5 big file use cmr04big tools can get texture easily!

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group