トピック
FGW Renraw64

3D scaling

Is there an entirely accurate equation yielding a sprite's SPOFS Z value and SPSCALE relative to its theoretical Z-location in a 3D space, as perceived by the player, with the system's titular 3D feature enabled?
2そうだね
プレイ済み
返信[1]
親投稿
Scientist Speedy1101
So you want to change the sprite's size according to Z location? It's possible but I can't think of a way to make it work right now.
0そうだね
プレイ済み
返信[2]
親投稿
Hanzo rzsense
Define the Z coordinate of your viewpoint as VZ as negative value (e.g. -64). Like you've already known, distance to an object from your viewpoint and apparent size of an object are in inverse proportion to each other. Therefore, you can define magnification ratio of an object with its Z coordinate as follows. M=-VZ/(Z-VZ)
2そうだね
未プレイ
返信[3]
親投稿
FGW Renraw64
Perhaps all I need to know for scaling is the ideal distance between the player and the screen, in pixels. As for SPOFS Z, it seems to follow an exponential function of some kind.
0そうだね
プレイ済み
返信[4]
親投稿
Hanzo rzsense
Could you download [QD3XE4PD] and refer to "EX_SCALE"?
0そうだね
未プレイ