Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / DEMO: Combining trees meshes to form 1 obj and controlling the vertices through use of shader

Author
Message
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 27th Jan 2019 18:54 Edited at: 27th Jan 2019 19:04
I've been working on this for a couple of days.

The project shows how to copy a memblock with indices into a new memblock to create 1 object. It also shows how to add your own attribute to a memblock, so you can pass this to the shader.
This particular shader needs access to the vertex numbers, and that is not available in GLSL 1.0, AFAIK. Through this, we can control 1 "tree" at a time, and the other trees will not be changed.

I think this is how one could make grass move as the character walked though it. I am not sure, though.



vs code


PS



Attachments

Login to view attachments
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Jan 2019 19:09
@ Golelorn Hey mate I like it ! ...thanks for sharing .
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 27th Jan 2019 21:17
awesome.

Thanks for sharing..

Login to post a reply

Server time is: 2024-11-05 18:41:17
Your offset time is: 2024-11-05 18:41:17