Gamestudio Links
Zorro Links
Newest Posts
by 3run. 07/16/20 13:42
Trouble getting data with IB Gateway
by richs. 07/16/20 13:04
Futures with IB
by jbhunter. 07/16/20 01:08
Maximum Value
by AndrewAMD. 07/15/20 12:50
What are you working on?
by NeoDumont. 07/14/20 23:06
Engine window and DPI scaling
by Dooley. 07/14/20 20:27
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (20BN, AndrewAMD, 3run, Nymphodora, kvm, Quad, richs, onoff, Michael_Schwarz), 380 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Estripa, nowater, dasanc, DavidFdez, TraderKevin
18478 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: 11
NicolaB Offline OP
NicolaB  Offline OP

Joined: Mar 2018
Posts: 11
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

VECTOR sstemp;
vec_set(lens_flare1.x,player.x); // put me on the Player Position for test
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
rel_for_screen(my.x,camera); // now the lens flare is at the sun position

// AFTER LEVEL_LOAD i add These lines:

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,277
3run Online
Senior Expert
3run  Online
Senior Expert

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

Best regards.

Looking for free stuff?? Take a look here:

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)

Powered by UBB.threads™ PHP Forum Software 7.7.1