Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Window for a 3d entity [SOLVED] #317068
03/29/10 05:34
03/29/10 05:34
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
Hi, I was look around and could not find a solution for this. What I need is a window element with a 3d object moving on the inside, how can I do this?

here's a graphic representation of what I want


this is the window element I'm using, the problem is that inside I don't want a panel instead I want to use a 3d object

PANEL* frame_pan =
{
bmap = frame_png;
layer = 20;
flags = OVERLAY | SHOW ;
window (40, 10, 178, 160, map_3d, 0, test);

}

I hope there is a way to do this =/ I can't see the solution but maybe you can, thanks for reading.

Last edited by Theil; 03/29/10 20:37.
Re: Window for a 3d entity [Re: Theil] #317072
03/29/10 07:04
03/29/10 07:04
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
If you have a look at the shadertest code found in your GameStudio projects folder there maybe a tidbit in there that may help you.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: Window for a 3d entity [Re: Nidhogg] #317082
03/29/10 08:10
03/29/10 08:10
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
I'm not sure what to look there, sorry if I'm kind of annoying bur I still don't know what to do, here's more graphic representations of what I want if there's still some doubts, anyway thanks for helping me.

This is how I want it to be



and this is the actual program


the red lines represent the invisible parts made by the window(not sure if I should call this a window)



Again thanks.

Re: Window for a 3d entity [Re: Theil] #317083
03/29/10 08:17
03/29/10 08:17
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
is this a world model or view model?


3333333333
Re: Window for a 3d entity [Re: Quad] #317087
03/29/10 08:32
03/29/10 08:32
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
I think it's a view model, everything is in 2D, there is not any loaded level the definition is this one


ENTITY* map_3d =
{
type = "map.mdl";
layer = 20;
flags2 = TRANSLUCENT | SHOW ;
y = 0;
x = 50;
z = 0;

}

Re: Window for a 3d entity [Re: Theil] #317089
03/29/10 08:50
03/29/10 08:50
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
tried setting it's layer below your panels?


3333333333
Re: Window for a 3d entity [Re: Quad] #317097
03/29/10 09:38
03/29/10 09:38
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
setting its layer below the panels layer should work

if, for whatever reason it has to be a world entity, create a new VIEW and place that inside the panels

Re: Window for a 3d entity [Re: Theil] #317098
03/29/10 09:38
03/29/10 09:38
Joined: May 2006
Posts: 148
Latvia
MTD Offline
Member
MTD  Offline
Member

Joined: May 2006
Posts: 148
Latvia
Maybe you could do something like this:



You could create a panel with the needed resulotion (640x480) and put it on front of the 3d entity

Code:
BMAP* window_pan = "windows_pan.tga";

PANEL* windows_pan =
{
	bmap = window_pan;
	layer = 15;	
	pos_x = 0;
	pos_y = 0;
	flags = D3D | OVERLAY | VISIBLE;
}

ENTITY* 3d_object =
{ 
	type = "sf_alien.mdl"; 
	layer = 10; 
	view = camera; 
	x = 350; 
	y = 134; 
	z = 100; 
	flags = BRIGHT | TRANSLUCENT;
	flags2 = VISIBLE;
}



Re: Window for a 3d entity [Re: MTD] #317145
03/29/10 15:03
03/29/10 15:03
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
The reason why that doesn't work for me is because the panel elements starts to fade in one by one, here's another image, the reason why I put images is because as the old saying goes: A picture is worth a thousand words. Take a look


Thanks.

Re: Window for a 3d entity [Re: Theil] #317146
03/29/10 15:05
03/29/10 15:05
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
You want the 3d object fade in last?

You can still put the layer lower.

Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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