im trying to add a video camera like the one in ut_superman.
im guessing it must be simular to making a mirror but i cant figure it out. i can make a mirror though.
any help would be great.
thanks
Zellis
Advertisement
Page 1 of 1
how to make a video camera?
Advertisement
#6
Posted 25 April 2005 - 04:54 AM
Check out the shader for superman. I did some layer tricks to make the camera look like it does, i.e. green hue, screen texture, etc. Plus, you should have noticed that it's a quake-fangled 3D monitor so you can jump up and look down. I placed the monitor where it is to minimize the 3D effect.
Note how I did not follow the standard id software tradition of adding moving scanlines to every screen visible. Why does id insist that monitors must all have scanlines?
Also zellis, to make sure you understand, the camera model in the hallway has nothing to do with the actual display shown on the monitor. It's only a prop model for astetics.
Note how I did not follow the standard id software tradition of adding moving scanlines to every screen visible. Why does id insist that monitors must all have scanlines?
Also zellis, to make sure you understand, the camera model in the hallway has nothing to do with the actual display shown on the monitor. It's only a prop model for astetics.
#7
Posted 26 April 2005 - 03:21 AM
Thanks for the pointers duck, im still a map newbie so any help is great. I was finally able to get my camera working perfect last night, I basically had to reverse engineer the shader file referenced on the link that NulL provided to make it work the way I wanted. I still need to play around with it to see what it can do.
There seems to be a problem with the shader you posted, I can’t view it or DL it. Could you post it here by chance? Here is the one I came up with for starters. No trick stuff, just a plain camera shader.
Thanks again.
Zellis
textures/camera/portal
{
portal
surfaceparm nolightmap
{
map textures/camera/portal.tga //texture should be a lighter shade
blendFunc GL_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA
depthWrite
blendfunc gl_dst_color gl_zero
alphagen portal 512 //increese for view distance
}
}
There seems to be a problem with the shader you posted, I can’t view it or DL it. Could you post it here by chance? Here is the one I came up with for starters. No trick stuff, just a plain camera shader.
Thanks again.
Zellis
textures/camera/portal
{
portal
surfaceparm nolightmap
{
map textures/camera/portal.tga //texture should be a lighter shade
blendFunc GL_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA
depthWrite
blendfunc gl_dst_color gl_zero
alphagen portal 512 //increese for view distance
}
}
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement