Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sun sprite #53016
08/22/05 08:19
08/22/05 08:19
Joined: Apr 2005
Posts: 14
P
P_G Offline OP
Newbie
P_G  Offline OP
Newbie
P

Joined: Apr 2005
Posts: 14
Hello there,

I'm not sure if this is a bug, so I postet it before
here but without any result.
I defined a sky with sun by the following script:

Code:
 
sky my_tgasky1 {
type = <skydome04.tga>;
flags = dome,visible;
layer = 1;
scale_x = 4;
scale_y = 4;
speed_u = 0;
speed_v = 0;
}

sky my_tgasky2 {
type = <sky2_s.tga>;
flags = dome,visible,transparent,bright;
layer = 2;
scale_x = 4;
scale_y = 4;
speed_u = 2;
speed_v = 2;
}

sky my_tgasun {
type = <sun_yelow.tga>;
flags = visible,flare,bright;
layer = 3;
scale_x = 0.3;
scale_y = 0.3;
speed_u = 0;
speed_v = 0;
X = 90;
Y = 15;
Z = 60;
}



Now the sun sprite is rendered over the level geometry! This happens whenever I define a 'sky' without setting the dome or scene flag.

P_G

Re: sun sprite [Re: P_G] #53017
08/22/05 08:45
08/22/05 08:45
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Did you try to change the my_tgasun.x position?
Try this: Code:
 
my_tgasun.x = (sun_pos.x/3);// x/8; x/1.5;





Last edited by Sorcerer; 08/22/05 08:53.
Re: sun sprite [Re: XNASorcerer] #53018
08/22/05 08:57
08/22/05 08:57
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
Sorcerer is right. your x/y/z possition is too close

sky entitys such as sprites/models thier X/Y/Z location is absolute reltive possition to the view location in the level coordinate system

so if you want it to be clipped by your level geometry, you need to move it outards beyond your level geometry but still inside your skybox ( to be visible)

Re: sun sprite [Re: Grimber] #53019
08/22/05 10:31
08/22/05 10:31
Joined: Apr 2005
Posts: 14
P
P_G Offline OP
Newbie
P_G  Offline OP
Newbie
P

Joined: Apr 2005
Posts: 14
Thanks a lot Sorcerer and Grimber. You are right. The documentation in the manual doesn't tell about this.

Best regards, P_G.

Re: sun sprite [Re: P_G] #53020
08/22/05 10:57
08/22/05 10:57
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It does, but admittedly too indirect. We'll make it more clear in the next version of the manual. Thanks for notifying us.

Re: sun sprite [Re: jcl] #53021
08/24/05 18:40
08/24/05 18:40
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Is there a way to simply turn off the sun sprite permanently? I'm making a night game, and it looks really odd, seeing the sun up there in the sky



Last edited by Bonanza_Jellybean; 08/24/05 18:40.
Re: sun sprite [Re: JetpackMonkey] #53022
08/24/05 22:25
08/24/05 22:25
Joined: May 2005
Posts: 232
Curitiba/Brazil
nunofontoura Offline
Member
nunofontoura  Offline
Member

Joined: May 2005
Posts: 232
Curitiba/Brazil
Did you set up the sun in properties as 0,0,0?

Re: sun sprite [Re: nunofontoura] #53023
08/27/05 15:53
08/27/05 15:53
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline
Serious User
JetpackMonkey  Offline
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
It is at 0,0,0 -- but the elevation was greater than 0. Setting it all to zero did the trick. Amazing, I use gamestudio nearly every day, and there's always something new to learn.

Re: sun sprite [Re: P_G] #53024
08/27/05 21:16
08/27/05 21:16
Joined: Mar 2004
Posts: 202
Germany
zSteam_ Offline
Member
zSteam_  Offline
Member

Joined: Mar 2004
Posts: 202
Germany
hello

jo man look for the flags

not the my_tgasun.x ...


A6 Commercial 6.50.6

Moderated by  HeelX, Spirit 

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