Race Driver 3 .col track Files important!

ZModeler2-related discussion. General questions, howto, etc.

Moderator: Oleg

User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

May you remind me, what is the main purpose of all this job? what are you trying to do actually? I would like to know it whether the task you are trying to solve has any solution or not.

You have specified in the first post that you are trying to edit collision for the track. But what are the changes are you trying to make and what game are you going to have this all working in?

The .col specs you have sent (links in a post) are not quite accurate and yet the vertices and triangles data is readable (the geometry of collision model could be drawn), but the .col file contains game-specific data for quick hit-test on collision polygons that does not seem to be well sorted out. In other words, I do not see any straight ward way to create .col file from scene's geometry object.

The model export in game-compatible format (creation of .col file) is not like writing of a dozen lines of code (to load/draw .col file), it requires complete file format decoding and getting a full understanding of the logic the game expects from the data saved in. When the logic is now known, it requires a lot of testing with (probably with a lot of game crashes) to find the type of data the game will handle with no crash and run fine (give the game something that works somehow instead of correct and proper data it actually needs).

I guess you are going to have some new or modified tracks in a RD3 to ride on, but this is an extremely outdated game that I see no point to waste time for. Consider the (part of the task you need) .col import/export will take days of work or may be even weeks to make exported .col at least run in game. I can see someone have been decoding .col files data, so I guess you might get some coders that are interested in this game or someone like that?

So far, I have made the .col loading into ZModeler (probably you already have a tool that can read .col file to show geometry), this is the most that could be done with the given format decode level.
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Welcome Oleg, my friend LFGamer2004 figured out that it's possible to import whole scene from RD2 (visual) as old version of 3dsimed can open the RD2 p3d format, the collision mesh can be imported from rd2. Now I've set up the scene of imported track in zmodeler (most track shaders are supported), however the export is problematic - the filter was made for cars, the tracks are .px so i renamed the newly made .p3d into .px the track loads in game but yeah the mapping is quite bugged.
I'm gonna post how it looks
Original Track_Env in ZModeler (renamed from .px to .p3d)

https://prnt.sc/-kV0lqh7BgSD

New track_env - before export

https://prnt.sc/jLzJdyywao7f

after export

https://prnt.sc/mQmx0SfryUru

Can something be done for ZM3? I believe guys can donate ^
The p3d is known
https://cdn.discordapp.com/attachments/ ... 97c053bfa2&
and it's very simillar to px
I have received some time ago something about px
// 3D Mesh

// HEADER
4 - Unknown (2)
4 - Block 1 Offset
4 - Block 2 Offset
4 - Block 3 Offset
4 - Block 4 Offset
4 - Unknown (1)
4 - null
4 - Number of Vertices
4 - Vertex Block Size (24/36)
4 - Vertex List Offset
4 - Number of Face Indices
4 - Face Index List Offset
4 - Unknown (1)
8 - null
8 - Unknown
8 - Unknown (255)
8 - Number of Parts
4 - null
4 - Number of Face Indices
8 - null
4 - Number of Vertices
4 - Unknown (2/3)
4 - Block 5 Offset
4 - Number of Names
4 - Name Block Size (17)
4 - Name List Offset

// BLOCK 1
4 - null
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float

// BLOCK 2
// for each entry
4 - Unknown ID
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown Float
4 - Unknown
16 - null
4 - Unknown
16 - null
4 - Unknown
16 - null
4 - Unknown
4 - Unknown ID
4 - Unknown ID
4 - Unknown ID
4 - Number of Extra Data Blocks (0/1)
4 - Unknown

// for each extra data block
4 - Unknown

// BLOCK 3
// for each entry
24 - Unknown
4 - Unknown ID
4 - Unknown ID
4 - Number of Data Blocks (1/2/3)
4 - Unknown

// for each data block
4 - Unknown

// BLOCK 4 (PARTS)
// for each part (48 bytes per entry)
12 - null
4 - Unknown (0/1/2/3)
12 - Unknown (all byte 255)
4 - null
4 - Number of Vertices for this Part
4 - First Vertex Index for this Part
4 - Number of Face Indexes for this Part
4 - First Face Index for this Part

// BLOCK 5
X - Unknown

// NAME LIST
// for each name
17 - Filename (null terminated, filled with nulls)

// VERTEX LIST
// for each vertex
24/36 - Vertex Data

// FACE INDICES
// for each face index
2 - Vertex Index
L.Filipoull
Posts: 6
Joined: Tue Dec 17, 2024 7:47 pm
Contact:

Re: Race Driver 3 .col track Files important!

Post by L.Filipoull »

@Polecze hello I am LFG2004 and I came to tell you that Oleg won't no longer work in this! better try go to deep in an other fórum in the internet like as this https://gbatemp.net/threads/toca-race-d ... ls.663517/ for anyone really intersted in analyse these files! I"m still trying get a way to open the RD3 PSPs .P3D or Even a software for these .col files in blender as Obj and Fbx, like for a new track (test).

If you have interst in my projects please visit my new open-resource website: " https://toca3rdsport.blogspot.com/ "

Thanks and have a good day! :arrow:
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

I think there will be a problem extracting those HUG. Files, i think i already asked about it on XentaX discord
L.Filipoull
Posts: 6
Joined: Tue Dec 17, 2024 7:47 pm
Contact:

Re: Race Driver 3 .col track Files important!

Post by L.Filipoull »

Ok guy...
L.Filipoull
Posts: 6
Joined: Tue Dec 17, 2024 7:47 pm
Contact:

Re: Race Driver 3 .col track Files important!

Post by L.Filipoull »

Just a thing; trying to ask for help with these files on private "forums" on discord won't help at all! and without sharing even worse. This will only make the relevance of the mods and the game very small... everyone will look at it and it will go unnoticed. But anyway, good luck trying to find smart people (coders) for this work, you'll need!

Cya!
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Hey Oleg, i have found ZMod2 SDK with some filters included
https://prnt.sc/nRPe7EnhrzEn
However no RaceDriverP3D.zmf Filter included
the question is -is it lost completely?
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

Hello.

The source code of some plugins and filters included in SDK is a reference material. It was not supposed to provide a source code for everything ZModeler2 has.

The source code of ZModeler2 plugins and filters was archived and stored on my old computer. It is not accessible for me at the moment and will not be reachable for quite a long time. So, you can consider it as lost currently, but not completely.
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Ooo, it would be great if you could share this filter when it will be only possible :D
ToCA 3 community still exists, together with friends we are working on improvements for this game :idea:
We managed to make a tool to decode .zig files and some other magic stuff ^^
Cheers 8)
L.Filipoull
Posts: 6
Joined: Tue Dec 17, 2024 7:47 pm
Contact:

Re: Race Driver 3 .col track Files important!

Post by L.Filipoull »

Oleg, a question; how long did you, worked in these import/export filters, specially the .p3d* ?
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

L.Filipoull wrote: Mon Jan 27, 2025 12:31 pm Oleg, a question; how long did you, worked in these import/export filters, specially the .p3d* ?
I don't remember. Those were the days when games and their model formats were simple enough. Draft research of model format was usually about a month, whilst the most complicated thing was to polish out unknown details involving hundreds of import-/export-/game-testing. This phase was very flexible from a couple of weeks to several months.

The particular discussed filter is kinda special, as I don't remember me having the game at all. So, I don't remember how the exported models were tested in game during plugin development phase. Probably some ZModeler user did this for me. I remind this kind of development (with user testing result and sending me screenshots) was used with some Formula1 game too.
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

Here's the filter source code for ZModeler2.

Also, can someone drop a line of help on this topic:
viewtopic.php?t=15618
Attachments
RaceDriverP3D_zm2_src.zip
(38.53 KiB) Downloaded 15 times
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Thank You so much!
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

I have downloaded ZModeler2 debug version but cannot launch it
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

I have downloaded VSC 2005 and made some changes onto the filter, however i cannot compile a build...

Code: Select all

Creating temporary file "c:\Users\arosz\Desktop\Race Driver P3D Filter\Release\RSP00003616763560.rsp" with contents
[
/O2 /Ob1 /I "C:\Users\arosz\Desktop\ZMOD SDK\API" /I "C:\Users\arosz\Desktop\DirectX SDK\Include" /I "C:\Users\arosz\Desktop\ZMOD SDK\Source\ZModeler" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "ZM_NO_GDIPLUS" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /GF /FD /EHsc /MD /Gy /Fp".\Release/RaceDriverP3D.pch" /Fo".\Release/" /Fd".\Release/" /W3 /c /TP ".\WorkspaceViews.cpp"

".\WorkspaceHandlers.cpp"

".\Workspace.cpp"

".\viewNC.cpp"

".\viewEvents.cpp"

".\viewDraw.cpp"

".\view.cpp"

".\serializeable.cpp"

".\sceneNodes.cpp"

".\sceneNavigation.cpp"

".\ReposLibs.cpp"

".\Repository.cpp"

".\pluginsManager.cpp"

".\OpenSaveService.cpp"

".\OnCreate.cpp"

".\OnClose.cpp"

".\Modeler.cpp"

".\MainFrame.cpp"

".\LoadTools.cpp"

".\floaterLayout.cpp"
]
Creating command line "cl.exe @"c:\Users\arosz\Desktop\Race Driver P3D Filter\Release\RSP00003616763560.rsp" /nologo /errorReport:prompt"
Creating temporary file "c:\Users\arosz\Desktop\Race Driver P3D Filter\Release\RSP00003716763560.rsp" with contents
[
/O2 /Ob1 /I "C:\Users\arosz\Desktop\ZMOD SDK\API" /I "C:\Users\arosz\Desktop\DirectX SDK\Include" /I "C:\Users\arosz\Desktop\ZMOD SDK\Source\ZModeler" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "ZM_NO_GDIPLUS" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /GF /FD /EHsc /MD /Gy /Fp".\Release/RaceDriverP3D.pch" /Fo".\Release\pluginsManager1.obj" /Fd".\Release/" /W3 /c /TP "..\ZMOD SDK\Source\ZModeler\pluginsManager.cpp"
]
Creating command line "cl.exe @"c:\Users\arosz\Desktop\Race Driver P3D Filter\Release\RSP00003716763560.rsp" /nologo /errorReport:prompt"
Output Window
 	 	
Compiling...
WorkspaceViews.cpp
.\WorkspaceViews.cpp(18) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
WorkspaceHandlers.cpp
c:\users\arosz\desktop\race driver p3d filter\Workspace.h(31) : fatal error C1083: Cannot open include file: '../Controls/Splitter/ZMSplitter.h': No such file or directory
Workspace.cpp
.\Workspace.cpp(21) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
viewNC.cpp
.\viewNC.cpp(19) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
viewEvents.cpp
.\viewEvents.cpp(20) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
viewDraw.cpp
.\viewDraw.cpp(19) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
view.cpp
.\view.cpp(19) : fatal error C1083: Cannot open include file: '../MainFrame/MainFrame.h': No such file or directory
serializeable.cpp
.\serializeable.cpp(42) : warning C4273: 'core::io::splitPath' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(101) : see previous definition of 'splitPath'
.\serializeable.cpp(78) : warning C4273: 'core::io::CChunk::CChunk' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(66) : see previous definition of '{ctor}'
.\serializeable.cpp(90) : warning C4273: 'core::io::CChunk::~CChunk' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(68) : see previous definition of '{dtor}'
.\serializeable.cpp(144) : warning C4273: 'core::io::writeDeclaration' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(114) : see previous definition of 'writeDeclaration'
.\serializeable.cpp(184) : warning C4273: 'core::io::registerSerializeable' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(123) : see previous definition of 'registerSerializeable'
.\serializeable.cpp(199) : warning C4273: 'core::io::registerSerializeable' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(124) : see previous definition of 'registerSerializeable'
.\serializeable.cpp(221) : warning C4273: 'core::io::writeString' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(125) : see previous definition of 'writeString'
.\serializeable.cpp(239) : warning C4273: 'core::io::readString' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(126) : see previous definition of 'readString'
.\serializeable.cpp(267) : warning C4273: 'core::io::writeInterface' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(128) : see previous definition of 'writeInterface'
.\serializeable.cpp(290) : warning C4273: 'core::io::readInterface' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/serializeable.h(129) : see previous definition of 'readInterface'
.\serializeable.cpp(309) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(316) : error C2491: 'core::io::read' : definition of dllimport function not allowed
.\serializeable.cpp(323) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(364) : error C2491: 'core::io::read' : definition of dllimport function not allowed
.\serializeable.cpp(405) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(421) : error C2491: 'core::io::read' : definition of dllimport function not allowed
.\serializeable.cpp(438) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(453) : error C2491: 'core::io::read' : definition of dllimport function not allowed
.\serializeable.cpp(469) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(515) : error C2491: 'core::io::read' : definition of dllimport function not allowed
.\serializeable.cpp(562) : error C2491: 'core::io::write' : definition of dllimport function not allowed
.\serializeable.cpp(569) : error C2491: 'core::io::read' : definition of dllimport function not allowed
sceneNodes.cpp
.\sceneNodes.cpp(20) : fatal error C1083: Cannot open include file: 'scene.h': No such file or directory
sceneNavigation.cpp
.\sceneNavigation.cpp(41) : warning C4273: 'scene::CSubsetIterator::CSubsetIterator' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(57) : see previous definition of '{ctor}'
.\sceneNavigation.cpp(45) : warning C4273: 'scene::CSubsetIterator::~CSubsetIterator' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(58) : see previous definition of '{dtor}'
.\sceneNavigation.cpp(57) : warning C4273: 'scene::CSubsetIterator::initialize' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(64) : see previous definition of 'initialize'
.\sceneNavigation.cpp(89) : warning C4273: 'scene::CSubsetIterator::reset' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(67) : see previous definition of 'reset'
.\sceneNavigation.cpp(103) : warning C4273: 'scene::CSubsetIterator::initDataFromNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(111) : see previous definition of 'initDataFromNode'
.\sceneNavigation.cpp(142) : warning C4273: 'scene::CSubsetIterator::next' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(68) : see previous definition of 'next'
.\sceneNavigation.cpp(193) : warning C4273: 'scene::CSubsetIterator::prev' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(69) : see previous definition of 'prev'
.\sceneNavigation.cpp(244) : warning C4273: 'scene::CSubsetIterator::getNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(71) : see previous definition of 'getNode'
.\sceneNavigation.cpp(258) : warning C4273: 'scene::CSubsetIterator::getEntityBase' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(72) : see previous definition of 'getEntityBase'
.\sceneNavigation.cpp(280) : warning C4273: 'scene::CSubsetIterator::queryNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(98) : see previous definition of 'queryNode'
.\sceneNavigation.cpp(288) : warning C4273: 'scene::CSubsetIterator::getNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(75) : see previous definition of 'getNodeStatus'
.\sceneNavigation.cpp(304) : warning C4273: 'scene::CSubsetIterator::isAllowEditing' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(74) : see previous definition of 'isAllowEditing'
.\sceneNavigation.cpp(323) : warning C4273: 'scene::subsetConvenientStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(31) : see previous definition of 'subsetConvenientStatus'
.\sceneNavigation.cpp(343) : warning C4273: 'scene::subLevelEditableStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(34) : see previous definition of 'subLevelEditableStatus'
.\sceneNavigation.cpp(361) : warning C4273: 'scene::CSubsetIterator::changeNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(76) : see previous definition of 'changeNodeStatus'
.\sceneNavigation.cpp(387) : warning C4273: 'scene::CSubsetIterator::setNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(77) : see previous definition of 'setNodeStatus'
.\sceneNavigation.cpp(414) : warning C4273: 'scene::CSubsetIterator::getITransformable' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(81) : see previous definition of 'getITransformable'
.\sceneNavigation.cpp(433) : warning C4273: 'scene::CSubsetIterator::getNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(79) : see previous definition of 'getNodeTransform'
.\sceneNavigation.cpp(450) : warning C4273: 'scene::CSubsetIterator::setNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(80) : see previous definition of 'setNodeTransform'
.\sceneNavigation.cpp(489) : warning C4273: 'scene::getFullTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(40) : see previous definition of 'getFullTransform'
.\sceneNavigation.cpp(516) : warning C4273: 'scene::getRevFullTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(42) : see previous definition of 'getRevFullTransform'
.\sceneNavigation.cpp(543) : warning C4273: 'scene::getRelativeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(43) : see previous definition of 'getRelativeTransform'
.\sceneNavigation.cpp(563) : warning C4273: 'scene::getWorldToNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(45) : see previous definition of 'getWorldToNodeTransform'
.\sceneNavigation.cpp(571) : warning C4273: 'scene::getNodeToWorldTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(47) : see previous definition of 'getNodeToWorldTransform'
.\sceneNavigation.cpp(585) : warning C4273: 'scene::CSubsetIterator::getPreNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(82) : see previous definition of 'getPreNodeTransform'
.\sceneNavigation.cpp(603) : warning C4273: 'scene::CSubsetIterator::getNodeToWorldTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(84) : see previous definition of 'getNodeToWorldTransform'
.\sceneNavigation.cpp(631) : warning C4273: 'scene::CSubsetIterator::worldToPreNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(86) : see previous definition of 'worldToPreNode'
.\sceneNavigation.cpp(721) : warning C4273: 'scene::CSubsetIterator::worldToNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(88) : see previous definition of 'worldToNode'
.\sceneNavigation.cpp(745) : warning C4273: 'scene::CSubsetIterator::applyChildTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(90) : see previous definition of 'applyChildTransform'
.\sceneNavigation.cpp(773) : warning C4273: 'scene::CSubsetIterator::getNodeLevel' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(94) : see previous definition of 'getNodeLevel'
.\sceneNavigation.cpp(790) : warning C4273: 'scene::CSubsetIterator::getMeshNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(101) : see previous definition of 'getMeshNode'
.\sceneNavigation.cpp(807) : warning C4273: 'scene::CSubsetIterator::getMesh' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(102) : see previous definition of 'getMesh'
.\sceneNavigation.cpp(835) : warning C4273: 'scene::CSubsetIterator::setMesh' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(104) : see previous definition of 'setMesh'
.\sceneNavigation.cpp(858) : warning C4273: 'scene::CSubsetIterator::getPolyMeshData' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(105) : see previous definition of 'getPolyMeshData'
.\sceneNavigation.cpp(884) : warning C4273: 'scene::CSubsetIterator::setPolyMeshData' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(107) : see previous definition of 'setPolyMeshData'
.\sceneNavigation.cpp(911) : warning C4273: 'scene::CSubsetIterator::alterNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(108) : see previous definition of 'alterNode'
.\sceneNavigation.cpp(934) : warning C4273: 'scene::CSceneNavigator::CSceneNavigator' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(139) : see previous definition of '{ctor}'
.\sceneNavigation.cpp(939) : warning C4273: 'scene::CSceneNavigator::~CSceneNavigator' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(140) : see previous definition of '{dtor}'
.\sceneNavigation.cpp(951) : error C2511: 'ZRESULT scene::CSceneNavigator::initialize(core::IProcParams *)' : overloaded member function not found in 'scene::CSceneNavigator'
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(137) : see declaration of 'scene::CSceneNavigator'
.\sceneNavigation.cpp(998) : warning C4273: 'scene::CSceneNavigator::reset' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(147) : see previous definition of 'reset'
.\sceneNavigation.cpp(1010) : warning C4273: 'scene::CSceneNavigator::next' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(148) : see previous definition of 'next'
.\sceneNavigation.cpp(1024) : warning C4273: 'scene::CSceneNavigator::prev' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(149) : see previous definition of 'prev'
.\sceneNavigation.cpp(1041) : warning C4273: 'scene::CSceneNavigator::getNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(152) : see previous definition of 'getNode'
.\sceneNavigation.cpp(1057) : warning C4273: 'scene::CSceneNavigator::queryNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(176) : see previous definition of 'queryNode'
.\sceneNavigation.cpp(1065) : warning C4273: 'scene::CSceneNavigator::getNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(156) : see previous definition of 'getNodeStatus'
.\sceneNavigation.cpp(1079) : warning C4273: 'scene::CSceneNavigator::isAllowEditing' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(155) : see previous definition of 'isAllowEditing'
.\sceneNavigation.cpp(1092) : warning C4273: 'scene::CSceneNavigator::isAccessible' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(154) : see previous definition of 'isAccessible'
.\sceneNavigation.cpp(1107) : warning C4273: 'scene::CSceneNavigator::changeNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(157) : see previous definition of 'changeNodeStatus'
.\sceneNavigation.cpp(1127) : warning C4273: 'scene::CSceneNavigator::setNodeStatus' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(158) : see previous definition of 'setNodeStatus'
.\sceneNavigation.cpp(1148) : warning C4273: 'scene::CSceneNavigator::getNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(160) : see previous definition of 'getNodeTransform'
.\sceneNavigation.cpp(1168) : warning C4273: 'scene::CSceneNavigator::setNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(161) : see previous definition of 'setNodeTransform'
.\sceneNavigation.cpp(1194) : warning C4273: 'scene::CSceneNavigator::getPreNodeTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(162) : see previous definition of 'getPreNodeTransform'
.\sceneNavigation.cpp(1205) : warning C4273: 'scene::CSceneNavigator::getNodeToWorldTransform' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(164) : see previous definition of 'getNodeToWorldTransform'
.\sceneNavigation.cpp(1222) : warning C4273: 'scene::CSceneNavigator::getMeshNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(179) : see previous definition of 'getMeshNode'
.\sceneNavigation.cpp(1237) : warning C4273: 'scene::CSceneNavigator::getMesh' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(180) : see previous definition of 'getMesh'
.\sceneNavigation.cpp(1253) : warning C4273: 'scene::CSceneNavigator::setMesh' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(182) : see previous definition of 'setMesh'
.\sceneNavigation.cpp(1270) : warning C4273: 'scene::CSceneNavigator::getPolyMeshData' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(183) : see previous definition of 'getPolyMeshData'
.\sceneNavigation.cpp(1291) : warning C4273: 'scene::CSceneNavigator::setPolyMeshData' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(185) : see previous definition of 'setPolyMeshData'
.\sceneNavigation.cpp(1314) : warning C4273: 'scene::CSceneNavigator::alterNode' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(186) : see previous definition of 'alterNode'
.\sceneNavigation.cpp(1344) : warning C4273: 'scene::collectNodesByMaterial' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(230) : see previous definition of 'collectNodesByMaterial'
.\sceneNavigation.cpp(1399) : warning C4273: 'scene::collectNodesByInterface' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(213) : see previous definition of 'collectNodesByInterface'
.\sceneNavigation.cpp(1435) : warning C4273: 'scene::CDisplayNodesByNameDialog::GetMessageMap' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(248) : see previous definition of 'GetMessageMap'
.\sceneNavigation.cpp(1435) : warning C4273: 'scene::CDisplayNodesByNameDialog::GetThisMessageMap' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(248) : see previous definition of 'GetThisMessageMap'
.\sceneNavigation.cpp(1436) : error C2065: 'IDC_MESHES' : undeclared identifier
.\sceneNavigation.cpp(1437) : error C2065: 'IDC_GROUPS' : undeclared identifier
.\sceneNavigation.cpp(1438) : error C2065: 'IDC_SPLINES' : undeclared identifier
.\sceneNavigation.cpp(1439) : error C2065: 'IDC_LIGHTS' : undeclared identifier
.\sceneNavigation.cpp(1440) : error C2065: 'IDC_CAMERAS' : undeclared identifier
.\sceneNavigation.cpp(1441) : error C2065: 'IDC_DUMMIES' : undeclared identifier
.\sceneNavigation.cpp(1442) : error C2065: 'IDC_SKELBONES' : undeclared identifier
.\sceneNavigation.cpp(1443) : error C2065: 'IDC_LISTALL' : undeclared identifier
.\sceneNavigation.cpp(1444) : error C2065: 'IDC_LISTNONE' : undeclared identifier
.\sceneNavigation.cpp(1445) : error C2065: 'IDC_ALL' : undeclared identifier
.\sceneNavigation.cpp(1446) : error C2065: 'IDC_NONE' : undeclared identifier
.\sceneNavigation.cpp(1447) : error C2065: 'IDC_INVERT' : undeclared identifier
.\sceneNavigation.cpp(1448) : error C2065: 'IDC_EDITBOX' : undeclared identifier
.\sceneNavigation.cpp(1452) : warning C4273: 'scene::CDisplayNodesByNameDialog::CDisplayNodesByNameDialog' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(245) : see previous definition of '{ctor}'
.\sceneNavigation.cpp(1453) : error C2065: 'IDD_BYNAME' : undeclared identifier
.\sceneNavigation.cpp(1474) : warning C4273: 'scene::CDisplayNodesByNameDialog::OnInitDialog' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(249) : see previous definition of 'OnInitDialog'
.\sceneNavigation.cpp(1483) : error C2065: 'IDC_LIST' : undeclared identifier
.\sceneNavigation.cpp(1499) : error C2065: 'IDC_DISPLAYGRP' : undeclared identifier
.\sceneNavigation.cpp(1535) : warning C4273: 'scene::CDisplayNodesByNameDialog::onListAll' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(256) : see previous definition of 'onListAll'
.\sceneNavigation.cpp(1544) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1545) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1546) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1547) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1548) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1549) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1550) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1561) : warning C4273: 'scene::CDisplayNodesByNameDialog::onListNone' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(257) : see previous definition of 'onListNone'
.\sceneNavigation.cpp(1570) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1571) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1572) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1573) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1574) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1575) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1576) : error C2227: left of '->SetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1586) : warning C4273: 'scene::CDisplayNodesByNameDialog::onListCustom' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(258) : see previous definition of 'onListCustom'
.\sceneNavigation.cpp(1587) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1588) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1589) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1590) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1591) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1592) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1593) : error C2227: left of '->GetCheck' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1605) : warning C4273: 'scene::CDisplayNodesByNameDialog::collectNodes' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(260) : see previous definition of 'collectNodes'
.\sceneNavigation.cpp(1645) : warning C4273: 'scene::CDisplayNodesByNameDialog::onSearch' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(259) : see previous definition of 'onSearch'
.\sceneNavigation.cpp(1648) : error C2227: left of '->GetWindowTextA' must point to class/struct/union/generic type
.\sceneNavigation.cpp(1695) : warning C4273: 'scene::CDisplayNodesByNameDialog::onAll' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(252) : see previous definition of 'onAll'
.\sceneNavigation.cpp(1712) : warning C4273: 'scene::CDisplayNodesByNameDialog::onNone' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(253) : see previous definition of 'onNone'
.\sceneNavigation.cpp(1730) : warning C4273: 'scene::CDisplayNodesByNameDialog::onInvert' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/sceneNavigation.h(254) : see previous definition of 'onInvert'
ReposLibs.cpp
.\ReposLibs.cpp(25) : fatal error C1083: Cannot open include file: '../../MainFrame/startupDialog.h': No such file or directory
Repository.cpp
.\Repository.cpp(23) : fatal error C1083: Cannot open include file: '../../App/AppLibrary.h': No such file or directory
pluginsManager.cpp
.\pluginsManager.cpp(18) : fatal error C1083: Cannot open include file: '../pluginsManager.h': No such file or directory
OpenSaveService.cpp
.\OpenSaveService.cpp(28) : fatal error C1083: Cannot open include file: 'oldZ3DImportExport.h': No such file or directory
OnCreate.cpp
c:\users\arosz\desktop\race driver p3d filter\MainFrame.h(21) : fatal error C1083: Cannot open include file: 'core/Repository/Repository.h': No such file or directory
OnClose.cpp
c:\users\arosz\desktop\race driver p3d filter\MainFrame.h(21) : fatal error C1083: Cannot open include file: 'core/Repository/Repository.h': No such file or directory
Modeler.cpp
C:\Users\arosz\Desktop\ZMOD SDK\Source\ZModeler\Modeler.h(22) : fatal error C1083: Cannot open include file: 'core/ui/Manager.h': No such file or directory
MainFrame.cpp
c:\users\arosz\desktop\race driver p3d filter\MainFrame.h(21) : fatal error C1083: Cannot open include file: 'core/Repository/Repository.h': No such file or directory
LoadTools.cpp
c:\users\arosz\desktop\race driver p3d filter\MainFrame.h(21) : fatal error C1083: Cannot open include file: 'core/Repository/Repository.h': No such file or directory
floaterLayout.cpp
.\floaterLayout.cpp(36) : warning C4273: 'core::tools::CZMFloaterLayoutEx::getDialogBar' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(567) : see previous definition of 'getDialogBar'
.\floaterLayout.cpp(46) : warning C4273: '_InterfaceEntries' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(587) : see previous definition of 'public: static tInterfaceMap const * const core::tools::CFloaterToolEx::_InterfaceEntries'
.\floaterLayout.cpp(46) : error C2491: 'core::tools::CFloaterToolEx::_InterfaceEntries' : definition of dllimport static data member not allowed
.\floaterLayout.cpp(57) : warning C4273: 'core::tools::CFloaterToolEx::CFloaterToolEx' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(589) : see previous definition of '{ctor}'
.\floaterLayout.cpp(64) : warning C4273: 'core::tools::CFloaterToolEx::~CFloaterToolEx' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(590) : see previous definition of '{dtor}'
.\floaterLayout.cpp(77) : warning C4273: 'core::tools::CFloaterToolEx::getLayout' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(596) : see previous definition of 'getLayout'
.\floaterLayout.cpp(93) : warning C4273: 'core::tools::CFloaterToolEx::deploy' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(592) : see previous definition of 'deploy'
.\floaterLayout.cpp(211) : warning C4273: '_InterfaceEntries' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(607) : see previous definition of 'public: static tInterfaceMap const * const core::tools::CFloaterMenuTool::_InterfaceEntries'
.\floaterLayout.cpp(211) : error C2491: 'core::tools::CFloaterMenuTool::_InterfaceEntries' : definition of dllimport static data member not allowed
.\floaterLayout.cpp(217) : warning C4273: 'core::tools::CFloaterMenuTool::CFloaterMenuTool' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(609) : see previous definition of '{ctor}'
.\floaterLayout.cpp(222) : warning C4273: 'core::tools::CFloaterMenuTool::~CFloaterMenuTool' : inconsistent dll linkage
        C:\Users\arosz\Desktop\ZMOD SDK\API\helpers/layout.h(610) : see previous definition of '{dtor}'
Generating Code...
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

Hello.

You should NOT be adding ZModeler files into the project. Some ZModeler source code was included to help debug plugins when an error occurs in ZModeler's code so one can see the line/error. You are not supposed to be able to compile any of these files.

The source code of the filter attached above is the ONLY project files you need to do deal with. It also includes the project file. In general, you should have a set of .cpp files, a path to ZModeler's SDK "API" folder for some declarations and a link to binary "zmodeler2.lib" file.
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

If I'm not mistaken, you should use Visual Studio 8. There you should be able to open project file"RaceDrivep3D.vcproj". This project file is already configured, but your visual studio might need an extra paths for include (to locate ZModeler's "SDK\API" folder to read required .h files there).
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

the resource file "zmVersion.rc2" is included in SDK\API folder. But you have to specify this folder for "additional resource files paths", this is not an "Include path" for header .h files.
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Ok, I've have made some changes in the filter - added shader
{ "WheelBlur_GlossPaint_Bump.fxo", 0x40, 0x1110},
https://prnt.sc/P92XFXHdifnM

Compiled it - and the file decreased from 96kb to 83kb
Zmodeler crashes when i'm trying to run it
:?: :|
compiled in release mode
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

NVM it worked! i compiled it on VS9 instead of 8, now it worked
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

Having a bit of trouble with that...
https://prnt.sc/pG8pylDByKkH
don't know what these first digits do - when i added some shaders i had to copy - guess which value is correct for the shader otherwise it is going to be bugged in game - vertices are spiky lol
the second value i know - its diffuse, bump, environment, specular texture set
tried to deduce something from the shader files via hxd but nah..
User avatar
Oleg
Site Admin
Posts: 14915
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Race Driver 3 .col track Files important!

Post by Oleg »

this is vertex stride I think. Size of single vertex in bytes.

The hint is here:

Code: Select all

tVertexMatchInfo g_vtxMatchInfo[] = 
{
  {0x18, 3, VERTEX_HAS_POSITION | VERTEX_HAS_1UV | VERTEX_HAS_1COLOR ,                     -1, 3, 4,-1},
//{0x18, 2, VERTEX_HAS_POSITION | VERTEX_HAS_NORMAL,                                        3,-1,-1,-1},
  {0x20, 3, VERTEX_HAS_POSITION | VERTEX_HAS_NORMAL | VERTEX_HAS_1UV,                       3,-1, 6,-1},
  {0x24, 4, VERTEX_HAS_POSITION | VERTEX_HAS_NORMAL | VERTEX_HAS_1UV | VERTEX_HAS_1COLOR,   3, 6, 7,-1},
  {0x40, 6, VERTEX_HAS_POSITION | VERTEX_HAS_NORMAL | VERTEX_HAS_2UV,                       3,-1, 6,10},
  {0x44, 7, VERTEX_HAS_POSITION | VERTEX_HAS_NORMAL | VERTEX_HAS_2UV | VERTEX_HAS_1COLOR,   3, 6, 7,11},
  {0,    0, 0x00000000,                                                                    -1,-1,-1,-1}
};
but you have to specify a correct value for the shader, since vertex components (and vertex stride/size) is explicitly defined in game's shader. a mismatch will make shader read vertices data improperly and spikes will appear.
Components are usually 4-byte aligned, so
position: 3xfloat = 12 bytes (0x10)
Color: 4xbyte (0x4)
1uv channel is 2xfloat = 8 bytes
normal: 3xfloat
bump-mapped shader has S- and T- normals that are 3xfloat + 3xfloat (extra 24bytes or 0x18 compared to non-bump-mapped version).
when shader requires 2 uv channels, this is extra 2xfloat (+0x8 to single-uv version).

P.S. on your screenshot "Lights_plastic.fxo" has vertex stride of 0x5 which is impossible.
Polecze02
Posts: 31
Joined: Sun Mar 13, 2022 1:19 am

Re: Race Driver 3 .col track Files important!

Post by Polecze02 »

https://prnt.sc/ZWKOXZXAHRVF
0x40 for tread_matt_bump, however the texture is not smooth there

for the lights_plastic i couldn't get the right value..
Post Reply