• Movie Projector
    310 replies, posted
Any succes yet?
Give him time!
I have AzuiSleet helping me now. We are working on a way to dynamically change the appearance of a VTF. This should allow env_projectedtexture to work with this. If all goes well, we will have made gaming history.
And I can say to my kids and grandkids, "I WAS THERE!"
I've integrated an I/O system for maps. Unfortunately for this amount of customization, I'll have to redo some of this server side. The good news is that you can customize this within your maps. You can put together your own slide shows manually within Hammer. You can change between movies too. Now that it has an I/O system, you can do stuff like make lights dim when a movie starts and fade back on when a movie ends. It would make movie theaters in RP maps so much better!
You can play full length avi's right?
[QUOTE=raccoon12;15425858]You can play full length avi's right?[/QUOTE] I think that the GMod AVI library is designed for recording AVI's, not playing them. The only other think I know of would be using the FLV player (I think?) and that requires some pre-written java script to run. Don't get me wrong I'm sure it's doable, but it is essentially using an HTML page to play.
I will be crying when this is released...
I got some of the networking done. Once I get the module from AzuiSleet, it will just be a matter of getting that to work with it. There's still the question of how to get env_projectedtexture to work between client and server though. If all goes well though, this will be epic. I was also thinking of having an image that projects when there's no video in it, or when it's preparing to play a clip. Like when you see a countdown on a screen. I was thinking a Lua logo with the orb spinning around the dashed circle. Anyone wanna make one that actually moves in a circle? I tried but I don't have great image editing tools.
How about the gmod loading symbol thing? You know, the thing in the middle of the screen that moves around in a circle when the game is loading/downloading files.
[QUOTE=foohy1234;15473040]How about the gmod loading symbol thing? You know, the thing in the middle of the screen that moves around in a circle when the game is loading/downloading files.[/QUOTE] Good idea! [editline]08:26PM[/editline] Could you direct me to it?
I'm sure it's in the gcf file somewhere, I'll see if I can find it. [editline]06:05PM[/editline] Ok it's actually 2 files, 1 for the logo in the middle and one for the spinning circles. Logo: materials/VGUI/loading-logo (both vmt and vtf files of course) spinning circles: materials/VGUI/loading-rotate
How many frames in all?
Not quite sure on this, but 2 frames? Sorry, I might be looking at it wrong or something got messed up on my side, as it thinks both the files aren't animated
Ah, I see. It's manually turned. I'll have to animate it.
Use one of those Firefox loading circles. They look nice.
Choose one from [url]http://ajaxload.info/[/url] :D My favorite: [url]http://ajaxload.info/cache/FF/FF/FF/00/00/00/21-0.gif[/url]
Yes, those.
I actually just got the gmod loading screen into an animated GIF. It is only the spinning part for now though.
Isn't it will be more easy to animate 2 textures from lua?
True. I'll look at my other options.
Is it possible to play .bik videos the way TF2 does when you first start playing and there's an intro video in-game? Garrysmod does use TF2 Engine afterall..
[QUOTE=grea$emonkey;15385199]If all goes well, we will have made gaming history.[/QUOTE] Not quite. This has already been done before. In source infact, a full avi player through the form of a procedural texture: [url]http://developer.valvesoftware.com/wiki/Procedural_Materials[/url]
Thank you. Still, this does have some unique features. This won't be a God-send of code, but it will be pretty close.
Is there a lot of code, or are you looking at fairly small amounts of very complex code?
Good god, this is pretty innovative indeed. Keep it up!
[QUOTE=grea$emonkey;15521463]Thank you. Still, this does have some unique features. This won't be a God-send of code, but it will be pretty close.[/QUOTE] Not really. I mean, I hate to burst your bubble here and all but it's frankly just not very complicated or new code. I guarantee you this kind of thing has been pulled off with many different engines, and definitely in a more efficient way. Lua is simply not fast enough to update a texture pixel by pixel like you're planning.
Oh well, it was a nice idea. Still, this is unique within gmod so there's no reason to give up.
[QUOTE=Sa-Mu;15536007]Not really. I mean, I hate to burst your bubble here and all but it's frankly just not very complicated or new code.[/quote] There are plenty of games that have simulated projection, but not with dynamic/realistic light. I'd very much like to hear one. [QUOTE=Sa-Mu;15536007]I guarantee you this kind of thing has been pulled off with many different engines, and definitely in a more efficient way. Lua is simply not fast enough to update a texture pixel by pixel like you're planning.[/QUOTE] Which is why Azuisleet is working on a module for it.
Here we are with the loading screen. Non-animated, but still spins. [img]http://img231.imageshack.us/img231/6452/gmconstruct0112.jpg[/img]
Sorry, you need to Log In to post a reply to this thread.