Ahoj,
netušíte někdo, jak přesně fungují parametry RGBA u datarefu airport_beacon? Co přesně který z nich dělá a jak spolu souvisejí?
V seznamu datarefů, je napsané, že ty parametry jsou "homogenous normal vector". Zkoušela jsem s těmi parametry různě experimentovat a přenastavovat je, ale je to spolu nějak provázané a nemůžu tomu přijít na kloub. Rozsvěcování různě měnilo směr a někdy i fázi, ale jak to přesně funguje se mi nepodařilo zjistit. Poradí někdo?
Dík
Petra
Edit: Našla jsem k tomu toto:
Light Equations for Directional Lights
Some lights use a 4-part vector to specify direction in RGBA. In this case, RGB form a vector (R = X, G = Y, B = Z) and A forms a constant term that is added. Note that the vector formed by RGB does NOT have to be normalized...if it is not, the light may be overly bright or dark.
Some lights use a 3-part vector to identify direction in RGB. In this case, the behavior is the same as a above, except a constant term is picked by X-Plane to guarantee that the light's maximum brightness is 1.0. Example: if you use the light vector (0,2,0) where length = 2, x-plane picks a constant term of -1.0. Thus the light is equivalent to the 4-part light (0,2,0,-1).
When a light uses two components (RG) then the direction is pre-determined (usually 0,0,1). The red component scales the dot product and the green component is added -- in other words, this is the same as having a non-normalized RGB in the above example. Example: the 2-component light (2,-1) has the implicit direction (0,0,1), so it is the same as the 4-component light (0,0,2,-1).
In both cases, the total value is clamped to 0...1, so:
If the scaling parameter is large and the offset is negative, the light will be more tightly focused, and dark (below 0.0) for a while.
If the scaling parameter is small and the offset is positive, the light will be less tightly focused.
If the scaling parameter is really small or 0 and the offset is positive, a light can be omnidirectional, or have some element that is bright all the time.
Ale prostě tomu nerozumím.
airport_beacon
Něco mi nejde nebo se chci jen zeptat.
Přejít na
- Novinky ze světa X-plane
- Pomoc & dotazy
- Letadla a vrtulníky zdarma
- ↳ Vrtulníky
- ↳ Větroně
- ↳ Sportovní a ULL
- ↳ Dopravní
- ↳ Vojenská
- Letadla a vrtulníky placené
- ↳ Vrtulníky
- ↳ Větroně
- ↳ Sportovní a ULL
- ↳ Dopravní
- ↳ Vojenská
- ↳ Můj hangár
- Repainty
- ↳ Vrtulníky
- ↳ Větroně
- ↳ Sportovní a ULL
- ↳ Dopravní
- ↳ Vojenská
- Scenérie
- ↳ Letiště ČR a SK
- ↳ Letiště světa
- ↳ Krajina ČR a SK
- ↳ Krajina světa
- ↳ XHT-Labs Forum
- Ortofoto
- Létání online
- ↳ Multiplayer
- ↳ X-Economy
- ↳ X-Flightserver
- ↳ CVARS
- ↳ VATSIM
- ↳ IVAO
- ↳ NetFlight
- Návody a vývoj
- ↳ Tvorba scenerií
- ↳ Tvorba letadel
- ↳ Tvorba pluginů
- ↳ Nastavení simulátoru
- ↳ Editace OSM
- Nástroje a doplňky
- Galerie
- ↳ Obrázky
- ↳ Videa
- Hardware
- ↳ Jaký mám HW
- ↳ Vyrob si sám
- Ostatní
- xpl.cz
- ↳ Oznámení
- ↳ Pravidla fóra
- ↳ Náměty pro xpl.cz
- ↳ Wiki