Search found 4 matches

by ORART
September 20th, 2023, 5:43 am
Forum: Graphics/GPU
Topic: Foreground with transparent color over background
Replies: 4
Views: 5809

Re: Foreground with transparent color over background

I'm using this command: img2tim -bpp 8 -tcol 0 0 0 -plt 0 0 -org 0 0 level1a.png -o level1a.tim
and got this in several cases:
by ORART
September 18th, 2023, 4:43 pm
Forum: Graphics/GPU
Topic: Foreground with transparent color over background
Replies: 4
Views: 5809

Foreground with transparent color over background

I'm trying to make a scrolling scene which has two images. One contains blocks, coins and the ground (foreground, I suppose); and the other one contains the background ( clouds, trees ). I have understood that the TRUE black color ( RGB 0,0,0) represents the transparency and I got this in the part o...
by ORART
March 4th, 2023, 11:30 am
Forum: Graphics/GPU
Topic: Problem with sprite moving on background
Replies: 5
Views: 7791

Re: Problem with sprite moving on background

Solved. Put LoadImage at the end of Display function in order to reload the background on every frame. void display(void) { // Flip buffer index //db = !db; // Wait for all drawing to complete DrawSync(0); // Wait for vertical sync to cap the logic to 60fps (or 50 in PAL mode) // and prevent screen ...
by ORART
March 3rd, 2023, 9:04 am
Forum: Graphics/GPU
Topic: Problem with sprite moving on background
Replies: 5
Views: 7791

Problem with sprite moving on background

Hi, i'm trying to move a blue ball image through a background. But when moving it leaves painted all the way it was directed just like this: screen.png Here's the code I got so far in main.c #include <stdio.h> #include <sys/types.h> #include <psxetc.h> #include <psxgte.h> #include <psxgpu.h> #includ...