# Creating a PostProcessVolume from C++, anyone done that yet?

**URL:** <https://forums.unrealengine.com/t/creating-a-postprocessvolume-from-c-anyone-done-that-yet/5041>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 26, 2014, 4:59pm UTC](https://forums.unrealengine.com/t/creating-a-postprocessvolume-from-c-anyone-done-that-yet/5041 "2014-05-26T16:59:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Lundmark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stefan\_Lundmark](https://forums.unrealengine.com/u/Stefan_Lundmark)\
**Post date:** [May 26, 2014, 4:59pm UTC](https://forums.unrealengine.com/t/creating-a-postprocessvolume-from-c-anyone-done-that-yet/5041/1 "2014-05-26T16:59:40Z")

</div>

Hi,

I’m struggling to create a PostProcessVolume from C++, as I don’t know how to apply the brush to the volume.  
If anyone has any examples, I would appreciate it. I’ve checked both the samples and the engine and this is how far I’ve got:

```auto

TSubobjectPtr<APostProcessVolume> PostProcessVolume = PCIP.CreateDefaultSubobject <APostProcessVolume> (this, TEXT("PostProcessVolume"));
	PostProcessVolume->Settings.GrainIntensity = 1.0f;
	PostProcessVolume->Settings.GrainJitter = 1.0f;
	PostProcessVolume->BlendRadius = Radius;
	PostProcessVolume->BlendWeight = 1.0f;
	PostProcessVolume->Settings.AutoExposureMaxBrightness = 3.0f;
	PostProcessVolume->Settings.AutoExposureMinBrightness = 0.75f;
	PostProcessVolume->Settings.AutoExposureBias = 2.0f;
	PostProcessVolume->BrushComponent = PCIP.CreateDefaultSubobject <UBrushComponent> (this, TEXT("BrushComponent"));

```

I have no idea how to apply a sphere shape to this brush so that’s where I’m stuck.

Thanks!

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [May 28, 2014, 11:09am UTC](https://forums.unrealengine.com/t/creating-a-postprocessvolume-from-c-anyone-done-that-yet/5041/2 "2014-05-28T11:09:54Z")

</div>

Because volumes are defined using a BSP BrushComponent, which is very hard to build from code, this isn’t really something we support. You might be better off applying your postprocess changes to the cameracomponent instead.
