Gamestudio Links
Zorro Links
Newest Posts
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 (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 1 of 3 1 2 3
add more 'realism' to night scene with stars #55871
09/22/05 21:10
09/22/05 21:10
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline OP
Serious User
Lion_Ts  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Hi!
For night scene may be usefull this piece, to add some 'blinking' stars:
Code:

...
bind <stars_.tga>;
sky skycube {
type = <sky+6.tga>;
flags = cube,visible;
z=-5; layer = 1;
}
sky stars {
type=<stars.tga>;
flags = dome,visible;
scale_x=0.4;
layer=3;
}
...
starter blinking_stars{
while(1){
ent_morph(stars,"stars_.tga"); //morph to shine stars
waitt(random(15)); //play with this
ent_morph(stars,"stars.tga"); //morph back
waitt(random(9)); //play with this
}
}


provide your stars.tga with 'normal' stars and stars_.tga, where some stars a slightly changed in size/brightness/color.
P.S.
You can use ent_morph with different engine objects, not bmaps only.

Last edited by Lion_Ts; 09/23/05 12:40.
Re: add more 'realism' to night scene with stars [Re: Lion_Ts] #55872
09/22/05 21:29
09/22/05 21:29
Joined: Sep 2004
Posts: 1,214
Austin, Texas
Josh_Arldt Offline
Senior Developer
Josh_Arldt  Offline
Senior Developer

Joined: Sep 2004
Posts: 1,214
Austin, Texas
Cool idea.
Thanks

Re: add more 'realism' to night scene with stars [Re: Josh_Arldt] #55873
09/22/05 21:31
09/22/05 21:31
Joined: May 2005
Posts: 961
Bremen, Germany
tuschcarsten Offline
User
tuschcarsten  Offline
User

Joined: May 2005
Posts: 961
Bremen, Germany
Sounds interesting

Good Idea


Bit Happens!
Re: add more 'realism' to night scene with stars [Re: tuschcarsten] #55874
09/22/05 22:33
09/22/05 22:33
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Thanks for you contribuition.

Re: add more 'realism' to night scene with stars [Re: XNASorcerer] #55875
09/22/05 23:18
09/22/05 23:18

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Thanks LionTs, you're always contributing, that's awesome. I think you need some closing parentheses on those waits though ))

Re: add more 'realism' to night scene with stars [Re: ] #55876
09/23/05 09:20
09/23/05 09:20
Joined: Dec 2003
Posts: 266
Celle
task1 Offline
Member
task1  Offline
Member

Joined: Dec 2003
Posts: 266
Celle
nice! I īll try it!thanks alot


visit my pages: www.xiron.de ICQ: 335016379 Messenger: lalimited@hotmail.com
Re: add more 'realism' to night scene with stars [Re: task1] #55877
09/23/05 12:18
09/23/05 12:18
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline
Expert
EX Citer  Offline
Expert

Joined: May 2002
Posts: 2,541
Berlin
Thatīs a bad code. Itīs not working the same on different pcs. I hope not all your codes are like that you published here.

wait(random(x)); <<< this will cause a flickering on a 3ghz comp minigame, and anything but not blinking on a 60khz cpu.

use sleep

I am afraid that many games here are full of such "not time fixed" code.


:L
Re: add more 'realism' to night scene with stars [Re: EX Citer] #55878
09/23/05 12:39
09/23/05 12:39
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline OP
Serious User
Lion_Ts  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Quote:

Thatīs a bad code. Itīs not working the same on different pcs. I hope not all your codes are like that you published here.
wait(random(x)); <<< this will cause a flickering on a 3ghz comp minigame, and anything but not blinking on a 60khz cpu.
use sleep
I am afraid that many games here are full of such "not time fixed" code.



It's true I forget it. I'm posting from internet-cafe, not from my home, where my 3dgs installed. I looked at my code, I'm using waitt(random).
Sorry for that.
TO WING: Thank you, code changed.

Last edited by Lion_Ts; 09/23/05 12:42.
Re: add more 'realism' to night scene with stars [Re: Lion_Ts] #55879
09/23/05 13:49
09/23/05 13:49
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
well, waitt(x) isnt in the manual anymore so i think its gonna be removed?? i didnt use waitt one time


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: add more 'realism' to night scene with stars [Re: ello] #55880
09/23/05 14:08
09/23/05 14:08
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline OP
Serious User
Lion_Ts  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Yeah, but it worked. So, have I to use sleep instead ?

Page 1 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

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