Counting pixels with ogre

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Marcel Gangwisch
Gnoblar
Posts: 2
Joined: Thu Jan 14, 2016 10:47 am

Counting pixels with ogre

Post by Marcel Gangwisch »

Hi *,

we want to count white pixels in a renter target texture utilizing ogre. Currently the rendered image is blit to memory and counted on the cpu.
As this is rather slow we appreciate any idea on speeding up the process. Is it possible to do this on the gpu itself, to count the white pixels there and just copy the computed number of white pixels to the memory?

Can we maybe use OpenCL and / or Ogre to speed things up?

Best regards and have a nice day!
Marcel
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Counting pixels with ogre

Post by spacegaier »

Which Ogre version are you using?
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Marcel Gangwisch
Gnoblar
Posts: 2
Joined: Thu Jan 14, 2016 10:47 am

Re: Counting pixels with ogre

Post by Marcel Gangwisch »

Hey spacegaier,

we use the mogre version 1.7.1

Best regards,
Marcel
Post Reply