Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8098029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:56:56+00:00 2026-06-05T21:56:56+00:00

I am using Ogre3D and it’s compositors. Basically, I am wondering what will be

  • 0

I am using Ogre3D and it’s compositors.

Basically, I am wondering what will be the fastest way to blur everything around a dynamic point in the viewport. The point is given by the 2D screen coordinates. The farther a pixel is from that point, the more blurred it should be.
To give you an idea of how much blur it is supposed to have, if the blurring point is exactly in the middle of the screen, the edges should be maximally blurred. So the blurriness coefficient of a pixel could be thought of as

MIN (
(normalizedDistanceBetween(pixel, blurringPoint)/0.5),
1.0 )

So I am assuming the right way to go is to first make the completely blurred version of the scene using a shader. That part I have already.

Now, how to mix this blurred image with the original scene? I see two ways:

  1. Input the original and the blurred version to the compositor shader, let it calculate the distance and the result of the above formula, mix using the result.
  2. Setup an additional render-to-texture pass, which would use the above formula to render the “mixing texture”. The point of this is that the mixing texture can be much smaller than the screen, even maybe 16×16, it won’t have much difference on the result. Then, input the original scene, the blurred version and the mixing texture to the final compositor shader, which would simply sample a value from the mixing texture for each pixel and use that to mix the 2 scene versions together.

Does the second method make any sense? Would it have any noticeable performance gain than the first one? (Even a couple fps?) Or does creating an additional RTT pass and texture mitigate all the performance won by not calculating a (rather simple) distance function for every output pixel? I am assuming that the screen size is something normal, like 1024×768, ie, much larger than the 16×16 mixing texture. Or is there any other simpler method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:56:58+00:00Added an answer on June 5, 2026 at 9:56 pm

    Either version may have a performance edge. Unless you’re doing something particularly inefficient, both ways should be fairly fast.

    If you’re really concerned about it, you should implement both, and benchmark them.


    If you aren’t doing this already, you may be able to speed up your effect by generating your blurred buffer at half-resolution. This requires a good resampling filter to avoid aliasing when reading the original scene(I recommend at least a [1,3,3,1] Gaussian, and possibly wider, like [1,5,10,10,5,1]).

    In fact, if you want a particularly wide maximum blur, you could repeat the process, generating a multiresolution image pyramid. (once you’ve downsampled your original, everything becomes much cheaper because half-resolution means 1/4 the pixels)


    Another possible speedup (again, if you haven’t tried it already): since your compositor is doing straight-up alpha-blending with your original image, it doesn’t actually need to sample it. Instead, you can output an alpha channel, render to the original buffer, and use the rasterizer function to do the final compositing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am programming a game using Visual C++ 2008 Express and the Ogre3D sdk.
Using Nunit, I want to be able to write a test fixture that will
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using Rails 3.2.0 with haml, sass and coffeescript: Basically I am trying to disable
I'm using Ogre3D, so I'm using several classes who inherits Ogre and OIS classes
I'm using Ogre3D and PhysX. When I load a terrain from an 8bit height
I'm trying to write a shader using cg (for ogre3d). I can't seem to
I am a hobbyist C++ programmer and currently working on a game (using Ogre3D)
I am implementing scripting for my Ogre3d based application using Lua and I have
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.