Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, 1 invisible), 1,043 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[SOLVED] Show model over panel #339990
08/30/10 17:17
08/30/10 17:17
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
I made a panel, it covers the whole screen. I put a model (an entity) onto the screen, and i can't see that.
I thought the problem is the layer setting.
I set the panel's layer to 1 in definition, and the entity's layer to 2 with layer_sort.
I can't see the entity. What did i do wrong?

Last edited by Aku_Aku; 08/31/10 19:59.
Re: Show model over panel [Re: Aku_Aku] #339991
08/30/10 17:20
08/30/10 17:20
Joined: Nov 2009
Posts: 89
Germany, NRW
T
TrackingKeks Offline
Junior Member
TrackingKeks  Offline
Junior Member
T

Joined: Nov 2009
Posts: 89
Germany, NRW
I think you have to use ent_createlayer to make the model laying about the panel.

Last edited by TrackingKeks; 08/30/10 17:21.

Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)
Re: Show model over panel [Re: TrackingKeks] #339995
08/30/10 17:45
08/30/10 17:45
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
There is no change.

Re: Show model over panel [Re: Aku_Aku] #339999
08/30/10 18:28
08/30/10 18:28
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
can you send your entity definition?
i think its something with flags/flags2


Visit my site: www.masterq32.de
Re: Show model over panel [Re: MasterQ32] #340008
08/30/10 20:25
08/30/10 20:25
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
hires=ent_createlayer(tmpstr1,0,10);

Re: Show model over panel [Re: Aku_Aku] #340009
08/30/10 20:31
08/30/10 20:31
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
do you see the model without the panel?


Visit my site: www.masterq32.de
Re: Show model over panel [Re: MasterQ32] #340017
08/30/10 21:20
08/30/10 21:20
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Create a new view that renders at the panel, and set this entity to this view.

Re: Show model over panel [Re: MasterQ32] #340023
08/30/10 22:22
08/30/10 22:22
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
Without panel i can see the model.

Re: Show model over panel [Re: Widi] #340024
08/30/10 22:22
08/30/10 22:22
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
Why?

Re: Show model over panel [Re: Aku_Aku] #340044
08/31/10 00:52
08/31/10 00:52
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
There you go!

Code:
#include <default.c>

function main()
{
	level_load("");

	PANEL* p1 = pan_create(NULL,1);
	pan_setdigits(p1,0,30,30,"PANEL 1",font_create("Arial#20"),0,0);
	
	pan_setwindow(p1,0,20,20,330,440, bmap_fill(bmap_createblack(64,64,32),COLOR_GREY,100), 0, 0);
	set(p1,SHOW);
	
	PANEL* p2 = pan_create(NULL,3);
	pan_setdigits(p2,0,420,30,"PANEL 2",font_create("Arial#20"),0,0);
	
	pan_setwindow(p2,0,400,20,300,440, bmap_fill(bmap_createblack(64,64,32),COLOR_GREY,100), 0, 0);
	set(p2,SHOW);
	
	you = ent_createlayer(SPHERE_MDL,0,2);
	you.x = 50;
	
	you = ent_createlayer(CUBE_MDL,0,4);
	you.x = 100;
	you.y = -30;
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
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