05-03-24, 08:15 | #1 |
Member
Joined: Jan 2018
Posts: 1,308
|
TRG File Format (Tomb Raider I-III Remastered)
This file seems to be keeping the modern geometry data for levels. I tried to see if I can make an import/export script for this. So many unknowns but managed to figure out skipping over unknowns.
FORMAT INFORMATION BLENDER IMPORT TEST SCRIPTS Last edited by MuruCoder; 25-03-24 at 12:20. |
05-03-24, 10:12 | #2 |
Member
Joined: Feb 2008
Posts: 4,246
|
Exciting stuff!
I would think there might be some confusion on the texture data for room geometry as it would (probably) be similar to a Tomb Engine/Tomb Editor method where custom UV mapped room geometry overlaps original editor blocks textured to be transparent in order to allow better texturing while keeping the original collision. |
05-03-24, 11:02 | #3 |
Member
Joined: Feb 2024
Posts: 114
|
Nice. I'm not good with level editor but it would be cool to see new levels made with the remastered graphics. TEN engine is the closest thing to these graphics. It seems to me that there were already methods to import models in game, even if very few people used them
|
05-03-24, 11:18 | #4 | |
Member
Joined: Feb 2008
Posts: 4,246
|
Quote:
Porting for TRNG and below though wil require retopology to keep tex infos at bay as the polycount is a bit high. |
|
07-03-24, 01:55 | #5 |
Member
Joined: Jun 2007
Posts: 26,911
|
Some textures seem to have some sort of parallax occlusion type effect. Maybe that's what the extra UV info is for?
|
17-03-24, 23:52 | #6 |
Member
Joined: Mar 2024
Posts: 1
|
Chatgpt and i are gonna take a crack at this tonight
|
18-03-24, 06:54 | #7 |
Member
Joined: Jan 2018
Posts: 1,308
|
I think unknown data has Shader info similar to TRMs, I managed to parse certain files (just skipping over unknown data) but does not fit all so still needs work.
Maybe. They could also be for vertex colors, to use as static lighting. |
20-03-24, 07:41 | #8 |
Inactive
Joined: Mar 2024
Posts: 44
|
I'll never understand how you programmers so seamlessly understand the reverse, data/binaries' etc. math and such. that's so confusing and jumbled when you try to explain it.
|
22-03-24, 13:03 | #9 |
Member
Joined: Jan 2018
Posts: 1,308
|
^ Yeah, and all I know is enough to realize how little I know, imagine that
So those 6 values near vertex UV data can be for lighting. Ambient perhaps but not sure why there are 2 of them. Here're some cutscene maps loaded with those values as vertex colors. One batch seems lighter. |
22-03-24, 17:04 | #10 |
Inactive
Joined: Mar 2024
Posts: 44
|
|
Thread Tools | |
|
|