Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.
 

JustinRoad

Latest Activity

Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-22-2005, 2:49 AM
#37
Just to let you know that I won't be able to look at those files for a while. I am in crunch mode at work at the moment. If only you'd posted them earlier :)...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-19-2005, 2:46 AM
#31
I downloaded the PC demo of Psychonauts and played through it a couple of times and I'm pretty sure it uses bumpmapping. Which means if it compresses these normalmaps there is a good chance that they use one of the 2 major normalmap compression schem...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-18-2005, 5:01 AM
#27
When performing my own file writes I usually just use a static global structure to write the header out. eg. (C++ code) char gacDDSSignature[] = {'D', 'D', 'S', ' '}; DDSURFACEDESC2 gsDDSHeader = { 0, // dwFlags 0, // dwWidth ... .. etc.. } EBoo...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-17-2005, 3:53 AM
#24
As far as I can figure out, it is a paletted image. The breakdown is as follows: at 0x007e in the file is a 16 bit number. Not sure if this specifies whether there is a palette or not. In the data you gave me this is 0x0001. at 0x0080 is where th...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-15-2005, 1:54 AM
#20
thank you for all your help. You're welcome. It's kewl what you're doing. Keep it up :) textures\fxtextures\flames\flickera_00.dds 64*64 actual size=60836 I have a suspicion that this format is an 'animated' format - meaning there are several f...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-14-2005, 11:27 AM
#17
Well, I'm fairly certain it's min(x,y) :) For example: The only possible mipmaps on 512x128 are: 512x128 256x64 128x32 64x16 32x8 16x4 8x2 4x1 There are 8 of them. If you were to use max(512,128) your function will return 10, which is incorrect in...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-14-2005, 11:08 AM
#15
Okay, LogBase2 is pretty much what your 'if' statement does, but it does it in a pure 'mathematical' way. If you know anything about logarithms, you can use the natural log: eg. LogBase2(x) = Log(x) / Log(2); Your version will work okay for cases w...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-14-2005, 10:42 AM
#13
12 bytes is very close, I know. I made a bit of an oopsie in my additions. The 12 bytes is non-existant. The mip size is spot on! (I edited my post to reflect the changes :D) wouldnt expect lightmap002 to have 4 mipmaps, I'd expect 5 really, so i...  [Read More]
Posted in: Psychonauts .PKG File Format Specs
 JustinRoad
07-14-2005, 9:11 AM
#9
Actual size = 174760 Size that tool gives - 131072 I don't actually own psychonauts and haven't looked at the data in question, but I'm a console programmer and this kinda thing really interests me :) Even though the DDS doesn't report any mipmaps...  [Read More]