3 registered members (AndrewAMD, SBGuy, Petra),
801
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 3D Panel Rotation
[Re: Feindbild]
#425957
07/13/13 23:26
07/13/13 23:26
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
Thank you for your help. Sorry it took me so long to replay I've been really busy. OK... the idea is create a model layer and attach the panel to it? I've try the following code but it doesn't work:
PANEL* health_pan =
{
layer = 21;
pos_x = 0;
pos_y = 0;
bmap = "panel.tga";
digits(75, 65, "%.f", arial_font, 1, players_health);
flags = SHOW;
}
ENTITY* panel_model =
{
x = 100; // tweak these values until you set the desired position and size of the circular view
y = -40;
z = 20;
type = "plate.mdl"; // use your own model name here
layer = 20;
flags2 = SHOW; // show the model
}
function show_plate(){
health_pan.target_map = bmap_for_entity(panel_model,0);
}
Any ideas welcome. Thanks in advance.
|
|
|
Re: 3D Panel Rotation
[Re: 3dworld]
#425958
07/13/13 23:32
07/13/13 23:32
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
I've try the following code but it doesn't work Explain in detail why it doesn't work and maybe list the error messages.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: 3D Panel Rotation
[Re: Nems]
#425963
07/14/13 02:56
07/14/13 02:56
|
Malice
Unregistered
|
Malice
Unregistered
|
Isn't this as simple as removing the SHOW flag from the panel. It doesn't need to be SHOW to be rendered to a entity right? That least that is how it was when I did it with a BMAP*
|
|
|
Re: 3D Panel Rotation
[Re: ]
#426256
07/18/13 18:22
07/18/13 18:22
|
Joined: Sep 2007
Posts: 173 USA, Florida
3dworld
OP
Member
|
OP
Member
Joined: Sep 2007
Posts: 173
USA, Florida
|
Thank you guys, is working now. The only problem I facing is that I can change the flag SHOW once is rendered on the panel. Any ideas?
No matter what people tell you, words and ideas can change the world.
|
|
|
Re: 3D Panel Rotation
[Re: 3dworld]
#426262
07/18/13 18:56
07/18/13 18:56
|
Malice
Unregistered
|
Malice
Unregistered
|
in a function panel_name->flags &=~SHOW; // off panel_name->flags |= SHOW // on
I might not understand what you are asking...
Do you mean it has to render first before you hide the panel? If so set the panel layer lower then the 3d panel and put them in the same place, then the 3d panel covers the 2d panel till it is hidden.
Could you put the 2d panel on layer =1 and a full screen black panel on layer =2 and the 3d panel on layer=3 ?
Last edited by Malice; 07/18/13 19:03.
|
|
|
|