3D rendering: Difference between revisions

More info on the table.
Line 95: Line 95:
|
|
|0x8000
|0x8000
|
|0x0
|
|
|-
|-
Line 104: Line 104:
|
|
|0x2000
|0x2000
|
|0x100
|
|
|-
|-
Line 113: Line 113:
|
|
|0x2000
|0x2000
|
|0x200
|
|
|-
|-
Line 122: Line 122:
|0x8000
|0x8000
|0x8000
|0x8000
|
|0x100
|
|
|-
|-
Line 131: Line 131:
|0x0
|0x0
|0x4800
|0x4800
|
|0x0
|
|
|-
|-
Line 140: Line 140:
|0x0
|0x0
|0x8000
|0x8000
|
|0x0
|
|
|-
|-
Line 150: Line 150:
|0x0
|0x0
|0x6000
|0x6000
|
|0x0
|
|
|-
|-
Line 168: Line 168:
|0x0
|0x0
|0x4000
|0x4000
|
|0x0
|
|
|-
|-
Line 177: Line 177:
|0x4000
|0x4000
|0x4000
|0x4000
|
|0x100
|
|
|-
|-
Line 186: Line 186:
|0x0
|0x0
|0x6000
|0x6000
|
|0x0
|
|
|}
|}
From those allocations, it seems that VRAM from 0x11000 to 0x1EFFF (included) are free to be used both in overworld and dungeon. (todo: check palette more precisely)
From those allocations, it seems that VRAM from 0x11000 to 0x1EFFF (included) are free to be used both in overworld and dungeon. For the palette, it seems everything from 0x300 to 0x13FF (included) are unused.
 
==== Loading texture ====
Once you have your texture in the WTE format saved in the rom, you need to call a function to load WTE ('''LoadWteFromRom''') and then copy stuff to RAM with '''ProcessWTEWrapper''', and then call another (unnamed) function '''DoSomethingOn3dAllocAndClearInput'''.