Guest Red Ocktober Posted November 29, 2009 Share Posted November 29, 2009 ... they don't seem to be settable using fw.Renderer.SetWaterColor Vec4(0.1,0.3,0.39,255), Vec4(0.1,0.3,0.29,3) from BlitzMAX... i also can't get the underwatercolor to come across from that set in the editor... the fog colors in the attached pic should be dark blue green (the scene is underwater), but it appears to be gradiating to a light green... inspite of the SetWaterColor function... also... if a waterplane is set in the scene in the editor, it fails to show up using BlitzMAX loadscene()... i have to create it separately... i'm more interested in the water submersion color right now... any suggestion... thx --Mike Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 29, 2009 Share Posted November 29, 2009 OK... disregard the above post... it seems as if i had the values set wrong for the parameters... this works... fw.Renderer.SetWaterColor Vec4(0.1,0.2,0.49,1), Vec4(0.1,0.2,0.49,1) --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 29, 2009 Share Posted November 29, 2009 nevermind... just re-read your post... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 29, 2009 Share Posted November 29, 2009 not parsing the .sbx file (i should be though)... creating a waterplane with Global waterPlane:TEntity=LoadModel("abstract::environment_waterplane.gmf") or so i thought i was until i responded to your question... i commented out the line, and the water still appeared... maybe it's because a waterplane is actually being loaded into the scene from the editor, but the properties aren't being set... looking at this now... --Mike Quote Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 29, 2009 Share Posted November 29, 2009 i was wrong... it seems as if the scene doesn't need to have a waterplane in it... and in BlitzMAX, all you need to do is fw.Renderer.SetWater True then, use these to set the water properties... fw.Renderer.SetWater True fw.Renderer.SetWaterHeight 0.5 fw.Renderer.SetWaterSoftness 2 fw.Renderer.SetWaterAmplitude 88 fw.Renderer.SetWaterWaveSpeed 2 fw.Renderer.SetCaustics True fw.Renderer.ReflectionRenderComponents=ENTITY_RENDERABLE fw.Renderer.SetWaterColor Vec4(0.1,0.2,0.49,1), Vec4(0.1,0.2,0.49,1) if you get a chance would you confirm this for me... thx --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 29, 2009 Share Posted November 29, 2009 well i don't know if the water properties can be set since the lua script is using framewerk methods... I would think you would have to get that from parsing... but if you figure out how to do it straight from the lua script into bmax I would be extremely curious to know how you did it... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted November 29, 2009 Share Posted November 29, 2009 yeah... right now i'm setting the properties in BlitzMAX code... --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted November 29, 2009 Share Posted November 29, 2009 i was wrong... it seems as if the scene doesn't need to have a waterplane in it... and in BlitzMAX, all you need to do is fw.Renderer.SetWater True then, use these to set the water properties... fw.Renderer.SetWater True fw.Renderer.SetWaterHeight 0.5 fw.Renderer.SetWaterSoftness 2 fw.Renderer.SetWaterAmplitude 88 fw.Renderer.SetWaterWaveSpeed 2 fw.Renderer.SetCaustics True fw.Renderer.ReflectionRenderComponents=ENTITY_RENDERABLE fw.Renderer.SetWaterColor Vec4(0.1,0.2,0.49,1), Vec4(0.1,0.2,0.49,1) if you get a chance would you confirm this for me... thx --Mike yep, those look like what I have... working on modifying my testcode right now to incorporate that into my parsing loop along with setting the skybox... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
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.