Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to put a VIEW on top of a panel #317380
03/31/10 06:13
03/31/10 06:13
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
Just wondering if someone could give me a clue as it if I can have a camera VIEW say 100 x 100 on top of a panel thats say 200x200 on top of the level I am playing?
I can create camera VIEW now but it shows up directly on top of the level I am playing not on top of the panel.
Can I do this? I have played with various layer numbers and it doesnt seem to make a difference.
Any trick to putting a camera VIEW on top of a panel? The panel of which exists on top of the level I am playing.
thanks

Last edited by ncc1701d; 03/31/10 06:14.
Re: how to put a VIEW on top of a panel [Re: ncc1701d] #317382
03/31/10 07:37
03/31/10 07:37
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Use another panel with higher layer and render the camera into that.
Code:
camera_view_panel.bmap=camera.bmap;



Only work for A7 comm or above though...

Re: how to put a VIEW on top of a panel [Re: bart_the_13th] #317388
03/31/10 09:03
03/31/10 09:03
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
Hey Bart,
perhaps you could restate your code sample in terms of what I have below with my mini test? Your code sample is little confusing to me since I am new to programming.

///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
#include <atypes.h>


function main()
{
level_load("roller.wmb"); // load the level
}

PANEL* squareone_pan = //panel between gameplay level and the VIEW camera 3rd person
{
layer = 1;
pos_x = 134;
pos_y = 134;
bmap = hpic.tga;
flags = SHOW;
}

PANEL* squaretwo_pan = //another panel?
{
pos_x = 334;
pos_y = 234;
layer = 3;//
bmap = "MPanel.tga";
flags = SHOW;
squaretwo_pan.bmap=camera3rdperson_view.bmap;//?????
}

VIEW* camera3rdperson_view =

{
layer = 3;
pos_x = 97;
pos_y = 97;
size_x = 100;
size_y = 100;
flags = SHOW;

}

Re: how to put a VIEW on top of a panel [Re: ncc1701d] #317395
03/31/10 09:45
03/31/10 09:45
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Try:
Code:
PANEL* squaretwo_pan = //another panel?
{
pos_x = 334;
pos_y = 234;
layer = 3;//
bmap = "MPanel.tga";
flags = SHOW;
}

function main()
{
squaretwo_pan.bmap=camera.bmap;
level_load("roller.wmb"); // load the level
}



I have a habit to put main at the bottom of the program. The rest is like your code

Re: how to put a VIEW on top of a panel [Re: bart_the_13th] #317849
04/03/10 01:43
04/03/10 01:43
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
if I reverse the
squaretwo_pan.bmap=camera.bmap;
to be
camera.bmap=squaretwo_pan.bmap
it then works like you said otherwise it doesnt work. So now the camera is showing in the image squaretwo_pan MPanel.tga
The only thing is though is now the everything else is black except what is seen in the the sqaretwo_pan.
can I have both it show up in the squaretwo pan AND the level I am playing in?
thanks for your help.


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