mint3d Posted August 11, 2015 Share Posted August 11, 2015 How can I attach a web browser to a world object ? So I don't need a gui to control it I can simply control it from a world object and stuff. Hard to explain what I mean but like how can I make it simply just attach to a world object instead of gui ? Link to comment
Moderators IIYAMA Posted August 11, 2015 Moderators Share Posted August 11, 2015 the createBrowser function returns a dynamic texture, which you can render with a 3D render function near the object. Using: dxDrawMaterialLine3D Link to comment
mint3d Posted August 11, 2015 Author Share Posted August 11, 2015 I mean like this kinda, Link to comment
GTX Posted August 11, 2015 Share Posted August 11, 2015 Shaders. engineApplyShaderToWorldTexture Link to comment
mint3d Posted August 12, 2015 Author Share Posted August 12, 2015 How do I make a texture into a shader, I am like really confused ? Link to comment
mint3d Posted August 12, 2015 Author Share Posted August 12, 2015 function test (shader, texture) local myShader = dxCreateShader( "hello.fx" ) dxSetShaderValue( myShader, "texure0", webBrowser ) engineApplyShaderToWorldTexture( myShader, "drvin_screen" ) end addEventHandler("onClientResourceStart", getRootElement(), test) Would it be something like this ? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now