Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 10:12:07 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Wanted: lower image quality
Pages: [1]
Print
Author Topic: Wanted: lower image quality  (Read 647 times)
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« on: 11. February 2009, 08:37:51 pm »

Hi,

does anyone have an idea, how to "disrupt" a render output?

The task is to simulate a slightly disrupted video signal.

a) by adding noise
b) simulate digital zoom (pixelate)

any help is appreciated!

Cheers,
Oliver
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 12. February 2009, 01:29:33 am »

I don't know, how to add noise (maybe just a few random half transparent grayish pixels mixed over the image). But making lower quality can be done by simply resizing the image to a smaller size and then resizing it back to its original size.

Marvin
Logged
shatterblast
Enjoying the stay
*
Offline Offline

Posts: 45


View Profile
« Reply #2 on: 12. February 2009, 06:16:22 am »

GIMP is suppose to have filters for simulating "television static" and even the odd light and dark lines seen on older monitors.  I believe the most recent "Front Mission 4" series from Squaresoft (Square Enix) uses a filter over the rendered result for this effect.  If you don't mind putting a little effort into it, you could possibly create two filters.  One could be for random simulated static with an opaque background for your game.  The other filter could maybe have a very slow-moving from up to down mix of opaque and "light grey" bars.  You might even throw in a "star burst" effect of the simulated monitor "turning on" while the filters come to effect, but I'm not sure what you might be looking for.  Just saying that adding a little white and grey translucent randomness on a 2D surface shouldn't interfere badly with your 3D renderings.  I prefer the PNG format for graphics editing personally.
« Last Edit: 12. February 2009, 06:25:35 am by shatterblast » Logged
Gunslinger
Enjoying the stay
*
Offline Offline

Posts: 44


View Profile
« Reply #3 on: 12. February 2009, 06:36:31 am »

How about changing the FOV randomly with every frame?
In some update method:

Code:
env.getView().setFieldOfView(FastMath.randomFloat(0.5f,0.7f));

It's simple and it will make the screen "flicker" very irregular.
Logged
Oliver
Enjoying the stay
*
Offline Offline

Posts: 28


View Profile
« Reply #4 on: 13. February 2009, 01:26:49 pm »

Thanks for your suggestions.

I played a while with it. It is everything but easy, to simulate disturbances in real time (>=60 fps)

Marvin, is there a fast way to to scale the render result two times in realtime before output?

Oliver
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 14. February 2009, 12:16:43 am »

Marvin, is there a fast way to to scale the render result two times in realtime before output?

Yes. You can do this by adjusting the field-of-view or the view-zoom. But zooming it by 2 or multiplying the FOV by 2 will not zoom the render result by 2. Just find the correct value.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic