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
0 registered members (), 1,397 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
Page 1 of 2 1 2
camera in panel frame #287775
09/02/09 13:44
09/02/09 13:44
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
im tryin to make a rearview mirror, ive set up a camera so it faces backwards on the car but now how do i display what it sees on a panel?



Last edited by DeD; 09/04/09 22:03.

D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288251
09/04/09 23:49
09/04/09 23:49
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
can you help?


D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288252
09/04/09 23:54
09/04/09 23:54
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
look up 'views' in the manual, exactly what you need. You can use the bmap property to render it to a bmap/panel.

Last edited by DJBMASTER; 09/04/09 23:56.
Re: camera in panel frame [Re: DJBMASTER] #288253
09/04/09 23:55
09/04/09 23:55
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
ok cheers


D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288260
09/05/09 00:52
09/05/09 00:52
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
VIEW* viewDepth =
{ bmap = "#256x256x14"; // create a 256x256 floating point render target
flags = VISIBLE | SHADOW | NOSHADOW;
material = mtlDepth;
}

VIEW* remote_camera = { layer = 1; }

remote_camera.bmap = bmap_for_entity(monitorsprite,0); // render view on monitorsprite
set(remote_camera,VISIBLE); // render this view

is this the peice of script you mean under view?
if so could you explain it to me better. because from what i can tell this render to a sptite.

Last edited by DeD; 09/05/09 00:53.

D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288262
09/05/09 02:02
09/05/09 02:02
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ok try this snippet...
Code:
BMAP* bmap_target = "#256x256x24";

VIEW* view_mirror =
{ 		

  bmap = bmap_target;
  flags = SHOW;
}

PANEL* panel_mirror =
{
	pos_x=0;
	pos_y=0;
	bmap = bmap_target;
	layer = 1;
	flags = SHOW;
}



First we define a blank bitmap that we can render into. Next thing we do is create a view. You can control this the same way as 'camera' placing it where you want with x,y,z and pan,roll,tilt etc. What it points to is rendered into the bmap.

Finally we create a panel to show our bitmap. We does this like we always do...

It's actually quite simple, allow you can only set the view's x/y/z/angle stuff in functions, and not when you are defining it.

Hope this helps...

Last edited by DJBMASTER; 09/05/09 02:02.
Re: camera in panel frame [Re: DJBMASTER] #288318
09/05/09 10:43
09/05/09 10:43
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
yea that helped alot, works great thanks very much.


D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288384
09/05/09 16:56
09/05/09 16:56
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
how do i set the view on the car?
as the manual isan telling me much.

Last edited by DeD; 09/07/09 16:06.

D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288617
09/07/09 16:07
09/07/09 16:07
Joined: Aug 2007
Posts: 157
England
DeD Offline OP
Member
DeD  Offline OP
Member

Joined: Aug 2007
Posts: 157
England
please i still neep help with this


D.E.D

I use lite c
Re: camera in panel frame [Re: DeD] #288620
09/07/09 16:57
09/07/09 16:57
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
view_name.x = VALUE;
view_name.y = VALUE;
view_name.z = VALUE;

just update the .x/y/z values of your view in some sort of loop.

Page 1 of 2 1 2

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