Pryme8 Posted March 23, 2018 Share Posted March 23, 2018 Is it possible to sample a texture on the VX side? https://www.babylonjs-playground.com/#3D3RPL#14 When I try I drop an error. Some sources say yes you can, others say no... so which is it? http://www.opengl.org/wiki/Vertex_Texture_Fetch Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 24, 2018 Share Posted March 24, 2018 https://www.babylonjs-playground.com/#3D3RPL#19 change texture2d => texture in vertex shader for webgl2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 24, 2018 Author Share Posted March 24, 2018 https://www.babylonjs-playground.com/#3D3RPL#23 Got it thanks waverider 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted March 24, 2018 Share Posted March 24, 2018 This is sooo cool!!!! just a little bit of tweaking https://www.babylonjs-playground.com/#3D3RPL#26 better! https://www.babylonjs-playground.com/#3D3RPL#28 I like that it's well optimized...nicee!!!!!! Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 24, 2018 Author Share Posted March 24, 2018 End goal this will be completely dynamic with actors able to make it press them over and the using the rtt simulation method over time they will stand back up. I am also planing growth maps and species here as well too. Gonna try to push this to the limit. Quote Link to comment Share on other sites More sharing options...
waverider Posted March 24, 2018 Share Posted March 24, 2018 I can't wait to see that. it'll be so cool and very realistic Quote Link to comment Share on other sites More sharing options...
waverider Posted March 24, 2018 Share Posted March 24, 2018 a way i can get by this if i'm using a first person camera is getting the direction the camera is facing, reflect it on the x and z vertices of the grass. that should make a heck of a bend-press simulation Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 24, 2018 Author Share Posted March 24, 2018 This is my inspiration. I need to make a few changes to the structure here and include some more data on the VBO, but I am getting the parts in place. Quote 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.