This article's documentation is for anything that uses the Source engine. Click here for more information.

Water lod control: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(its position in the world irrelevant so it's logical entity)
 
(42 intermediate revisions by 21 users not shown)
Line 1: Line 1:
[http://kristmasu.xhost.ro/general-motors/ general motors] [http://radicaeamerr.xhost.ro/content/las-vegas/ las vegas casinos] [http://copperwise.byethost13.com/html/finance.html finance] [http://radicaeamerr.xhost.ro/content/realty-sedona/ realty sedona] [http://uncloudedwindow.sapte.ro/data/cum-sluts.html cum sluts] [http://urockworld.marte.ro/free-pussy.html free pussy] [http://antimil.uv.ro/small/what-is.html what is bontril] [http://cykeout.byethost13.com/resources/mature-single.html mature single travel] [http://shadowfallen.totalh.com/data/lyrics-one/ lyrics one piece at a time] [http://oktagudent.totalh.com/view/jason-shane/ jason shane scott] [http://urockworld.marte.ro/free-porn.html free porn games] [http://copperwise.byethost13.com/html/plane-ticket.html plane ticket] [http://kinkyjedi.byethost13.com/blog/mobile-home.html mobile home refinancing] [http://kinkyjedi.byethost13.com/blog/fundraising-programs.html fundraising programs] [http://uncloudedwindow.sapte.ro/data/girl-photo.html girl photo] [http://robotqueen.uv.ro/library/acyclovir-medication/ acyclovir medication] [http://cykeout.byethost13.com/resources/mach-mp.html mach mp3] [http://antimil.uv.ro/small/nc-mls.html nc mls listings] [http://kasumikawaii.byethost13.com/articles/is-my/ is my domain name available to register] [http://fnor.22web.net/text/rom-snes/ rom snes download] [http://robotqueen.uv.ro/library/tax-forms/ tax forms] [http://jazzyjoe.byethost13.com/content/types-of.html types of experiments] [http://fnor.22web.net/text/most-popular/ most popular name in 2005] [http://arguas.pluto.ro/lib/computer-manual.html computer manual] [http://chuchundramc.marte.ro/view/chlorpromazine.html chlorpromazine] [http://bervera.talk4fun.net/description/second-life/ second life last names] [http://uncloudedwindow.sapte.ro/data/www-planets.html www planets com] [http://bervera.talk4fun.net/description/love-is/ love is real it is not just] [http://jazzyjoe.byethost13.com/content/aftermarket-saturn.html aftermarket saturn] [http://robotqueen.uv.ro/library/discount-valium/ discount valium] [http://radicaldreamerr.byethost13.com/new/soccer-buddy.html soccer buddy icons] [http://uncloudedwindow.sapte.ro/data/hairy-porn.html hairy porn] [http://ariavaswen.22web.net/description/acting-agency/ acting agency uk] [http://ariavaswen.22web.net/description/saving-money/ saving money for college student] [http://shadowfallen.totalh.com/data/when-i/ when i get older beatles] [http://kristmasu.xhost.ro/barcode-software/ barcode software] [http://oktagudent.totalh.com/view/engine-google/ engine google india optimization search] [http://cykeout.byethost13.com/resources/adjective-and.html adjective and adverb] [http://theeblog.22web.net/data/we-but/ we but half express ourselves and are ashamed] [http://radicaldreamerr.byethost13.com/new/line-in.html line in recorders] [http://kristmasu.xhost.ro/bahamas-cruise/ bahamas cruise] [http://oktagudent.totalh.com/view/outdoor-classroom/ outdoor classroom design] [http://jazzyjoe.byethost13.com/content/info-tornado.html info tornado] [http://kristmasu.xhost.ro/franchise/ franchise] [http://astw56.uv.ro/styles/cherub/ cherub] [http://jazzyjoe.byethost13.com/content/americas-freedom.html americas freedom center] [http://jazzyjoe.byethost13.com/content/venice-hotels.html venice hotels discounted] [http://copperwise.byethost13.com/html/omega-watches.html omega watches] [http://fnor.22web.net/text/wayne-morgan/ wayne morgan long beach] [http://fnor.22web.net/text/i-laugh/ i laugh at everything] [http://astw56.uv.ro/styles/harry-potter/ harry potter] [http://astw56.uv.ro/styles/wedding-anniversary/ wedding anniversary] [http://kasumikawaii.byethost13.com/articles/impact-prospects/ impact prospects] [http://chuchundramc.marte.ro/view/cake-recipe.html cake recipe] [http://cykeout.byethost13.com/resources/pictures-of.html pictures of the band fall out boy] [http://astw56.uv.ro/styles/samsung-ring/ samsung ring tones] [http://arguas.pluto.ro/lib/stripper.html stripper] [http://copperwise.byethost13.com/html/cheap-motels.html cheap motels] [http://kasumikawaii.byethost13.com/articles/sydney-opera/ sydney opera house events calendar] [http://kinkyjedi.byethost13.com/blog/education-financing.html education financing] [http://kristmasu.xhost.ro/dell-laptop/ dell laptop] [http://arguas.pluto.ro/lib/online-yellow.html online yellow page] [http://thedrea.uv.ro/text/best-cellular/ best cellular phone] [http://kinkyjedi.uv.ro/web/miata-parts/ miata parts] [http://astw56.uv.ro/styles/merida/ merida] [http://kasumikawaii.byethost13.com/articles/employment-applicant/ employment applicant] [http://copperwise.byethost13.com/html/continential-airlines.html continential airlines] [http://theeblog.22web.net/data/swing-when/ swing when your winning] [http://chuchundramc.marte.ro/view/shoe-dangling.html shoe dangling] [http://jazzyjoe.byethost13.com/content/time-in.html time in lahore] [http://radicaldreamerr.byethost13.com/new/rise-of.html rise of nations expansion review] [http://bervera.talk4fun.net/description/north-western/ north western train timetables] [http://astw56.uv.ro/styles/used-rolex/ used rolex watch] [http://fnor.22web.net/text/partitioning-strategies/ partitioning strategies] [http://fnor.22web.net/text/state-of/ state of connecticut job] [http://astw56.uv.ro/styles/tylenol/ tylenol 3] [http://kristmasu.xhost.ro/people-searches/ people searches] [http://copperwise.byethost13.com/html/nascar-tickets.html nascar tickets] [http://theeblog.22web.net/data/ns-rental/ ns rental vacation] [http://jazzyjoe.byethost13.com/content/st-joseph.html st joseph hospital oakland] [http://copperwise.byethost13.com/html/anorexia-nervosa.html anorexia nervosa] [http://robotqueen.uv.ro/library/nelly/ nelly] [http://oktagudent.totalh.com/view/lecker/ lecker] [http://radicaeamerr.xhost.ro/content/new-car/ new car dealer cost] [http://oktagudent.totalh.com/view/lyrics-for/ lyrics for i want to know by joe] [http://oktagudent.totalh.com/view/kansas-livestock/ kansas livestock assoc] [http://aussiejesus.uv.ro/web/mp-audio/ mp3 audio book] [http://shadowfallen.totalh.com/data/woman-girl/ woman girl love association] [http://radicaldreamerr.byethost13.com/new/sma-engines.html sma engines] [http://kinkyjedi.byethost13.com/blog/order-pharmacy.html order pharmacy online] [http://copperwise.byethost13.com/html/pool-cleaners.html pool cleaners] [http://fnor.22web.net/text/perth-dating/ perth dating sites] [http://arguas.pluto.ro/lib/adult-games.html adult games] [http://bervera.talk4fun.net/description/texas-federal/ texas federal courts] [http://aussiejesus.uv.ro/web/download-free/ download free ringtone] [http://fnor.22web.net/text/romanticism-history/ romanticism history primary documents] [http://cykeout.byethost13.com/resources/map-of.html map of long island ny] [http://oktagudent.totalh.com/view/us-naval/ us naval academy information] [http://jazzyjoe.byethost13.com/content/libertyville-sports.html libertyville sports] [http://jazzyjoe.byethost13.com/content/po-go.html po go games]
{{LanguageBar}}__NOTOC__
{{wrongtitle|title=water_lod_control}}
{{CD|CWaterLODControl|file1=WaterLODControl.cpp}}
==Entity Description==
[[Image:Waterlodcontrol.png|left]]An entity used to control the [[LOD]] behavior of any water in the map. If your map has water, this entity is required.{{clr}}


==Keyvalues==
{{this is a|logical entity|name=water_lod_control|sprite=Waterlodcontrol.png}} It is used to control the [[LOD]] behavior of any water in the map. If your map has water, this entity is required. [[VBSP]] will add one in if it's missing.
* {{kv targetname}}
{{Map properties note}}
* '''cheapwaterstartdistance'''
{{CD|C_WaterLODControl|base=C_BaseEntity|client=1|file1=1}}
: <float> This is the distance from the camera that water will start transitioning to cheap water, in inches.
 
* '''cheapwaterenddistance'''
== Keyvalues ==
: <float> This is the distance from the camera that water will finish transitioning to cheap water, in inches.
{{KV|Start Transition to Cheap Water|intn=cheapwaterstartdistance|float|This is the distance from the camera that water will start transitioning to cheap water, in hammer units.}}
==Inputs==
{{KV|End Transition to Cheap Water|intn=cheapwaterenddistance|float|This is the distance from the camera that water will finish transitioning to cheap water, in hammer units.}}
* {{i targetname}}
 
* '''SetCheapWaterStartDistance <float>'''
== Inputs ==
: Set the distance that water starts transitioning to cheap water.
{{I|SetCheapWaterStartDistance|Set the distance that water starts transitioning to cheap water.|param=float}}
* '''SetCheapWaterEndDistance <float>'''
{{I|SetCheapWaterEndDistance|Set the distance that water finishes transitioning to cheap water.|param=float}}
: Set the distance that water finishes transitioning to cheap water.
 
==Outputs==
 
* {{o targetname}}
{{expand|title={{elaborate}}|
==See Also==
== Caveats ==
{{bug|The water_lod_controller was disabled late in development. Any water with reflections enabled are always rendered expensively or with bForceExpensive always set to true.}}
 
To re-enable you will need to modify code in <code>CViewRender::DetermineWaterRenderInfo(...)</code> on line 2228, replace it with:
 
<source lang=cpp>if( !r_WaterDrawReflection.GetBool() )</source>
 
Also replace line 2256 with:
<source lang=cpp>if ( (fogVolumeInfo.m_flDistanceToWater >= m_flCheapWaterEndDistance) || bForceCheap )</source>
 
You may also change line 2212 with brute force code. All the materials in this example were returning bForceExpensive true regardless of settings:
<source lang=cpp>bForceExpensive = false;</source>
}}
 
== See also ==
* [[Adding Water]]
* [[Adding Water]]
[[Category:Entities]]
 
[[Category:Water]]

Latest revision as of 08:13, 29 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CWaterLODControl
CBaseEntity
C++ WaterLODControl.cpp
Waterlodcontrol.png

water_lod_control is a logical entity available in all Source Source games. It is used to control the LOD behavior of any water in the map. If your map has water, this entity is required. VBSP will add one in if it's missing.

Note.pngNote:The properties of this entity apply to the whole map. Multiple instances of this entity within a map may cause errors.
C++ Class hierarchy (client)
C_WaterLODControl
C_BaseEntity
C++ C_WaterLODControl.cpp

Keyvalues

Start Transition to Cheap Water (cheapwaterstartdistance) <float>
This is the distance from the camera that water will start transitioning to cheap water, in hammer units.
End Transition to Cheap Water (cheapwaterenddistance) <float>
This is the distance from the camera that water will finish transitioning to cheap water, in hammer units.

Inputs

SetCheapWaterStartDistance <floatRedirectInput/float>
Set the distance that water starts transitioning to cheap water.
SetCheapWaterEndDistance <floatRedirectInput/float>
Set the distance that water finishes transitioning to cheap water.


[Elaborate?]

Caveats

Icon-Bug.pngBug:The water_lod_controller was disabled late in development. Any water with reflections enabled are always rendered expensively or with bForceExpensive always set to true.  [todo tested in ?]

To re-enable you will need to modify code in CViewRender::DetermineWaterRenderInfo(...) on line 2228, replace it with:

if( !r_WaterDrawReflection.GetBool() )

Also replace line 2256 with:

if ( (fogVolumeInfo.m_flDistanceToWater >= m_flCheapWaterEndDistance) || bForceCheap )

You may also change line 2212 with brute force code. All the materials in this example were returning bForceExpensive true regardless of settings:

bForceExpensive = false;

See also