Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some OBJ disappears sometimes. #1

Closed
laqieer opened this issue May 5, 2021 · 3 comments
Closed

Some OBJ disappears sometimes. #1

laqieer opened this issue May 5, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@laqieer
Copy link
Owner

laqieer commented May 5, 2021

The handle of the bat disappears during some frames as the following screenshots show. Game file is zipped and attached.

截屏2021-05-05 下午9 27 07

截屏2021-05-05 下午9 27 59

截屏2021-05-05 下午9 26 25

chara_2head.gba.zip

@laqieer laqieer added the bug Something isn't working label May 5, 2021
@laqieer laqieer closed this as completed in 42c4a19 May 5, 2021
@laqieer
Copy link
Owner Author

laqieer commented May 5, 2021

exelotl — 今天21:46
@琪姬 I think you're exceeding the maximum number of sprite pixels per scanline
exelotl — 今天21:51
all the unused sprites are at (0, 0) though, so I think it won't cause the issue seen here?
however, there a lot of large double-size sprites layered over each other to create the character, so maybe the limit is still being reached?
GValiente — 今天21:53
no, there are 128
they are enabled (visible) by default
you have to disable them
but the bat issue seems to be because too much double size affine sprites in the same horizontal line
琪姬 — 今天22:12
2. Any solution?
GValiente — 今天22:13
try avoid using double size affine sprites as much as you can
琪姬 — 今天22:14
but (double size) has more pixels than (area clipped)?
GValiente — 今天22:14
yep
if a sprite is 64x64px, double size mode gives it 128x128px for the rotations and such

Thanks @exelotl @GValiente !

@laqieer
Copy link
Owner Author

laqieer commented May 5, 2021

chara_2head.gba.zip

@laqieer
Copy link
Owner Author

laqieer commented May 5, 2021

PinoBatch — 今天02:20
Move the biggest double-size rot/scale sprite to background 2
琪姬 — 今天07:19
It is a good idea but it still has limit in this situation. The bone animation may consist of many objects. It brings more problem if one of them is put to BG layer. I prefer all of them staying in OBJ layer. BG layer should be preserved for the background and effect in the game.
琪姬 — 今天07:22
yeah, the sprite is supposed to be smaller in the common case.
PinoBatch — 今天07:30
If you want to use rot/scale sprites for skeletal animation of fairly large objects, you have two options:
A. Prerender all directions and use regular (non-rot-scale) sprites.
B. Program for the Nintendo DS and use the 3D engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant