Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TraderTom, Akow), 1,388 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Security camera. #213805
06/30/08 23:27
06/30/08 23:27
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline 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

M
mercuryus
Unregistered
mercuryus
Unregistered
M



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 Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Thank you for your reply.
I have this right now:

Code:
// 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 Offline
Serious User
croman  Offline
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

M
mercuryus
Unregistered
mercuryus
Unregistered
M



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 Offline OP
Member
NL_3DGS_n00b  Offline 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.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1