Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (fairtrader, AndrewAMD, 3run), 576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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