I need a star thats a lens flare source without the flair. (Please Help) -1 reply

  • 1
  • 2

Please wait...

Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#1 9 years ago

Basically I was hoping someone could help me make a star. I wanted a to have some stars with lens flares and some without but all to have the lensflare source shine to them. I figured out how to get rid of the flair by erasing "IslensFairSource" in the ODF but then you can't see the star from a distance. I went into the "Lensflair" ODF and maid all the flair circles Black instead of white without changing the two circles that are right on the star giving the star the PERFECT effect I wanted making it a lens flare source that shines across the entire map without the flash and with out the lens flair but that changes the flair for all the stars in the game and I'd rather not do that. Basically I need an alternate light effect and not sure how to create it to where the ODF will see it and use it.

The effect I am looking for can be found in the Ventarus system I made found at the link below.

Spoiler: Show
100036_5.jpg

Notice in the the picture with the "Akira" class you have two stars without Lens flares. One above the ship closer to the Akira and one below the ship further away. That is the effect I am looking for. The star twinkle with no Flare. Can anyone please help.

Thank you Ayesu




Guest

I didn't make it!

0 XP

 
#2 9 years ago

Maybe Tjoz can help you, I don't know how you would accomplish it, because my guess is that the "Lensflair" ODF is called on by the engine and not by the star's odf. Unless there could be found a way to define the lensflair odf to use that is based on the stars odf.

Tjoz has changed how the lensflares work for the next AM I think, so maybe something can be done.




Guest

I didn't make it!

0 XP

 
#3 9 years ago

Lens flair Aftermath has both versions. I got ones that do flair and ones that dont. My ones that do flair up their changes arent in odf files.

For the no lens flair suns, you need the isLensFlareSource in it still just change it to 0 so it will look like this:

isLensFlareSource = 0




Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#4 9 years ago

Thank you Tjoz but thats not quite what I'm looking for. That gets rid of everything. I still need to see the "lensflare soarce without the long many flares and the flash of light that happens as well. any advice.

Is there a way to copy the light effect and make it available to the ODF




Guest

I didn't make it!

0 XP

 
#5 9 years ago

Yes you can override Legacy in that regard. Turn your lensflare thing on (give it a 1), then you could do a couple things:

1. Use of #include code (eg #include "appropriate_odf_file_here.odf"). I have found when you need to give something a specific set of code, use the #include function. It has an overriding effect on the odf file.

What you could do is create a second lens flair odf file that is set-up how you need it then use #include code in the sun odf file. #include code can negate a specific setting that may appear in associated files that sit within the same family tree of an odf file.

As Legacy reads code from top to bottom, use of #include might be best placed directly after the isLensFlareSource code. That in theory will tell Legacy to do the lensflare, but use this particular file.

2. Input the code directly into the sun odf file.

3. There is a third method but I wouldnt recommend it as Legacy would probably crash. Make a copy of the lens flair file and set it up how you need it. Now in isLensFlareSource, instead of isLensFlareSource = 0 use this instead:

isLensFlareSource = "new_lensflare_settings_odf_file_here" (do not put.odf in. Just the file name)

In theory it should play the specific settings for the lens flare but I havent tested it out and have a good feeling that would crash Legacy. Either way it gives you a few options.

-----------

One thing to remember is the odf is usually the final bit of a file structure. There is a high degree of manipulation due to the odf's being the final source of game file structure.

Overriding Legacy is not guaranteed to work 100% of the time as Legacy does have a mind of its own.




Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#6 9 years ago

Thanks a lot I will try some of this this weekend. i will post an update on my progress

Thanks Ayesu




Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#7 9 years ago

Tjoz Thank you for the suggestions, unfortunately none of them worked. Number 1 & 2 had no effect and no worries number 3 didn't crash the game. nothing happened happened with all of these and in an effort to understand the lens flare I even tried to add it to a ship and couldn't get it done.

Below I put all the codes that I used to try to get this star made, including how I tried to add a new lighting effect and the Odf code for the lensflare that works.

About the lensflare ODF that works. It changes all the lenesflares for all the stars. Basicaly what I am trying to create is a twinkle not a blinding light and big circles all the time.

So here go's......

I tired adding // generates a lens flare isDarkFlareSource = 1

AND

// generates a dark flare isDarkFlareSource = 1

TO THE SUN ODF. WHEN THAT DIDN'T WORK i TRIED ADDING THE DEFINITION OF

(DarkFlare xDarkFlare 0 0 32 32 )

TO THE "lights.spr" FILE. AS SEEN BELOW WITH THE LOGIC THAT THE "LENSFLARE" IS A LIGHT EFFECT OR "SPRITE"

THIS DID NOT WORK EITHER.

======================================================================== top of "lights.spr" file | | | | | | V

sprite_table

##### Ship light sprite effects #####

## SPRITE DEFINITIONS ##

# @reference=texture size in pixels from which the u,v,w, and h values # were measured. This value will effect all subsequent textures until # a different value is specified.

# Name File U V W H

@reference=128 @tmaterial=additive warp_sprite Mwarp 0 0 128 128

# Repair Effect @reference=128 @tmaterial=additive repair_sprite Mwarp 0 0 128 128

@reference=64 @tmaterial=additive

Ballflare xlite1 0 0 32 32 SmallStar xlite1 32 0 32 32 RedMulti xlite1 0 32 32 32 AmberMulti xlite1 32 32 32 32 Spot xlite2 0 0 64 64 Borglight1 xborglight 0 0 32 32 Borglight2 xborglight 32 0 32 32 Borglight3 xborglight 0 32 32 32

DarkFlare xDarkFlare 0 0 32 32 <===LINE I ADDED (DID NOT WORK)

flare xflare 0 0 32 32 Borglight4 xborglight 32 32 32 32 softglow xglow_soft 0 0 64 64

####dmoonglow Mdmoonglo4 0 0 64 64

------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------------------------------------------------------------- Now..

This is what the Lens_flare.odf I use to make the star look EXACTLY as I want it too. Unfortunately this changes all the stars in the game. Not sure how to proceed. I need to create a new light effect and have the Star recognize it. does anyone have any idea's?

Lens_flare.odf ------

// the blinding flash when the flare is revealed flashSprite = "x_light_star" flashSpeed = .75 flashSize = 3.0 flashBrightness = 0.0 flashTriggerSpeed = 0.3

// the speed in which the flare fades out when it is obstructed from view flareFadeSpeed = 2.0

// the minimum percentage that the source object must be visible for the lens flare to display flareMinVisibility = 0.9

// large orange spot sprite0 = "x_sunflare_03" size0 = 1.5 distance0 = -0.20 color0 = 0. 0. 0.

// faint white flare, inner ring sprite1 = "x_sunflare_03" size1 = 0.4 distance1 = -0.30 color1 = 0. 0. 0.

// light rays sprite2 = "x_sunflare_star" size2 = 0.5 distance2 = 0.0 color2 = 0.7 0.7 0.7 resize2 = 1

// flare source sprite3 = "x_sunflare_01" size3 = 0.5 distance3 = 0.0 color3 = 0.7 0.7 0.7 resize3 = 1

// horizontal blue streak sprite4 = "x_sunflare_streak_horz" width4 = 1.35 height4 = 0.2 distance4 = 0.0 color4 = 0.2 0.2 0.35 resize4 = 1

// vertical white streak sprite5 = "x_sunflare_streak_vert" width5 = 0.2 height5 = 0.8 distance5 = 0.0 color5 = 0.2 0.2 0.2 resize5 = 1 Thank you All for reading this.

Thanks so much

Ayesu




gdata

Who needs a user title?

50 XP

10th January 2007

0 Uploads

1,588 Posts

0 Threads

#8 9 years ago

and you tried duplicating it, right?




Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#9 9 years ago

Yes I did and it didn't work.




Ayesu

I don't spend enough time here

50 XP

12th January 2008

0 Uploads

29 Posts

0 Threads

#10 9 years ago

Unless I did it wrong. I gave the flare a different name and I also tried the same name. no luck.




  • 1
  • 2