Huh. Well it's seriously confusing because the size (128) doesn't seem to be stored anywhere in the .mat files, at any offset. *scratches head*giucam wrote:Yes, in the .mat files.JohnnyWalker2001 wrote:Thanks, I'm getting to understanding what's going on now, although I'm still not sure which *file* the offset is being read from. (Edit: I see you're saying it's in the .mat files?)
Grim Fandango Deluxe - Original Thread [Locked]
Moderator: ScummVM Team
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
Re: Grim Fandango: Remastered
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
Re: Grim Fandango: Remastered
How are you looking in the file? Are you sure you are looking a it encoded in decimal?JohnnyWalker2001 wrote: Huh. Well it's seriously confusing because the size (128) doesn't seem to be stored anywhere in the .mat files, at any offset. *scratches head*
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
Re: Grim Fandango: Remastered
No, I was looking for 80 in hex... but thinking about it I think I may have been looking in my new .mat 256 file. I guess was hoping that it was causing the problem, but Aquadran has made me question if it's actually a fundamental limitation in Grim.giucam wrote:How are you looking in the file? Are you sure you are looking a it encoded in decimal?JohnnyWalker2001 wrote: Huh. Well it's seriously confusing because the size (128) doesn't seem to be stored anywhere in the .mat files, at any offset. *scratches head*
My computer is out of action until tomorrow, so I'll try again then.
I guess it's going to be new models and textures!
- bgbennyboy
- Posts: 24
- Joined: Wed Nov 30, 2005 1:35 pm
- Contact:
Conversion to a more generic format is certainly doable. As proof of concept here's a quick converted model to .obj.
Its the coral item, although it looks like I messed up somewhere because the textures arent applied correctly (the base is wrong).
Its the coral item, although it looks like I messed up somewhere because the textures arent applied correctly (the base is wrong).
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
Excellent! How did you convert it?
In other news: It seems that the .mat files aren't to blame after all, and in fact are storing the correct texture size. Grim/ResidualVM is just ignoring it, though. (Or so it seems.)
In the original files it says 128 (80 00 00 00), but in my modified file it says 256 (00 01 00 00). So there's definitely a limitation in Grim/ResidualVM that doesn't take into account texture sizes bigger than 128 x 128.
So remodelling is looking like the way to go!
In other news: It seems that the .mat files aren't to blame after all, and in fact are storing the correct texture size. Grim/ResidualVM is just ignoring it, though. (Or so it seems.)
In the original files it says 128 (80 00 00 00), but in my modified file it says 256 (00 01 00 00). So there's definitely a limitation in Grim/ResidualVM that doesn't take into account texture sizes bigger than 128 x 128.
So remodelling is looking like the way to go!
- bgbennyboy
- Posts: 24
- Joined: Wed Nov 30, 2005 1:35 pm
- Contact:
I did it by hand just because it was a quick test. For speed I used the text 3do from the demo rather than the binary one from the full game.
For a project like this to work, you'd need:
For a project like this to work, you'd need:
- A decision on the best/most suitable format to convert the 3do models to.
- Someone to add code to make residual support the loading of external/alternate models
- Someone to make a convertor for the models to the new format
- And finally people to create enhanced models and textures.
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
Yep, it's a big job
I'm happy to try and take care of Step 4, but the first three steps are beyond me.
Step1: People seem to think that Cal3D or OBJ are the most likely formats.
Step2: I think Aquadran will be needed for this.
Step3: Not sure who has the skills to convert the old formats to a new one. Could you write an app that could do this if you were given all the specifications, BG?
I'm happy to try and take care of Step 4, but the first three steps are beyond me.
Step1: People seem to think that Cal3D or OBJ are the most likely formats.
Step2: I think Aquadran will be needed for this.
Step3: Not sure who has the skills to convert the old formats to a new one. Could you write an app that could do this if you were given all the specifications, BG?
Are there any limitations in the model-format that is used in Grim originally that are problematic, or couldn't that simply be used, instead of adding additional complexity to ResidualVM?
If the existing format is workable (or workable with minor adjustments), then all that is needed would be converting to obj/cal3d and back. (i.e. no actual changes necessary in the ResidualVM-codebase).
If the existing format is workable (or workable with minor adjustments), then all that is needed would be converting to obj/cal3d and back. (i.e. no actual changes necessary in the ResidualVM-codebase).
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
A good question. Someone more technically involved with ResidualVM will have to explain further, but other than the texture dimension problems, I'm not sure what other problems there might be with the existing format.somaen wrote:Are there any limitations in the model-format that is used in Grim originally that are problematic, or couldn't that simply be used, instead of adding additional complexity to ResidualVM?
If the existing format is workable (or workable with minor adjustments), then all that is needed would be converting to obj/cal3d and back. (i.e. no actual changes necessary in the ResidualVM-codebase).
Based on what people (like Ender) have said, though, adding a new format would be just as easy?
More information is needed, obviously
Adding a new format may be easy, but it would however mean adding new code and complexity, which it's better not to do.
I don't know any other model format aside .3do, but i don't see any limitation with it.
As regards the materials, ResidualVM does use the texture size. If your bigger texture is not working right, that's likely to be a simple bug in the code.
I don't know any other model format aside .3do, but i don't see any limitation with it.
As regards the materials, ResidualVM does use the texture size. If your bigger texture is not working right, that's likely to be a simple bug in the code.
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
So after some messing I around, I can already start to see some limitations.
For a start, the increase texture resolution is only really visible when Manny is REALLY close to the camera (see below). Secondly, being only able to use the 256 colour palette of the game is very restrictive (see Manny's tie, below). Thirdly, GF is very stylized, so it's not entirely clear how and where the extra detail should be placed (although this could be figured out).
It seems to me that, at the very least, we need a way of adding more colours to the palette. Without it means it's only worth adding bigger textures to a very small collection of items in the game (those that are seen close-up).
This might be worth doing in the meantime (it IS nice that Manny's face doesn't pixelate so), I don't know of a way on doing it on a per-model basis... it's every texture in the game or no textures at the moment.
Any ideas?
The way I see it, we have three options:
1. Add high-quality textures to a small amount of items in the game (i.e. the things that are seen close-up).
Problem: Need to be able to remap the textures on a per model basis.
Pros: Very quick and easy way to make Grim Fandango look nicer to modern eyes.
2. Make more colours available to textures in an attempt to be able to add more detail that way (think shading).
Problem: Adding more colours to textures is quite a big job (from what I gather).
Pros: It might allow use to add a little more detail to textures -- although I expect not much.
3. Remodel the characters and use an increase polygon count to improve the visuals of the game.
Problem: We need a way of converting .3do files to .obj and back again. Also, very time consuming.
Pros: We could end up with a very beautiful version of Grim Fandango.
For a start, the increase texture resolution is only really visible when Manny is REALLY close to the camera (see below). Secondly, being only able to use the 256 colour palette of the game is very restrictive (see Manny's tie, below). Thirdly, GF is very stylized, so it's not entirely clear how and where the extra detail should be placed (although this could be figured out).
It seems to me that, at the very least, we need a way of adding more colours to the palette. Without it means it's only worth adding bigger textures to a very small collection of items in the game (those that are seen close-up).
This might be worth doing in the meantime (it IS nice that Manny's face doesn't pixelate so), I don't know of a way on doing it on a per-model basis... it's every texture in the game or no textures at the moment.
Any ideas?
The way I see it, we have three options:
1. Add high-quality textures to a small amount of items in the game (i.e. the things that are seen close-up).
Problem: Need to be able to remap the textures on a per model basis.
Pros: Very quick and easy way to make Grim Fandango look nicer to modern eyes.
2. Make more colours available to textures in an attempt to be able to add more detail that way (think shading).
Problem: Adding more colours to textures is quite a big job (from what I gather).
Pros: It might allow use to add a little more detail to textures -- although I expect not much.
3. Remodel the characters and use an increase polygon count to improve the visuals of the game.
Problem: We need a way of converting .3do files to .obj and back again. Also, very time consuming.
Pros: We could end up with a very beautiful version of Grim Fandango.
Last edited by nuphonic on Thu Aug 04, 2011 11:56 pm, edited 1 time in total.
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK