# Whiteboard Blueprint

**URL:** <https://forums.unrealengine.com/t/whiteboard-blueprint/9570>\
**Category:** Game Development\
**Tags:** Staff-Pick-UE, unreal-engine\
**Created:** [August 17, 2014, 12:35pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570 "2014-08-17T12:35:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divinitize](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Divinitize](https://forums.unrealengine.com/u/Divinitize)\
**Post date:** [August 17, 2014, 12:35pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/1 "2014-08-17T12:35:16Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/1/4c114299cd23e854f2ff7949febeb32f1864b289.png)  
I created this **Whiteboard** as a learning experience, just to see if it could be done.  
It’s being released to the public to learn and adapt for yourselves.

Three things to note before you download.  
First, i am not 100% sure this is the best way of doing this, basically we’re spawning a decal on every tick so it may or may not be viable, performance wise.  
The second, I couldn’t find a way of deleting the decals after spawning them, which means that I did not add an **eraser**.  
And lastly there seems to be a feature built in the engine which deletes all decals if there are too many, you will notice this happen after a white of using it, would be nice if an _ **Unreal Developer** _ could chime in with anymore info on that matter.

So anyway, enjoy!  
Don’t forget, if you find better ways of doing this, please share it with this thread.

\*As always, this model and blueprint was done by myself and you are free to use it in your own project, commercial or otherwise.  
\*

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/3/c837681b2ace9f8c507a292dee8ca567208f56e4.png)  
Download = [https://drive.google.com/file/d/0BwcqVritglcbdlJZUWpQNk01OEE/edit?usp=sharing](https://drive.google.com/file/d/0BwcqVritglcbdlJZUWpQNk01OEE/edit?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Tesla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tesla](https://forums.unrealengine.com/u/Tesla)\
**Post date:** [August 17, 2014, 1:51pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/2 "2014-08-17T13:51:31Z")

</div>

Nice! I created my own drawing system and ran into the decal issues too!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_68eaa1c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_68eaa1c7](https://forums.unrealengine.com/u/anonymous_user_68eaa1c7)\
**Post date:** [August 18, 2014, 10:01am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/3 "2014-08-18T10:01:58Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Unfamillia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unfamillia](https://forums.unrealengine.com/u/Unfamillia)\
**Post date:** [August 26, 2014, 12:01pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/4 "2014-08-26T12:01:41Z")

</div>

This is really cool! I like your ‘out of the box’ thinking. Do you think this could be implemented in a game? So, the player could run up to the board, write something and run off again?

Cheers

Jay.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [August 26, 2014, 1:16pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/5 "2014-08-26T13:16:52Z")

</div>

Fantastic job Divinitize! Worked great when I tried it out the other day. Keep up the great work and hope to see more of your projects in the future!

---

<div class="post-metadata">

**Author:** ![Divinitize](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Divinitize](https://forums.unrealengine.com/u/Divinitize)\
**Post date:** [September 3, 2014, 11:26pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/6 "2014-09-03T23:26:13Z")

</div>

> [@Unfamillia;126476](#):
>
> This is really cool! I like your ‘out of the box’ thinking. Do you think this could be implemented in a game? So, the player could run up to the board, write something and run off again?
> 
> Cheers
> 
> Jay.

Yep, you should just be able to right click on the whiteboard folder and hit migrate, choose your projects content folder and you’re good to go.  
You can then just drag out the whiteboard blueprint and place it where you want, however be wary of the spawn decal nodes transform, you might need to change the rotation of the spawned decals if using it on a different axis compared to mine.

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 3, 2014, 11:48pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/7 "2014-09-03T23:48:22Z")

</div>

@Divinitize - I have some code you may find interesting, for making a UTexture2D out of a color data buffer.

If you want it I can clean it up and send it over, it should be possible to create a more robust whiteboard using it by simply keeping around a buffer of your color data and updating the texture each time the user changes the data in the buffer. Then it’s just a matter of setting the texture onto a dynamic material instance (to be used by the whiteboard mesh).

---

<div class="post-metadata">

**Author:** ![Divinitize](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Divinitize](https://forums.unrealengine.com/u/Divinitize)\
**Post date:** [September 4, 2014, 8:32pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/8 "2014-09-04T20:32:45Z")

</div>

> [@n00854180t;133444](#):
>
> @Divinitize - I have some code you may find interesting, for making a UTexture2D out of a color data buffer.
> 
> If you want it I can clean it up and send it over, it should be possible to create a more robust whiteboard using it by simply keeping around a buffer of your color data and updating the texture each time the user changes the data in the buffer. Then it’s just a matter of setting the texture onto a dynamic material instance (to be used by the whiteboard mesh).

I appreciate the offer, however i am not familar with c++ in any way, but if you want to post it here anyway im sure somone will find some use for it.  
Thanks.

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 4, 2014, 9:39pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/9 "2014-09-04T21:39:55Z")

</div>

> [@Divinitize;134073](#):
>
> I appreciate the offer, however i am not familar with c++ in any way, but if you want to post it here anyway im sure somone will find some use for it.  
> Thanks.

You could use it as a Blueprint node quite easily, actually, though my code would need some changes, as you’d probably want to use an array of FColors in Blueprint. Anyway, I’ll make some changes to it so it’d be easier to use in Blueprint, test it out and upload it somewhere here. Should be useful for a lot of purposes 🙂

---

<div class="post-metadata">

**Author:** ![Ivey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivey](https://forums.unrealengine.com/u/Ivey)\
**Post date:** [September 8, 2014, 2:57pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/10 "2014-09-08T14:57:07Z")

</div>

Whoa - this is super cool!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cbdc83411](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cbdc83411](https://forums.unrealengine.com/u/anonymous_user_cbdc83411)\
**Post date:** [September 11, 2014, 10:00pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/11 "2014-09-11T22:00:19Z")

</div>

thanks for sharing it 🙂

---

<div class="post-metadata">

**Author:** ![Callipark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Callipark](https://forums.unrealengine.com/u/Callipark)\
**Post date:** [September 13, 2014, 6:30am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/12 "2014-09-13T06:30:27Z")

</div>

> [@n00854180t;134106](#):
>
> You could use it as a Blueprint node quite easily, actually, though my code would need some changes, as you’d probably want to use an array of FColors in Blueprint. Anyway, I’ll make some changes to it so it’d be easier to use in Blueprint, test it out and upload it somewhere here. Should be useful for a lot of purposes 🙂

I’d be interested in seeing your code.

---

<div class="post-metadata">

**Author:** ![RinDreamX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RinDreamX](https://forums.unrealengine.com/u/RinDreamX)\
**Post date:** [September 25, 2014, 5:49am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/13 "2014-09-25T05:49:57Z")

</div>

Oh Man thanks a bunch for this whiteboard project.  
This get me started to make Tire mark on the ground.  
I’ll obviously set the decal lifespan to be limited for the tire track 🙂

---

<div class="post-metadata">

**Author:** ![HaxO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haxo/32/1008648_2.png) [@HaxO](https://forums.unrealengine.com/u/HaxO)\
**Post date:** [September 26, 2014, 3:35pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/14 "2014-09-26T15:35:53Z")

</div>

Thanks for the project!

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 26, 2014, 11:39pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/15 "2014-09-26T23:39:22Z")

</div>

> [@JonTerp;141193](#):
>
> I’d be interested in seeing your code.

Sure! Another user requested it as well. The way of doing it I mentioned in my last post isn’t as good as the method I came up with (which uses a render command to actually update the texture, which means its outside the game thread and shouldn’t cause any hanging there).

Currently this is untested, so let me know if you run into problems and I’ll do what I can to fix them (more info to debug the better), though it _should_ work.

I’ll be adding this code to my TextureFromDisk plugin repo, as well as passing it off to if he’d like to include it in his BP library (which is better maintained across versions than my plugin repo), but I’ll share it here just to get it out quickly.

The first thing is to add this function to your code:

[A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Dynamic_Textures) (UpdateTextureRegions is what you want)

Next, here’s the declaration for the Blueprint node function:

```auto

	
        /** Updates a UTexture2D* from an FColor array.
	* Update texture from color data.
	* @param ColorData Array of FColors to update this texture with. Array is assumed to be the same dimensions as texture, otherwise this call will fail.
	* @param Texture Texture to update.
	*/
	UFUNCTION(BlueprintCallable, Category = "TextureFromDisk")
	static void UpdateTextureFromColorData(TArray<FColor>& ColorData, UTexture2D* Texture);

```

And the definition:

```auto

void UTextureFromDiskFunctionLibrary::UpdateTextureFromColorData(TArray<FColor>& ColorData, UTexture2D* Texture)
{
	// Sanity checks.
	if (!Texture)
		return;

	if (ColorData.Num() <= 0)
		return;

	// Update region.
	FUpdateTextureRegion2D *region = new FUpdateTextureRegion2D(0, 0, 0, 0, Texture->GetSurfaceWidth(), Texture->GetSurfaceHeight());

	// Call the render command.
	UpdateTextureRegions(Texture, 0, 1, region, Texture->GetSurfaceWidth() * 4, 4, (uint8*)ColorData.GetTypedData(), false);
}

```

You’ll want to get a blank texture of whatever size you need set up first, along with a material. Then you’ll need an array of FColors, which should be sized the same as the number of pixels in your Texture2D (width \* height = number of elements).

When your user clicks or what not, update the FColors at the correct X/Y locations. Then call the Blueprint node there and pass in the color array and Texture.

Right now it’s set up to update the entire texture at once, due to the warning mentioned on the wiki page for the Dynamic Textures code. I haven’t tested whether or not it actually works with sub regions correctly, but it should be easy to extend to do that.

Edit: Right now the way it’s set up it will leak the FUpdateTexture2D - so you may want to change UpdateTextureRegions to free the FUpdateTextureRegion2D but NOT the SrcData pointer, because that refers to your TArray of FColors, which you don’t want freed.

To fix that, change this in UpdateTextureRegions

```auto

	
	if (bFreeData)
	{
		FMemory::Free(RegionData->Regions);
		FMemory::Free(RegionData->SrcData);
	}

```

to this:

```auto

	if (bFreeData)
	{
		FMemory::Free(RegionData->Regions);
	}

```

If you change this, make sure to change the last parameter for UpdateTextureRegions to be true, so it will actually free the FUpdateTextureRegion2D.

---

<div class="post-metadata">

**Author:** ![Gaara](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gaara](https://forums.unrealengine.com/u/Gaara)\
**Post date:** [September 28, 2014, 5:35pm UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/16 "2014-09-28T17:35:17Z")

</div>

i just tested it.  
pretty cool idea and implementation!

Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [September 30, 2014, 3:49am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/17 "2014-09-30T03:49:33Z")

</div>

Reminds me of Duke nukem forever in a good way. 😃

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/2/662fe72daa8b80f93381cc6250a34dee34dafc8c.jpeg "Operation Kawaii-Desu") ](https://www.youtube.com/watch?v=B2jl-RBXEx4)

Sorry I had too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76cc820](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76cc820](https://forums.unrealengine.com/u/anonymous_user_d76cc820)\
**Post date:** [February 6, 2015, 12:46am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/18 "2015-02-06T00:46:49Z")

</div>

This is a cool idea that can have many implementations. Thank you for posting.

Maybe some of you can help me out with my attempt to implement this. My particular project in mind, instead of a whiteboard consists of a glassboard. I’d like to make an animation of a (hand) finger rubbing across a foggy glass wall, (like you were in the shower and writing on the glass walls). Then after some time elapses it slowly fades back to being foggy. On top of that central interface (essentially a glassboard), I’d like to add the rubbing sound and finally, an actual video in the background of something that would revealed only in portions where the fog is cleared.

I’d like to type in text and let the tip of the finger follow the natural way the letters would be made on the wall and for this to be an interactive animation where a player does it himself anyway he wants. It would be like one of those whiteboard promo videos essentially, but glass, fog, and finger. I searched them online and found some decent looking software to customize, but it’s not what I want for my needs.

My background is in Blender, but most limited to modeling/industrial design. I’m currently doing tutorials in Unity for 2D/3D gaming. I have no experience in Unreal Engine, but I really like Unreal’s user interface. I have Unreal on my list after I testing out Unity. So there’s two parts to my project. 1. the board and 2. adding sound and video. Do you think my best route to go is in Blender, Unreal, or some other video editing software out there or a combo? Would this whiteboard script be a good place to start (well after I did all my basic tuturials of Unreal of course).

Thanks for any input, I really would appreciate it and come back with updates if I’m able to make this project.

The Duke nukeem example above video, that game was made in Unreal4?

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [February 6, 2015, 2:20am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/19 "2015-02-06T02:20:51Z")

</div>

> [@srz;217020](#):
>
> This is a cool idea that can have many implementations. Thank you for posting.
> 
> Maybe some of you can help me out with my attempt to implement this. My particular project in mind, instead of a whiteboard consists of a glassboard. I’d like to make an animation of a (hand) finger rubbing across a foggy glass wall, (like you were in the shower and writing on the glass walls). Then after some time elapses it slowly fades back to being foggy. On top of that central interface (essentially a glassboard), I’d like to add the rubbing sound and finally, an actual video in the background of something that would revealed only in portions where the fog is cleared.
> 
> I’d like to type in text and let the tip of the finger follow the natural way the letters would be made on the wall and for this not to be an interactive animation where a player does it himself anyway he wants. It would be like one of those whiteboard promo videos essentially, but glass, fog, and finger. I searched them online and found some decent looking software to customize, but it’s not what I want for my needs.
> 
> My background is in Blender, but most limited to modeling/industrial design. I’m currently doing tutorials in Unity for 2D/3D gaming. I have no experience in Unreal Engine, but I really like Unreal’s user interface. I have Unreal on my list after I testing out Unity. So there’s two parts to my project. 1. the board and 2. adding sound and video. Do you think my best route to go is in Blender, Unreal, or some other video editing software out there or a combo? Would this whiteboard script be a good place to start (well after I did all my basic tuturials of Unreal of course).
> 
> Thanks for any input, I really would appreciate it and come back with updates if I’m able to make this project.
> 
> The Duke nukeem example above video, that game was made in Unreal4?

It was made in Unreal 3 but the same concept should apply for Unreal 4. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d76cc820](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d76cc820](https://forums.unrealengine.com/u/anonymous_user_d76cc820)\
**Post date:** [March 28, 2015, 3:53am UTC](https://forums.unrealengine.com/t/whiteboard-blueprint/9570/20 "2015-03-28T03:53:59Z")

</div>

I played around with the concept but resorted to simple transitions instead. Of course using unreal engine for a slideshow demo video wasn’t really a great idea to begin with, if I had implemented this feature it would take too long anyway. It’s definitely a cool feature. Anyway, [here’s the video](https://youtu.be/JVAMBmVKba4) I made if anyone is interested.

[Next page](https://forums.unrealengine.com/t/whiteboard-blueprint/9570.md?page=2)
