|
1 registered members (AndrewAMD),
8,256
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Security camera.
#213805
06/30/08 23:27
06/30/08 23:27
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Hi,
I would like to make a security camera + monitor. I want the player to walk up to the monitor, and when the player presses and hold 'E', the camera has to move from the player to the camera. That is not a problem, I can make it myself, but the monitor, I want to display on the monitor what the camera model sees. How can I make this?
The best games are the games you create yourself.
|
|
|
Re: Security camera.
[Re: NL_3DGS_n00b]
#213844
07/01/08 07:51
07/01/08 07:51
|
mercuryus
Unregistered
|
mercuryus
Unregistered
|
Create a new VIEW* (e.g. remote_camera) and set it's pos and orientation like the security camera model. Then render the view to your monitors (e.g. monitor) texture:
remote_camera.bmap = bmap_for_entity(monitor,0);
PS: play with remote_camera.arc
|
|
|
Re: Security camera.
[Re: ]
#213927
07/01/08 14:24
07/01/08 14:24
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Thank you for your reply. I have this right now: // includes
VIEW* camera2_view =
{
layer = 0;
pos_x = 10;
pos_y = 10;
size_x = 64;
size_y = 48;
arc = 45;
aspect = 1;
ambient = 10;
fog = 10;
genius = NULL;
flags = VISIBLE;
}
action monitor(){ // Attached to the monitor in WED.
camera2_view.bmap = bmap_for_entity(me,8);
}
// player action
// main function
But I don't see anything on the monitor...
The best games are the games you create yourself.
|
|
|
Re: Security camera.
[Re: NL_3DGS_n00b]
#213930
07/01/08 14:29
07/01/08 14:29
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
i believe that security camera example was published in some aum. if you own dsl download aum 1-50 from au resources page...
Ubi bene, ibi Patria.
|
|
|
Re: Security camera.
[Re: NL_3DGS_n00b]
#213943
07/01/08 15:16
07/01/08 15:16
|
mercuryus
Unregistered
|
mercuryus
Unregistered
|
Try to understand what the single functions/definitions are for and how they work!
Just copy and past wont work.
Some hints:
- why "8" in bmap_for_entity(me,8); ? - why fog - why genius? - pos_x, pos_y is definitly wrong - size_x, size_y?
|
|
|
Re: Security camera.
[Re: ]
#213955
07/01/08 15:52
07/01/08 15:52
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
I got it to work, even when I let the camera rotate 80 degrees. I attached monitor to the earth.mdl model. Because my monitor just wont work... My monitor just don't show the camera... I have monitor attached to the monitor model and the earth model, when I remove it from the earth model, It shows the view on my screen (3/5 part of the screen).
The best games are the games you create yourself.
|
|
|
|