Trying to recreate 'Master Render Targets' - part 1, can't get it to work... (SOLVED)

Hey there,

I am trying to recreate ‘Master Render Targets’ from the blog.
I am stuck at the end of part 1. I just can’t get it to work…
No errors, nothing. It just shows the original windows.

I think I did everything that was required in the tutorial to the dot.
(Adding a material, adding the .vp, .fp, adding the view_proj, adding the texture_sampler, made the quad, assign it to the material, etc, etc…)

Running it. Nothing changes. I thought it was of the changes I’ve done manually in the renderscript. After quite (!) a while I just copied the
Master Render Target Part 1 - .render_script in my project.
Still doesn’t work.

I’ve spent 2 hours comparing my project to the part 1 example project. I didn’t find anything in my project that isn’t identical to the example. I am at a loss here.

My project is attached here:
masteringRenderTargets.zip (633.3 KB)

Maybe someone could check it and might spot something in it that
is wrong. Really, I have no idea…

Thanks,
tL.

(here is the link to part 1 example https://github.com/davabase/mastering_render_targets/tree/master/part_1 )

1 Like

Your window.fp contains errors which results in the logo not being displayed.
Also you have a different scale for window.go
If you fix these you will recreate.

2 Likes

Oh, really, you’re right! This is weird because I use the default .fp
from the built-in sprite. (Maybe it was the tint multiplication or the varying vec3 position… EDIT: Yeah, it was the tint multiplication to the Texture2D() function…)

I never thought this was the problem, but it seems it is.
Thanks for your help, I was pulling my hair out… :smile_cat: