Frictional Games Forum (read-only)
Animated gobo's tutorial - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: Animated gobo's tutorial (/thread-10677.html)



Animated gobo's tutorial - Khyrpa - 10-09-2011

I've discovered a way with you can animate gobo's of spot lights (thanks to Danarogon's nyan cat in Dark Room). It's a nice effect that you can use to create lots of different things.

The idea is to use rapidly changing pictures as spot lights gobo to create frames of lighting. Frictional used this to simulate light reflected from water.

I will not teach you how to use gimp/photoshop or other image editing software, but you can use various softwares to create what you like. It all comes down to what program can export to the file extensions you want (png/dds, you could perhaps even use jpg).





How I did that was use gimp to make a text (200x100 size because the pixels don't really show when the image is applied to spot light, frictional used 256x256 for their gobo's), then used another layer to cover certain areas of the text frame by frame so it looks like it is writing as you watch. (Notice how I screwed up by not mirroring the text).
Spoiler below!

[Image: gobo01.jpg]


Because I wanted red color for the light I made it red and exported as .png (I am absolutely not sure about the image extensions and which one to use when, but I am sure png works ok. If someone knows more about them, please teach me). Frictional used .dds files for their gobos, perhaps settings that had only grayscale.

You have to name the images appropriately. Here's a picture of my folder. NOTE: to properly use folders ouside the standard ones, you have to edit your resources text file. Good tutorial about that:
http://www.youtube.com/watch?v=xZTabBgYD8k&list=PLD326789BC99530C8&index=&t=3m24s
Spoiler below!
[Image: gobo02.jpg]
When you have the pictures made, you can just put a spotlight inside your map, select the gobo with _001, set the Anim mode to oscillate or loop and set the framerate. That should be it!

Spoiler below!
I also want to advertise a short tutorial I made about billboards because it might be hard to stumble upon accidentally. Following the first part of it should make the changing of billboards colors a lot less frustrating. I wonder why frictional didn't connect their billboards (performance?).
http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/tutorial_6

Also if someone has ideas about neat tricks in the level editor that ease developers work load or enchance aesthetics, tell about them in this thread and/or add them to wiki.



RE: Animated gobo's - Statyk - 10-09-2011

(10-09-2011, 05:05 PM)Khyrpa Wrote: Recently I've discovered you can animate gobo's of spot lights (thanks to Danarogon's nyan cat in Dark Room) and here's something horrible I came up with it in 10 minutes:



I can't even imagine what cool things can be done with this feature so I will add some kind of tutorial about it in the wiki page mentioned below when I have time.

I also want to advertise a short tutorial I made about billboards because it might be hard to stumble upon accidentally. Following the first part of it should make the changing of billboards colors a lot less frustrating. I wonder why frictional didn't connect their billboards (performance?).
http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/tutorial_6

Also if someone has ideas about neat tricks in the level editor that ease developers work load or enchance aesthetics, tell about them in this thread and/or add them to wiki.
Awesome find XD I can't really see this being useful in seriousness, unless for maybe showing a bird flying past a window, or the such. I liked your display though =] Kudos




RE: Animated gobo's - Acies - 10-09-2011

It can be used to create moving shadows:
http://www.youtube.com/watch?v=c5GD5hBLUfI&feature=feedlik

11:15


RE: Animated gobo's - flamez3 - 11-08-2011

When's the tutorial coming out?


RE: Animated gobo's - Khyrpa - 11-08-2011

(11-08-2011, 12:08 AM)flamez3 Wrote: When's the tutorial coming out?
Oh... I already kind of forgot about it, but well I'll try to do it today!
edit. Done!


RE: Animated gobo's tutorial - flamez3 - 11-13-2011

Thanks ;D


RE: Animated gobo's tutorial - Danny Boy - 11-13-2011

haha Big Grin funny to see my silliness will help people makes this kind of stuff ^^