Public Group

# software renderer

This topic is 3611 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey guys, got a bit of free time (not much) so decided I'd have a go at writing a basic software renderer, not planning on taking it very far, aslong as I can rasterise and light some tris, and have them spinning / moving around then i'll be happy. I am happy with all the math/theory (with the exception of perspective correct textures, but ill cross that bridge when i come to it ), just wondered what your thoughts are with regard to drawing my stuff onto a screen. It would appear that GDI's SetPixel is a bit slow. I understand some people just lock bitmap data and then adjust the memory manually, any examples of this? Or the other alternative im considering is SDL. Like I said I dont intend to put more than about 10 hours into this, just a little learning excerise Cheers

##### Share on other sites
PixelToaster is a nice library for software rendering. It is easy to use and has built in utility functions for input handling and timing. A minimal example:
Display display( "Example", 320, 240 );vector<Pixel> pixels( 320 * 240 );while ( display.open() ){    render( pixels ); // your render function    display.update( pixels );}

##### Share on other sites
Quote:
 Original post by KambizPixelToaster is a nice library for software rendering. It is easy to use and has built in utility functions for input handling and timing.
Thanks for that - looks very handy for prototyping image algorithms.

1. 1
Rutin
47
2. 2
3. 3
4. 4
5. 5

• 13
• 10
• 12
• 10
• 13
• ### Forum Statistics

• Total Topics
632994
• Total Posts
3009769
• ### Who's Online (See full list)

There are no registered users currently online

×