Jump to content
This Topic

Water In Lua... OK, How Is It Done?


Recommended Posts

Guest Red Ocktober
Posted

the example in the docs don't work...

 

SetWater(1)

SetWaterHeight(-1.25)

SetWaterColor(Vec4(0.75,0.75,0.75,1.0))

SetReflectionElements(ENTITY_MESH+ENTITY_TERRAIN)

SetWaterAmplitude(32.0)

SetWaterWaveSpeed(2.0)

SetWaterSoftness(1.0)

 

anyone help me out here...

 

thx

 

--Mike

Guest Red Ocktober
Posted
  On 7/28/2011 at 10:05 PM, Metatron said:

Have you tried fw:SetWater(1) ?

 

thx mika... i was using some code based on old examples... your answer clued me into what i was doing wrong...

rewriting the code with the framework in mind, the scene automatically loads the water as it appears in the editor...

 

... and Klepto's day night sequences as well.

 

--Mike

  • 2 months later...
Guest Red Ocktober
Posted

no... that wasn't it D... i got it working...

 

didn't set the fw object in lua until i saw the suggestions above...

that clued me in on where i went astray...

 

--Mike

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...