Jump to content

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


Guest Red Ocktober
 Share

Recommended Posts

Guest Red Ocktober

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

Link to comment
Share on other sites

Guest Red Ocktober

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

Link to comment
Share on other sites

  • 2 months later...
Guest Red Ocktober

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...