Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel below VIEW object? #235185
11/06/08 12:50
11/06/08 12:50
Joined: Nov 2008
Posts: 2
G
goxx Offline OP
Guest
goxx  Offline OP
Guest
G

Joined: Nov 2008
Posts: 2
Hi,

since Version 7.04.2 it is possible to draw a PANEL below a VIEW object.

"Panels, texts and view entities with a negative layer value are now drawn below VIEW objects, and can be used to draw into the background of a view when the sky is switched off."

1. What means to switch off the sky?

2. What is wrong with the following code, i can't see the Panel?


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

#include <atypes.h>


BMAP* main_background_bmap = "main_background.tga";
ENTITY* model_mdl;
VIEW* camera_view;

PANEL* main_background_pan =
{
BMAP = main_background_bmap;
layer = -1; // View in front of Panel
}


function main() {


level_load("");
wait(5);


set(model_mdl,VISIBLE);
set(main_background_pan, VISIBLE);


camera_view = view_create(100);
camera_view.arc = 20;
camera_view.x = -235;
camera_view.y = 600;
camera_view.z = 440;
camera_view.pan = -65;
camera_view.tilt = -30;
camera_view.roll = 5;

camera_view.layer = 100;
camera_view.pos_x = 50;
camera_view.pos_y = 40;
camera_view.size_x = 450;
camera_view.size_y = 600;
camera_view.aspect = 1;
camera_view.ambient = 10;
camera_view.flags = VISIBLE;


while (1)
{

wait(1);
}
}


3. How can i format code in this Forum?

thx

goxx

Re: Panel below VIEW object? [Re: goxx] #235189
11/06/08 13:05
11/06/08 13:05
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline
Member
Martek  Offline
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
2. You must insert flags = VISIBLE; into your PANEL* main_background_pan
3. You click on the # and than on
Code:
...text...



3D Gamestudio A7 Extra
Re: Panel below VIEW object? [Re: Martek] #235193
11/06/08 13:16
11/06/08 13:16
Joined: Nov 2008
Posts: 2
G
goxx Offline OP
Guest
goxx  Offline OP
Guest
G

Joined: Nov 2008
Posts: 2
ad 2.

In the main() function i have:
Code:
set(main_background_pan, VISIBLE);


ist that not enough?


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