Raghavender Mylagary

  • Content count

  • Joined

  • Last visited

About Raghavender Mylagary

  • Rank
    Advanced Member
  • Birthday 04/28/1994

Contact Methods

  • Twitter
  • Skype

Profile Information

  • Gender
  • Location
    Hattiesburg, MS

Recent Profile Visitors

405 profile views
  1. Hi, Is there any way to read 3d coordinates (x,y,z) in a scene? I have tried using the following code: //When pointer down event is raised scene.onPointerDown = function (evt, pickResult) { // if the click hits the ground object, we change the impact position if (pickResult.hit) { x = pickResult.pickedPoint.x; y = pickResult.pickedPoint.y; z = pickResult.pickedPoint.z; } }; But I could not read the value of z.
  2. Hi @Deltakosh @Wingnut, Is it possible to load MRI data as a 3D model using BJS. Suppose if I have MRI data of Brain as a sequence of images, can I place all those sequences together and create a model. Also, i want to select individual slices separately after the model is created. Thanks, -Raghavender Mylagary
  3. @Deltakosh If I load the URL http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm in a new browser the stream is working. Is there any way to overcome permission denied error?
  4. @Deltakosh I tried to set correct url for VideoTexture but its not working http://www.babylonjs-playground.com/#1P9EED#0
  5. @Deltakosh For live streaming of YouTube videos, if we use url of the video as source for VideoTexture it's not working. YouTube videos works in iFrame. Is there a way we can do that?
  6. Hi @Deltakosh @Wingnut @JCPalmer, Is there any way we can show youtube or any live stream video as a texture? http://www.babylonjs-playground.com/#140LZL#9 Is it possible to draw iframe on to the canvas element of the dynamic texture or is it possible to use the video element of video texture to render the livestream? Thanks -Raghavender Mylagary
  7. closed

    @Deltakosh I want to display the video with HTML5 Video controls. I tried with video texture but isn't working so I tried to draw video element with controls onto the dynamic texture canvas. It is also not working, is there any way we can display the video with controls??
  8. closed

    <!DOCTYPE html> <html> <head> <title></title> <script src="scripts/babylon.js"></script> <script src="http://www.babylonjs.com/cannon.js"></script> <script src="http://www.babylonjs.com/oimo.js"></script> <style> html, body { overflow: hidden; width: 100%; height: 100%; margin: 0; padding: 0; } #renderCanvas { width: 100%; height: 100%; touch-action: none; } </style> </head> <body> <canvas id="renderCanvas"></canvas> <canvas id="c"></canvas> <video id="v" controls> <source src=video.mp4 type=video/mp4> </video> <script type="text/javascript"> window.addEventListener('DOMContentLoaded', function () { var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var scene = new BABYLON.Scene(engine); var v = document.getElementById('v'); // Setup environment var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(10, 10, 50), scene); var light2 = new BABYLON.PointLight("Omni", new BABYLON.Vector3(10, 10, -20), scene); var camera = new BABYLON.ArcRotateCamera("Camera", -1, 0.8, 100, new BABYLON.Vector3.Zero(), scene); camera.attachControl(canvas); // Video plane var videoPlane = BABYLON.Mesh.CreatePlane("Screen", 50, scene); videoPlane.position.y = 10; videoPlane.position.z = 30; // Video material var videoMat = new BABYLON.StandardMaterial("textVid", scene); videoMat.diffuseTexture = new BABYLON.DynamicTexture("dynamic texture", 512, scene, true); videoMat.backFaceCulling = false; var context = videoMat.diffuseTexture.getContext(); //Applying materials videoPlane.material = videoMat; context.drawImage(v, 0, 0); videoMat.diffuseTexture.update(); engine.runRenderLoop(function () { scene.render(); }); window.addEventListener('resize', function () { engine.resize(); }); }); </script> </body> </html> @Deltakosh I tried to implement it but it's not working. Can you please look into the above code? playground link http://www.babylonjs-playground.com/#1JQNK1#1
  9. Hi, Is it possible to draw video onto the canvas element of the dynamic texture? Thanks - Raghavender Mylagary
  10. @JCPalmer Thanks for that. Now it worked @dbawel From now i will be sharing the PG scene and thanks for the reply.
  11. @JCPalmer I am creating materials and textures for my meshes in the code with BJS . Also for the Floor i have created the material in the blender itself. Thanks, Raghavender Mylagary
  12. @JCPalmer I updated my model with the above settings in blender and when i run the code the mesh is not visible on both sides. Thanks, Raghavender Mylagary Room.blend
  13. Hi, I have enabled double side normals for a mesh in Blender and exported it into .babylon file. When i am trying to run the .babylon file through BJS, one side of the mesh is transparent. Thanks, Raghavender Mylagary
  14. If i use the same model with a version of below 2.76 does it works??
  15. Hi, processing begun of node: Barcelona Chair Master processing begun of mesh: Barcelona Chair ButtonsBack processing begun of baked material: Barcelona Chair ButtonsBack Cycles baking texture, type: DIFFUSE_COLOR, mapped using: UVMap ========= An error was encountered ========= File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 330, in execute mesh = Mesh(object, scene, nextStartFace, forcedParent, nameID, self) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 787, in __init__ bakedMat = BakedMaterial(exporter, object, recipe) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 2135, in __init__ self.bake('diffuseTexture', 'DIFFUSE_COLOR', 'TEXTURE', image, mesh, uvName, exporter, recipe) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 2167, in bake self.bakeCycles(cycles_type, image, uvName, recipe.nodeTrees) File "C:\Users\ragha\AppData\Roaming\Blender Foundation\Blender\2.78\scripts\addons\io_export_babylon.py", line 2215, in bakeCycles bpy.ops.object.bake(type = bake_type, use_clear = True, margin = 5, use_selected_to_active = False) File "C:\Program Files\Blender Foundation\Blender\2.78\scripts\modules\bpy\ops.py", line 189, in __call__ ret = op_call(self.idname_py(), None, kw) ERROR: Converting py args to operator properties: enum "DIFFUSE_COLOR" not found in ('COMBINED', 'AO', 'SHADOW', 'NORMAL', 'UV', 'EMIT', 'ENVIRONMENT', 'DIFFUSE', 'GLOSSY', 'TRANSMISSION', 'SUBSURFACE') ========= end of processing ========= elapsed time: 1 min, 26.8304 secs Link for the blender model https://drive.google.com/file/d/0B6MPbSy1k027SklNR1lxUWZ4ZEk/view?usp=sharing Test.log