• Welcome to Freedom Reborn Archive.
 

nifskope configuration and darkness hex

Started by bearded, April 26, 2007, 02:14:32 AM

Previous topic - Next topic

bearded

anyone know why nifskope crashes and says my configuration is wrong?

also, does anyone remember the way to hex out darkness on meshes for  :ff:?

JKCarrier

Here's the old post about hexing dark meshes:

QuoteEditing Material Effects and Notes by PSX10K:
A) EDITING MATERIAL EFFECTS (ambient, diffuse, emittance, specular - for mesh darkness issues):
The darkness issue is related to the NiMaterialProperty associated with the .tga file(s) in the .nif file. Specifically, there are 12 bytes (or 24 hex characters) under the NiMaterialProperty which appear to control the darkness of the mesh when viewed at certain angles. These 24 hex characters were set to all 0's in the meshes that had problems (banshee, electro, male_heavy_hair_effects, wolverine_claws), which makes sense since #000000 is black (I think). The 24 hex characters always (from what I can deduce) come after the same hex sequence, but can begin at either a even or odd offset. To eliminate the darkness problems, the 0 hex sequence can be replaced with the hex sequence: #8180 003F 8180 003F 8180 003F.

To fix or adjust the darkness through a hex editor:
1) In ascii, do a case-insensitive search for "nimaterial"
2) Keep searching for nimaterial until you see the Ascii data "NiMaterialProperty" + some sort of user defined label (either a # or a name label like hair/male_basic/etc.) for the mesh part.
3) In hex, following the "NiMaterialProperty" + user-defined name, you should see the hex sequence:
#FFFF FFFF FFFF FFFF 0001
The next 24 hex characters are the ones that should be replaced. As a check, the hex sequence immediately following the sequence replaced should be:
#0000 803F 0000 803F 0000 803F 6666 ...
4) Repeat steps 2-3. Do this for all the NiMaterialProperty sections with user defined labels.

Side Note - I believe the first four 6 byte groups after the #FFFF FFFF .... 0001 sequence represent ambience, diffuse, specular, and emittance. Don't know what the last 6 byte group represents though.

bearded

thank you so much.  i don't know why it happens with me.  i've got a fresh install on a new system, and i'm still getting the darkness.

Symon

Quote from: bearded on April 26, 2007, 02:14:32 AM
anyone know why nifskope crashes and says my configuration is wrong?

I can think of a few reasons, these might be your problem:-

NifSkope uses OpenGL not DirectX. If your graphics card has no openGL support or you are using windows Vista (which to all intents and purposes has no OpenGL support until the card manufactures write some drivers), you will get problems, possibly of this nature.