220?!?! That's Really Too Much!!!

Topics regarding Scripting with Reality Factory
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

220?!?! That's Really Too Much!!!

Post by metal_head » Sat Oct 25, 2008 7:18 pm

I want the game to make a good impresion when it begins,so I decided to do the following:
Because the player has sci fi sunglasses,which show him the radar and the health I want to make them kind of switch ON when the game starts. So I decided to make a flipbook effect(http://www.mediafire.com/download.php?m0dztymlkyn),which with a script will be shown on the screen,but this time the problem isn't the script,but the huge ammound of bitmaps and alphamaps I'll have to create for the game.There are 220 bitmaps to be exported,than 220 alphamaps to be made :(..this will take a whole day! The worst part is that 440 bitmap files will require more HDD space than the demo itself.
I have the feeling that it could deal with scripting,so that's why I'm posted this topic here.

I know that it's nearly impossible,but can this be done with a GIF or an AVI file? Or is there another way that I can make this effect to rewuire only 10 bitmaps,and still look cool.

Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: 220?!?! That's Really Too Much!!!

Post by Danimita92 » Sat Oct 25, 2008 11:42 pm

Okay, so I'm guessing this'll happen in a certain moment of the game. Supposing the player is going to be looking at somewhere in specific, what you could do is add a seemingless cutscene, that you create by taking a snapshot of what the player is looking at when this happens, and adding this effect on top of it with a video editing software.

I uploaded an example of what your cutscene could be. Just imagine the background image to be the snapshot of your game:
http://www.mediafire.com/file/ojimmdy2j ... l_Head.rar

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 2:11 am

No,no, you got me wrong. I ment when the level starts,and I want the player to be able to look freely,and jus ttat effect to appear only once,I think it will be awesome If I manage to make it somehow.So the player can look and even walk,just want that effect to be activated once the player has started the game. Just for a cool start :) and that's the bad thing,I'll have to make 440 bitmaps in order to make the effect :(

User avatar
FridyWorm
Posts: 23
Joined: Wed Oct 08, 2008 9:56 pm
Location: Torremolinos(Málaga), Spain

Re: 220?!?! That's Really Too Much!!!

Post by FridyWorm » Sun Oct 26, 2008 10:32 am

I think you can make it a GIF.
Map happy, Map cheerful, But Please, Map Slowly!

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 5:05 pm

Will the gif be transparent? Does RF even support gif transparency? I was thinking about making a GIF,but really not sure how I'm gonna do it.

Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: 220?!?! That's Really Too Much!!!

Post by Danimita92 » Sun Oct 26, 2008 7:30 pm

What I meant was to make that effect with what the player sees at the beginning, and then suddenly to continue in the game as if the cutscene was part of the game.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 7:58 pm

Yeah,I know,but I want the player to be able to walk alk and look arround during this effect :)

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: 220?!?! That's Really Too Much!!!

Post by Allanon » Sun Oct 26, 2008 9:17 pm

Use the same process I described before except use the VideoTextureReplacer entity and a transparent GIF.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 9:26 pm

OK,so now the problem is how do I generate the transparent GIF. I'm working with Particle Illusion (that's the program that makes all the effects in th game). Particle Illusion can export in bmp,jpg,gif,and many others,but what the background of the gif should be (what color). And after that how do I make this effect? The video texture replacer is for textures,right? than how will I be able to put the effect on the screen?

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: 220?!?! That's Really Too Much!!!

Post by Allanon » Sun Oct 26, 2008 9:37 pm

There are a lot of tools out there that make transparent GIF files, it is not specific to RF. I used the free trial of Neomesh Image Converter to make the transparent GIF file I used for testing. But the trial version will only convert 10 bitmaps. I suggest searching for a transparent animated GIF tool using Google.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 9:58 pm

Yeah,but the problem is that I want this speciffic effect,and particle illusion CAN export gifs,but the problem is that I don't know how to make the background transparent,do I have to make a speciffic background color behind the effect or I just need to do some settings,I know that you may haven't even heard of Particle illusion,but I'm asking about transparent gifs (what makes the gif transparent)

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: 220?!?! That's Really Too Much!!!

Post by Allanon » Sun Oct 26, 2008 10:17 pm

With Neomesh Image Converter you tell it what color you want transparent. I've seen others programs that use alpha maps. It all depends on what program you use. Also, I haven't tried this but you might be able to use the transparent animated GIF as the bitmap for a HUD item. This will allow you to look around while the gif is playing.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Sun Oct 26, 2008 10:31 pm

OK,so I'll get started tomorrow,since I'm a little sleepy right now and I'll see what I'll be able to do.

Well,there's that script command:

Code: Select all

DrawHudElement();
I think it was like that,which shows a hud element on the screen,if gifs are alouded,which I think are,it could be pretty possible.

Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Re: 220?!?! That's Really Too Much!!!

Post by Jay » Mon Oct 27, 2008 11:43 am

You could make the characters a font and then use a script which makes several of them visible at a certain time. It's hard to script something like this, but it is certainly possible. You would use an array of the characters for each line and then draw them with the DrawText(...) command with alpha values.
Everyone can see the difficult, but only the wise can see the simple.
-----

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: 220?!?! That's Really Too Much!!!

Post by metal_head » Mon Oct 27, 2008 2:54 pm

That will be too hard for me,and actually the numbers aren't that important for me,but the scan light that goes through the screen.

Post Reply