Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,655 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sun_light and cie #179520
01/23/08 14:51
01/23/08 14:51
Joined: Feb 2007
Posts: 21
France
C
Crystal Offline OP
Newbie
Crystal  Offline OP
Newbie
C

Joined: Feb 2007
Posts: 21
France
Hello

I'm going to ask a small question.

I've made a sample level. I've loaded the A7 Lite C template.

When I edit my c file, I'm trying to play with some commands like sun_light.

The problem is that I can setup sun_light, sun_color with differents values, when I launch the level there is no change.

the code :
Code:

///////////////////////////////
#define PRAGMA_PATH "%EXE_DIR%\templates\images";
#define PRAGMA_PATH "%EXE_DIR%\templates\models";
#define PRAGMA_PATH "%EXE_DIR%\templates\sounds";
//
#include <acknex.h>
#include <default.c>
#include "mtlFX.c"
///////////////////////////////

function main()

{
video_mode = 7;
sun_angle.pan = 225;
sun_angle.tilt = 45;
var sun_light = 100;
vec_set(sun_color,vector(0,0,255));
level_load("test.WMB");


}


I've tried to put the sun commands before loading the level or after but no change. I've tried to take the sun off with wed before, no change...

What's wrong ?

thx in advance.

Re: sun_light and cie [Re: Crystal] #179521
01/24/08 14:59
01/24/08 14:59
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
I'm not sure but I don't think that works with block levels unless
you have a least one ligt in it.

It works on terrain type levels though I think.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: sun_light and cie [Re: Crystal] #179522
01/24/08 17:46
01/24/08 17:46
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline
Member
TheThinker  Offline
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
var sun_light = 100;

If you realy use the lite-c language, please delete the -> var <-.

It works with blocklevels, if (!) you add some flat textures to this blocks.

If you are using compiled lightmaps the sun - parameters can't change anything, so nidhogg is right.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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