User talk:Ssg: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (The notes are just an info for me. I'll update the pics as fast as possible.)
m (types - let's see what we have)
Line 1: Line 1:
I'm going to close my webspace account at university. That means that Oni Stuff will go offline on Thursday indefinitely. [[User:Ssg|Ssg]] 13:51, 27 August 2007 (CEST)
Let's see what we have:




:How about moving the whole thing onto ssg.oni2.net?
file id          = res_id
:Pretty please. I'll assist you in every way you'll need ^^
::[[User:Geyser|geyser]] 18:01, 27 August 2007 (CEST)


level id        = lev_id


----
unsigned integer = uint + lenght in bits


signed integer  = int + lenght in bits


What types do we have for the tables?:
high bit        = hb


float            = float


*number = int + lenght in bits (f.e. int32)
link            = link
*4 byte float = float (or float32 ?)
*4 byte file id = res_id
*4 byte level id = lev_id
*4 byte link = ???
*4 byte color = ???
*4 byte offset = ???
*1 byte bitset = bitset ?
*string = char[lenght in bytes]
*high bit = ???
*boolean = bool ?


----
raw offset      = offset
:Integers: see below
:Float: float
:4 byte link: either res_id or WAHA or WAHA* ("WAHA-pointer").
::(also void* when there can be multiple target types)
:4 byte color: RGBA, or rgba32 or rgba4444 or r4g4b4a4
:4 byte offset: either void* or WAHA#*
::(e.g., AKVA0*, TRAM0*, TRAM1*, ..., TRAMd*)
:High bit: dunno, maybe int31bool1
:Booleans: maybe use bool8, bool16 and bool32 for bitsets.
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----


Any other types?
string          = char[lenght in bytes]
----
:I'd strongly suggest vectors, quaternions, planes and matrices.
:More generally, all the stuff that is '''typedef'''ed in Oni's code.
:(structures that are defined for use in more than one place)
:I'll ask Neo about just what data types we know for sure.
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----
How to distinguish between the different integers (Byte, UByte, Short, UShort, Long, ULong)?


boolean          = bool
color            = color


*Byte = -128 to 127
bitset          = bitset (In my interpretation a bitset has a lenght of one byte. "Bool" for bitsets is a bit confusing in my opinion. If I recall correctly Oni uses only "bitset collections", which are 4 bitsets in a row (so always 4 bytes are used, even if there's no need for 4 bytes).
*UByte = 0 to 255
*Short = -32768 to 32767
*UShort = 0 to 65535
*Long = -2,147,483,648 to 2,147,483,647
*ULong = 0 to 4,294,967,295


----
:int8, uint8, int16, uint16, int32, uint32
::[[User:Geyser|geyser]] 23:08, 3 September 2007 (CEST)
----
[[User:Ssg|Ssg]] 11:00, 3 September 2007 (CEST)


>>I'd strongly suggest vectors, quaternions, planes and matrices.


----


IMO that's not a good idea. It turns "type" more into a "description". F.e. a vector is stored as a float (column "type"). The information that this float is a vector should be placed in the column "description".


Suggestions:




#file header and footer always centered
#after that follow the pic and the table
#after that follow extra explanations
----
:I suggest to add notes to the talk pages rather than to edit summaries.
:(e.g., the stuff about matrices, or about images needing fixing...)
::[[User:Geyser|geyser]] 14:38, 4 September 2007 (CEST)
That's just an info for me. I'll update the images as quickly as possible. [[User:Ssg|Ssg]] 15:29, 4 September 2007 (CEST)
----
[[User:Ssg|Ssg]] 15:02, 3 September 2007 (CEST)
<!-- please don't delete this
<!-- please don't delete this
http://14mb.de/u/ccc/botright.gif
http://14mb.de/u/ccc/botright.gif
-->
-->

Revision as of 20:23, 4 September 2007

Let's see what we have:


file id = res_id

level id = lev_id

unsigned integer = uint + lenght in bits

signed integer = int + lenght in bits

high bit = hb

float = float

link = link

raw offset = offset

string = char[lenght in bytes]

boolean = bool color = color

bitset = bitset (In my interpretation a bitset has a lenght of one byte. "Bool" for bitsets is a bit confusing in my opinion. If I recall correctly Oni uses only "bitset collections", which are 4 bitsets in a row (so always 4 bytes are used, even if there's no need for 4 bytes).


>>I'd strongly suggest vectors, quaternions, planes and matrices.


IMO that's not a good idea. It turns "type" more into a "description". F.e. a vector is stored as a float (column "type"). The information that this float is a vector should be placed in the column "description".