Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Set position of screen entity based on camera.arc #200314
04/03/08 14:25
04/03/08 14:25
Joined: Feb 2006
Posts: 324
Germany
M
maybenew Offline OP
Senior Member
maybenew  Offline OP
Senior Member
M

Joined: Feb 2006
Posts: 324
Germany
hello there,

is there a way to calculate the position (x,y,z) of an screen entity depending on the set camera.arc and video_mode (=resolution)?
it is almost impossible to place screen ents resolution-independent on the screen!

any ideas and suggestions are welcome!

thanks!

Re: Set position of screen entity based on camera. [Re: maybenew] #200353
04/03/08 16:12
04/03/08 16:12
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Make a second view and set the arc to a certain value. The connect all view entities via the client ID to that view and the position, etc. won't change when camera.arc is changing.

Re: Set position of screen entity based on camera. [Re: HeelX] #200395
04/03/08 20:11
04/03/08 20:11
Joined: Feb 2006
Posts: 324
Germany
M
maybenew Offline OP
Senior Member
maybenew  Offline OP
Senior Member
M

Joined: Feb 2006
Posts: 324
Germany
neat trick! will try it!
will this solve the problem of the different resolutions, too?

Last edited by maybenew; 04/03/08 21:24.
Re: Set position of screen entity based on camera. [Re: maybenew] #200400
04/03/08 21:08
04/03/08 21:08
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Yes, if you go the view entity way. But you can do that with panels, too, of course.

Re: Set position of screen entity based on camera. [Re: HeelX] #200404
04/03/08 21:24
04/03/08 21:24
Joined: Feb 2006
Posts: 324
Germany
M
maybenew Offline OP
Senior Member
maybenew  Offline OP
Senior Member
M

Joined: Feb 2006
Posts: 324
Germany
sorry, meant REsolutions!
will take a look for myself!
thanks a lot, heelX

Re: Set position of screen entity based on camera. [Re: maybenew] #200437
04/04/08 02:36
04/04/08 02:36
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That's really a nice trick, HeelX. Thanks for sharing!


Always learn from history, to be sure you make the same mistakes again...
Re: Set position of screen entity based on camera. [Re: Uhrwerk] #201586
04/09/08 22:45
04/09/08 22:45
Joined: Oct 2002
Posts: 806
Zapan@work Offline
User
Zapan@work  Offline
User

Joined: Oct 2002
Posts: 806
Keep in mind that view entites render "really" slow...


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