Page 1 of 2

Camera and Television

Posted: April 18th, 2009, 7:39 pm
by Scorpion
Hello

I was thinking is it possible to create a Camera (possibly something like TDM Intermission) that shows onto a Television.

For CODUO

How would i do this?

Thanks :roll:

Re: Camera and Television

Posted: April 18th, 2009, 8:07 pm
by Soviet
Pretty sure it isn't possible, wait for Drofder or NM to respond before giving up hope though.

Re: Camera and Television

Posted: April 18th, 2009, 10:23 pm
by Drofder2004
Isn't possible.

Re: Camera and Television

Posted: April 19th, 2009, 3:54 am
by Nightmare
Nothing else I can really add on.
You could always make an animated texture to give the illusion of an active screen, but that would be pretty complex.

Re: Camera and Television

Posted: April 19th, 2009, 12:28 pm
by Scorpion
Thanks for the Replys

:cry:

Re: Camera and Television

Posted: March 16th, 2010, 5:24 pm
by BatterY
Sorry for the truth but i just want to know one thing: You thought something like in Duke Nukem 3D ? :D

Re: Camera and Television

Posted: March 16th, 2010, 7:49 pm
by Pedsdude
:lol:

Re: Camera and Television

Posted: March 16th, 2010, 8:15 pm
by Hoogie
Rofl @ that pic.

Re: Camera and Television

Posted: March 16th, 2010, 8:50 pm
by Drofder2004
Nunquam quoque tardus

Google just made that picture a just a slight amount better :D

Re: Camera and Television

Posted: March 30th, 2010, 4:45 am
by megazor
making TV in a map is easy!
Here are the things you need:
1. a GIF animation file.
2. A program that can save EACH frame of the GIF.

After making all the frames saved as textures (I recommend using DDS format), you will want to open Radiant.

Now create as many the same brushes as many frames you have, so that they make up the whole film.
Afterwards put all the textures on all the "frames". Use "Fit Texture" function.
If you have many frames, it will take pretty long time, but how nicely it will be looking afterwards!
Done? now select all the "frames" and turn them all into a script_brushmodel.
If you want the animation to be played by a trigger, make one.
The last thing you should do is learning the frame's length (a SINGLE frame, not all taken together).

Here we're ending the mapping part and starting the scripting one.
I assume you are familiar with the scripting.

there are several ways to animate the thing you have just created. I advise you to follow the way below:

using a "for" loop:

Code: Select all

animation = getent("animation", "targetname");
trig = getent("anim_trigger", "targetname");

while(1)
{
	trig waittill ("trigger");

	for (i = 0; i < 200; i++)	//it assumes your animation consists of 200 frames.
	{
		animation.origin += (0, 100, 0);	//it immediately shows the next frame by the means of a momentary motion the brushmodel along the axis Y on 100 units, which are the frame's length. (this example assumes the length is 100)
		wait 0.1;	//delay between two frames.
	}
	animation.origin = (0, 0, 0);	//after playback, returns the animation to the start point.
}
By the way, this example assumes that the animation moves along the axis Y. if you want it to move to another side, use the negative value of the length.
If you want it to move along the axis X, use
animation.origin += (frame's length, 0, 0);

If you want it to move along the axis Z, use
animation.origin += (0, 0, frame's length);

I added that to my map, and it looked really nice.

Re: Camera and Television

Posted: March 30th, 2010, 1:20 pm
by Drofder2004
You could also use animated textures. (take a look at the tracks on a tank, they are animated textures, not animated models...)

Re: Camera and Television

Posted: April 1st, 2010, 2:27 am
by megazor
Excuse me, but I haven't got what the camera system the subject author described is -.-

It's possible to make a movie, as well as making a spawning in a certain place as a spectator. If it's necessary to move the spectator, link it to script_model and use motion things.

Though I probably nevertheless have a wrong idea about the system. Therefore can anyone explain me?

Re: Camera and Television

Posted: April 1st, 2010, 3:34 am
by Pedsdude
megazor wrote:Excuse me, but I haven't got what the camera system the subject author described is -.-

It's possible to make a movie, as well as making a spawning in a certain place as a spectator. If it's necessary to move the spectator, link it to script_model and use motion things.

Though I probably nevertheless have a wrong idea about the system. Therefore can anyone explain me?
Just think of it as him wanting an actual CCTV camera, showing what's going on in view of the camera (e.g. multiple people moving, firing weapons, etc.). It's not possible.

Re: Camera and Television

Posted: April 1st, 2010, 2:02 pm
by Rezil
Not possible. Try DUKENUKEM3DEDITOR.exe :P

Re: Camera and Television

Posted: April 2nd, 2010, 5:40 am
by megazor
CCTV... if he's going to make it record everything what is going on, it's impossible, of course.