Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
3D Panel Rotation #425669
07/09/13 22:09
07/09/13 22:09
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Hi everyone. I will like to know if it is possible to rotate a PANEL over the z-axis to give like a 3D depth kind of effect. I know it an can be archive with an image but if the PANEL has digits on it, the digits will still displaying in one line?

Any help is welcome. Thanks in advance.

Re: 3D Panel Rotation [Re: 3dworld] #425725
07/10/13 11:22
07/10/13 11:22
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158
Create a new view entity and render the panel onto this entity (target_map).

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 Offline OP
Member
3dworld  Offline 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:

Code:
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 Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
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: Superku] #425959
07/13/13 23:50
07/13/13 23:50
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Basically what happens is that the panel doesn't render on the entity but instead it renders on the left of the screen. No error message is displayed at all.

The idea behind it is to render a panel inside the entity layer, that way I can rotate the entity over the z axis giving the panel a 3d effect.

Thank you for your fast response Superku.

Re: 3D Panel Rotation [Re: 3dworld] #425961
07/14/13 00:58
07/14/13 00:58
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Make sure that the function gets called.
Check the result from bmap_for_entity (== NULL?).
Try the code on a level entity.

This should isolate the problem.


"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: Superku] #425962
07/14/13 02:47
07/14/13 02:47
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Doesn't your code tell your panel to open on the left side anyway?

Dunno really but if you want one to show over another, you place them at the same place but the panel a bit higher in the screen range maybe or lower even....

Re: 3D Panel Rotation [Re: Nems] #425963
07/14/13 02:56
07/14/13 02:56

M
Malice
Unregistered
Malice
Unregistered
M



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 Offline OP
Member
3dworld  Offline 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

M
Malice
Unregistered
Malice
Unregistered
M



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.
Page 1 of 2 1 2

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