Can Ogre provide this 'Color-depth' effect?

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Posts: 1
Joined: Fri Jan 16, 2015 3:08 pm

Can Ogre provide this 'Color-depth' effect?

Post by Emilmacko »

Hello, I'm new to Ogre and its forum, and I'm here to ask if you believe that this visual effect could be possible in the Ogre3D-engine:


The picture above is composed of 8 different shades/colors. If possible it could be neat to even colorify it to look like a Gameboy-game (color-wise)
The image is black-&-white because fully saturated colors mixed together with white and black to form an image is (in my opinion) ugly.
I imagine it could be by shader or filter or something in that sense, whatever Ogre uses.
I'm hoping to make a first-person horror game with fairly simple/low-poly geometry and in black-&-white. I was looking into Unity but I couldn't
find anything that fit my need (unless it was a post-process effect which required Unity Pro), so I found Ogre3D and I want to know if it can produce the effect.

Pixelation is another thing. I assume the best process would be to render a frame and scale it up (without the pixels getting blurred/distorted), rather than rendering a frame and then pixelating it.

Nobody else seems to have needed this kind of thing (unless the effect has a specific name I am not aware of) and I have searched everywhere with words like "Color-Depth" and "2-bit" "4-bit" "Bit-depth" etc.
but all it seems to bring is people wanting to use textures or having games use some form of color-correction.

Any help is appreciated!

User avatar
OGRE Team Member
OGRE Team Member
Posts: 4294
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 129

Re: Can Ogre provide this 'Color-depth' effect?

Post by spacegaier »

Yes, such an effect is possible. What you basically try to achieve is to apply a shader to final rendered scene. The respective term in the Ogre landscape is "Compositor". With a compositor script you can apply a shader to the complete render result and use the processed buffer to be displayed to the user.

You can have a look at the Ogre samples to get you started: There is a compositor sample that also has a black&white shader which could serve as a base for your gray-scale filter.
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...

User avatar
OGRE Moderator
OGRE Moderator
Posts: 7153
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 523

Re: Can Ogre provide this 'Color-depth' effect?

Post by Kojack »

In the ogre sample browser try turning on b&w as spacegaier said, as well as Posterize. That one reduces the number of colours down to just a few.

Post Reply