GsIMAGE spanning multiple texture pages possible?

Graphic based area of development (Graphics Processing Unit), including the Geometry Transform Engine (GTE), TIM, STR (MDEC), etc.
Post Reply
zolost
Interested PSXDEV User
Interested PSXDEV User
Posts: 6
Joined: Feb 21, 2022
Location: Sweden

GsIMAGE spanning multiple texture pages possible?

Post by zolost » April 14th, 2022, 6:57 am

I have these tileset images that I would prefer not having to split up into several smaller 256x256 subsets. If i understand the psyq documentation correctly then it is not possible, but I've seen some hints here and there in other projects that it is.
In my attempts the image just overlaps as soon as the width exceeds 256.

Just curious :)

User avatar
mzxtuelkl
Curious PSXDEV User
Curious PSXDEV User
Posts: 20
Joined: Jul 26, 2021
PlayStation Model: SCPH-5501
Location: United States
Contact:

Post by mzxtuelkl » April 15th, 2022, 11:04 pm

zolost wrote: April 14th, 2022, 6:57 am I have these tileset images that I would prefer not having to split up into several smaller 256x256 subsets. If i understand the psyq documentation correctly then it is not possible, but I've seen some hints here and there in other projects that it is.
The 256x256 limit is a hardware limitation (according to the nocash docs), so either uploading large textures to VRAM or trying to access tiles exceeding your original tpage will cause issues unless you use a workaround.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » April 16th, 2022, 7:39 am

One trick might be to program it so your 3D model uses two 256 x 256 pages and aligns them to seem seamless as one continuous texture.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests