Author Topic: Best Method for Pixel by Pixel Bitmaps  (Read 3827 times)

0 Members and 1 Guest are viewing this topic.

Offline Vits

  • Newbie
  • Posts: 6
    • View Profile
Best Method for Pixel by Pixel Bitmaps
« on: September 04, 2020, 03:41:05 pm »
Hi again Everyone, I was wondering what is your opinion on the best way to rendering bitmaps pixel by pixel. I tried using POINT but it works like PUTIMAGE! What I want to do is do software rendering with textures in 3D, just for fun. I need to use each pixel though for my perspective projection algorithm. How exactly should I go about doing this?

If worse comes to worse then I will make my own texture loader from scratch. but I know in allegro and sdl they have pixel access functions meant for this.

Offline Unseen Machine

  • Forum Regular
  • Posts: 158
  • Make the game not the engine!
    • View Profile
Re: Best Method for Pixel by Pixel Bitmaps
« Reply #1 on: September 04, 2020, 04:18:40 pm »
Hi @Vits

Quote
What I want to do is do software rendering with textures in 3D, just for fun

_MAPTRIANGLE can do this, if thats not what you're after then you'll need to use POINT to get the pixel data (stored into an array) and then use PSET to manipulate the individual pixels.

Have fun,

Unseen

Offline Vits

  • Newbie
  • Posts: 6
    • View Profile
Re: Best Method for Pixel by Pixel Bitmaps
« Reply #2 on: September 04, 2020, 04:28:28 pm »
Stored into an array with POINT! I understand now

Thanks and happy coding