1024 Sprites

Show us what you're making.

Re: 1024 Sprites

Postby Buck_7 » January 10th, 2015, 10:56 pm

After testing, trying, debugging, thorough research, and no success, I have no choice but to resort to asking him for help
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: 1024 Sprites

Postby BLsquared » January 11th, 2015, 4:39 am

He lives!
Whoo.
You may call me BLsquared, Commodore, or TexasBatman. Preferably BLsquared.
My avatar was made by this guy: http://christianmanga.com/smf/index.php ... bum;in=374

"Every puzzle has an answer." - Professor Layton
"In war, there is indeed no substitute for victory." - Douglas MacArthur
"Love and Peace!" - Vash the Stampede
"It's High Noon!" - McCree
Member of Memefefe's Squad
User avatar
BLsquared
 
Posts: 997
Joined: August 10th, 2011, 4:39 pm
Location: United States of America

Re: 1024 Sprites

Postby Buck_7 » January 11th, 2015, 5:00 am

Okay so here's my situation;

  • For some odd reason sprites that are replaced by other sprites after deletion get changed: their frame changes.

  • Also all sprites created using the function "PA_Create3DSpriteFromTex()" render the same frames. Though strangely enough if you were to take a look at the
    PA_3DSprites.h
    (16.03 KiB) Downloaded 121 times

    you'd see that the functions for creating and creating from tex are not too different; it's weird but one somehow makes all sprites show the same frame whereas the other doesn't.

  • Eventually when you create more than 1024 sprites(and even if you delete them all and then proceed to create new sprites) they start disappearing. I assume their textures are getting deleted but I'm not sure.
Attachments
DSGMTemp3DSpritesI5950961.nds
(418 KiB) Downloaded 119 times
3D Sprites II.dsgm
(17.02 KiB) Downloaded 121 times
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: 1024 Sprites

Postby Buck_7 » January 11th, 2015, 9:14 pm

Thanks Yoshi! I really appreciate you for taking a look at my code and for pointing out those small things that could be improved but the problem isn't as simple as you may think.
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: 1024 Sprites

Postby Buck_7 » January 22nd, 2015, 6:39 pm

I've came to the conclusion that PAlib is the problem. So I'll just leave it as it is since there isn't much I can do about the problem, and make some examples to showcase the lib.
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: 1024 Sprites

Postby Buck_7 » January 31st, 2015, 12:40 am

So to avoid glitches in the sprite's graphics, I loaded all sprites that needed to be loaded and instead of deleting when a sprite is off screen I give it a new position to where it is needed.

It still needs perfecting but here's a liite demo

DSGMTemp3DSpritesMinecraftI55575741.nds
(387.5 KiB) Downloaded 123 times
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: 1024 Sprites

Postby BLsquared » January 31st, 2015, 6:14 am

That is amazing! Awesome work!
You may call me BLsquared, Commodore, or TexasBatman. Preferably BLsquared.
My avatar was made by this guy: http://christianmanga.com/smf/index.php ... bum;in=374

"Every puzzle has an answer." - Professor Layton
"In war, there is indeed no substitute for victory." - Douglas MacArthur
"Love and Peace!" - Vash the Stampede
"It's High Noon!" - McCree
Member of Memefefe's Squad
User avatar
BLsquared
 
Posts: 997
Joined: August 10th, 2011, 4:39 pm
Location: United States of America

Previous

Return to Work In Progress

Who is online

Users browsing this forum: No registered users and 1 guest

cron