Is the SDP shader file documented at UESP Wiki or at CS Wiki?
How shaders are stored with Oblivion? Morrowind? Are they in
a shader language form or in compiled bytecode form?
(I have not extracted the shaders.)
Anyway, "shaders.sdp" file which comes with oldblivion has
the following format:
header:
<int = 64> <int = number of shaders> <int = data size>
shaders:
<256 bytes = file name> <int = code size = N> <N bytes = shader code>
(more shaders follows)
The shader code format is documented at Microsoft MSDN.
The webpage is "ms800354.aspx".
Wine source code at winehq includes an implementation and
the list of instruction numbers that I could not find from
Microsoft's documentation.
Juhana
SDP format documented?
- Daedra Prince
- Journeyman

- Posts: 348
- Joined: Tue Aug 21, 2007 5:29 am
- ES Games: I, III, IV
- Platform: PC, PS3
- Location: Everywhere.
Stanzas? I'm not interested in oldoblivion; I'm interested inDaedra Prince wrote:1. Why are you writing in stanzas?
2. Why do you even need to know that?
3. You'd be better off asking at the oldblivion forums.
the Oblivion shader system.
I would like to disassemble the Oblivion shaders to editable
form. One modder who has written shaders listed the same
task, and this way I could save his time.
Juhana
Just to clarify: the format is in my first posting.
It just needs to be copied to Wiki.
My sdpparser already extracts and disassembles.
Hopefully next it will output the high level shader
code so that effects can be edited and recompiled.
I will also find out how the shaders and Gamebryo
are connected. E.g., initial register contents for every
shader, render passes, etc. I asked this at Niftools
forum today as I'm a far from expert.
Juhana
It just needs to be copied to Wiki.
My sdpparser already extracts and disassembles.
Hopefully next it will output the high level shader
code so that effects can be edited and recompiled.
I will also find out how the shaders and Gamebryo
are connected. E.g., initial register contents for every
shader, render passes, etc. I asked this at Niftools
forum today as I'm a far from expert.
Juhana

