matthewharwood Posted April 25, 2016 Share Posted April 25, 2016 How would I project a standard 16:9 video onto multiple Babylon mesh (live code) (sample meshs in pink bg, teal lines, gray sphere image below); as if, the camera was a projector and the mesh was an object in a space ? The results I'm looking for is that the video would serve more as a gradient of colors to the mesh or on the otherhand a distortion to the video itself. Hope this makes sense, I've attached an image from cinema 4d on the concept I'm taking about. If you know how to answer this question: http://stackoverflow.com/questions/36852783/how-to-simulate-projection-camera-mapping-of-video-on-to-a-multiple-babylonjs EXTRA POINTS! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 26, 2016 Share Posted April 26, 2016 Hey Something like this? http://www.babylonjs-playground.com/#203BJM#2 Quote Link to comment Share on other sites More sharing options...
matthewharwood Posted April 26, 2016 Author Share Posted April 26, 2016 @Deltakosh Thats exactly what I was looking for with a few exceptions, Sample code: http://www.babylonjs-playground.com/#203BJM#5 1. Is it possible to apply it to the BABYLON.Mesh.CreateLines()? if not, any ideas on how you would approach creating a crazy mesh like I have below with a different type of geometry? for (var u = 0; u <= 2*Math.PI; u += incrementer){ for( var v = 0; v <= 2*Math.PI; v += incrementer){ points.push(new BABYLON.Vector3( Math.sin(u)*10*(Math.cos(v)), Math.sin(v)+Math.cos(u)*10*(Math.cos(v)), Math.cos(v)+10*(Math.sin(v))*Math.sin(u)) ) } } var shape = BABYLON.Mesh.CreateLines('Shape', points, scene, true); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 26, 2016 Share Posted April 26, 2016 Unfortunately Lines only use a single color But what about this:http://www.babylonjs-playground.com/#203BJM#6 eboo 1 Quote Link to comment Share on other sites More sharing options...
matthewharwood Posted April 27, 2016 Author Share Posted April 27, 2016 @Deltakosh You're amazing man... Check this out. http://www.babylonjs-playground.com/#RF9W9#294 Vousk-prod. 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 27, 2016 Share Posted April 27, 2016 beautiful 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.