We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
DSP1/Project: Difference between revisions
From SnesLab
(Pilotwings link; better definition) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:15%" | {| class="wikitable" style="float:right;clear:right;width:15%" | ||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
Line 6: | Line 4: | ||
|'''Opcode''' | |'''Opcode''' | ||
|06 | |06 | ||
|+ | |||
|'''Speed''' | |||
|627 cycles | |||
82.5 μs | |||
|} | |} | ||
'''Project''' is a [[DSP1]] command that calculates where an object in 3D space should appear on the screen. | |||
=== Input Parameters === | |||
* '''X''' is a coordinate | |||
* '''Y''' is a coordinate | |||
* '''Z''' is a coordinate | |||
=== Ouptut Parameters === | |||
* '''H''' is the horizontal screen coordinate | |||
* '''V''' is the vertical screen coordinate | |||
* '''M''' is the enlargement ratio | |||
=== References === | === References === | ||
* https://archive.org/details/SNESDevManual/book2/page/n308 | * subparagraph 5.4.3 on [https://archive.org/details/SNESDevManual/book2/page/n308 page 3-5-18 of Book II] of the official Super Nintendo development manual | ||
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L1123 | |||
=== External Links === | === External Links === | ||
Line 15: | Line 30: | ||
[[Category:DSP1]] | [[Category:DSP1]] | ||
[[Category:Projection Calculation Commands]] |
Latest revision as of 05:30, 10 January 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | 06 | ||||||
Speed | 627 cycles
82.5 μs |
Project is a DSP1 command that calculates where an object in 3D space should appear on the screen.
Input Parameters
- X is a coordinate
- Y is a coordinate
- Z is a coordinate
Ouptut Parameters
- H is the horizontal screen coordinate
- V is the vertical screen coordinate
- M is the enlargement ratio
References
- subparagraph 5.4.3 on page 3-5-18 of Book II of the official Super Nintendo development manual
- https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L1123
External Links
- video of rings in Pilotwings rendered using the help of the Project command: https://youtu.be/YmEKjqgEGpE?t=894