Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 485 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
simple Lens flares for sun #480201
05/26/20 13:52
05/26/20 13:52
Joined: Mar 2018
Posts: 15
N
NicolaB Offline OP
Newbie
NicolaB  Offline OP
Newbie
N

Joined: Mar 2018
Posts: 15
Hello.
Does somehone got an idea how to create lens Flares (in a simple way, without using Panels, but entitiy-sprites). I started something to test, but i can`t see anything :-(

ENTITY* lens_flare1 =
{
layer = 25;
type = "sun1.tga";
flags = PASSABLE | BRIGHT | TRANSLUCENT | NOFOG;// visible on screen from the start
view = camera; // same camera parameters as the default view
}


function place_sun(){
me = lens_flare1;
set(my, PASSABLE |SHOW| BRIGHT );// visible on screen from the start
vec_set(my.x,player.x);

VECTOR sstemp;
wait(10);
while(1){
set(lens_flare1,SHOW);
vec_set(lens_flare1.x,player.x); // put me on the Player Position for test
/*
vec_set(sstemp,player.x);//sun_pos
if (vec_to_screen(sstemp,camera) != NULL) // if sun position visible at screen
{
//lens_flare1.SHOW = ON;
set(my,SHOW);vec_set(my.x,player.x); // defined entity
sstemp.z = 200; // temp contains the sun screen position, give 200 quants depth
vec_set(my.x,sstemp.x);
rel_for_screen(my.x,camera); // now the lens flare is at the sun position
}*/
wait(1);
}
}


// AFTER LEVEL_LOAD i add These lines:
set(camera,SHOW);
place_sun();

But still no Flare. HELP!

Re: simple Lens flares for sun [Re: NicolaB] #480205
05/26/20 15:13
05/26/20 15:13
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hey, take a look at this:
Lens Flare effects

Best regards.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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