# How can one compose DynamicTextures at runtime in C++?

**URL:** <https://forums.unrealengine.com/t/how-can-one-compose-dynamictextures-at-runtime-in-c/287223>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 2, 2014, 7:36am UTC](https://forums.unrealengine.com/t/how-can-one-compose-dynamictextures-at-runtime-in-c/287223 "2014-07-02T07:36:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_at\_Opaque](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_at\_Opaque](https://forums.unrealengine.com/u/Chris_at_Opaque)\
**Post date:** [July 2, 2014, 7:36am UTC](https://forums.unrealengine.com/t/how-can-one-compose-dynamictextures-at-runtime-in-c/287223/1 "2014-07-02T07:36:51Z")

</div>

Is there a working example in c++ of altering a dynamic texture at runtime every tick, using an external file or by changing pixels, and then displaying this updated dynamic texture on an object in the world?

I’ve attempted to follow this tutorial but could not compile the second snippet of code:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Are there any public working examples or tutorials available?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_02adf4fd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_02adf4fd](https://forums.unrealengine.com/u/anonymous_user_02adf4fd)\
**Post date:** [January 1, 2015, 12:52pm UTC](https://forums.unrealengine.com/t/how-can-one-compose-dynamictextures-at-runtime-in-c/287223/2 "2015-01-01T12:52:32Z")

</div>

I had the same problem, trying to compile the Dynamic Textures snippet and getting a fair few linker errors. After much grief and frustration I found the answer:

1. Go to your MyProject.Build.cs-file.
2. Locate the line PublicDependencyModuleNames.AddRange(new string[] { “Core”, “Engine”…
3. Add “RHI” and “RenderCore” to the range.

From my understanding this is the way to make the building tool sort out the dll’s your project depends upon. For future reference if your project needs to depend upon more dll’s, they’re located in the folder …/EpicGames/4.x/Engine/Binaries/Platform/…-ModuleName.dll, where “ModuleName” is the string added to the PublicDependencyModuleNames.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0dafa81b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0dafa81b](https://forums.unrealengine.com/u/anonymous_user_0dafa81b)\
**Post date:** [May 13, 2016, 4:14am UTC](https://forums.unrealengine.com/t/how-can-one-compose-dynamictextures-at-runtime-in-c/287223/3 "2016-05-13T04:14:02Z")

</div>

I want to load texture dynamically with mipmaps…Is there any way to do it?
