Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sky + Sun + Move both #267500
05/24/09 14:57
05/24/09 14:57
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Hi there..

I need a code snipple wich includes:

LANGUAGE: lite-C

1.) A Code wich moves skies.
Click to reveal..


1. Sky: sk_blue
This Sky is for the background.

2. Sky: sk_sun, sk_moon
This Sky is complete Transparent. The only visible on it, is a Yellow-White Spot ( the sun ).
Same with the moon.
Both Skies have same layer. ( i need two skies.. because there´re 3 moons.. so i just need to change the moon sky ).

3.-5.Sky Sky: sk_cloud1, sk_cloud2, sk_cloud3]
These Skies are the clouds.


The Skies overlap each other by number.
1 is above 2
2 is above 3
3...etc..


I need:
Sk_sun to move like a real sun.
If var t_h == 7 and t_m == 30, sunrise
If var t_h == 18 and t_m == 30, sunset

The cloud skies have to move with 3 vectors.
vector sk_cl_1, moves the 1. cloud sky,
vector sk_cl_2, moves the 2. cloud sky,
vector sk_cl_3, moves the 3. cloud sky.


I need everything to be controlled with variables.

Here´re the globals:

var t_h
var t_m
var t_s

VECTOR* sk_cl_1 = {x=0; y=0; z=0;}
VECTOR* sk_cl_2 = {x=0; y=0; z=0;}
VECTOR* sk_cl_3 = {x=0; y=0; z=0;}

X = Windspeed X
Y = Windspeed Y
Z = not used


2.) Another code, to move a dynamic light/ or the sun, with the Sun Sky / Moon Sky


Here´re the Sun/Moon Sky Files ( so you can see how they Look )

Sun: MOON SKY
Moon1: MOON SKY

The Moon is huge. But it´s the greatest Moon Sky. The 2 other moons are half and third so largely.

Last edited by Espér; 05/24/09 17:43.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sky + Sun + Move both [Re: Espér] #267518
05/24/09 17:12
05/24/09 17:12
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Look for Mysty Mood at this side:

http://www.loopix-project.com/

Click "Levels" and then "Outdoor".

At least it is a first big step in the right direction.

Last edited by Pappenheimer; 05/24/09 17:13.
Re: Sky + Sun + Move both [Re: Pappenheimer] #267521
05/24/09 17:44
05/24/09 17:44
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
yes.. but wdl.. need lite-c

And, i got error after error on demo startup.. Don´t know if it´s A6 is not working with A7.77.. but i can´t look at all this ingame..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sky + Sun + Move both [Re: Espér] #267528
05/24/09 17:56
05/24/09 17:56
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
hm, thought there is already a version in Lite-C, but couldn't find one. Sorry. It is probably only A6.

Re: Sky + Sun + Move both [Re: Pappenheimer] #267532
05/24/09 18:44
05/24/09 18:44
Joined: Jul 2007
Posts: 616
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 616
Turkey, Izmir
Esper,you could look at the aum 72. (mystymood Lite-c version)

Re: Sky + Sun + Move both [Re: Emre] #267541
05/24/09 19:40
05/24/09 19:40
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
ok.. i´ll take a look on it.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<

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