There are currently 107 players online.
 
Warsow


 
 

backDrawPixels

Posted by
Post Scroll to bottom
BBQsauce

J.M.
(599 posts)

I modded something that make use of the function gldrawpixels to write directly in the frame buffer and override normal rendering. This is working in the intro menu as the background map is indeed rendering-modified, but not in-game, I am a bit surprised by this behavior and don't know where I should be looking at.

Are there any difference in the buffer swap logic, or any detail that I am missing, that make in-game gldrawpixel fail that is not in the menu ?
(updated 2012-09-11 08:52:17)

Vic

Member
(4891 posts)

Hm, nothing comes to my mind aside from the fact that glDrawPixels sucks balls, you shouldn't be using it.

learn_more

Member
(3316 posts)

gldrawpixels


you might be drawing to the wrong buffer, toy around with glDrawBuffer to set the active buffer.


making hacks are we?
you are doing it wrong ^^

BBQsauce

J.M.
(599 posts)

This was intended to be a 1st version of something more advanced, knowing very little about gpu programming I was already quite satisfied of this silly hack. It does rely on a cpu processing of bitmaps hence the gldrawpixels. I suppose that not using it imply to create a texture and render it. I cba atm, especially since i can't be sure it would work any better but might give it a try later.

Anyway, teaser





e/ btw, checked drawbuffer, but it's not that
(updated 2012-09-13 17:21:25)


Scroll to top



RSSRSSRSSRSS

Copyright © 2013 Chasseur De Bots

Warsow in social media



Warsow is an indie game developed by group of hobbyists. Please consider giving us a small donation: