Zimbofly Posted June 17, 2014 Share Posted June 17, 2014 Hi all, Firstly - a quick howzi from a newbie!!! - just moving over from Three'js and experimenting with Babylon, lovin it so far... I'm havin a small issue getting my blender export to listen to scaling and position commands. var newMeshes = []; function importedMeshes(mesh) { mesh.position = new BABYLON.Vector3(-10, 0, 0); mesh.scaling = new BABYLON.Vector3(19.025, 19.025, 19.025); } BABYLON.SceneLoader.ImportMesh("", "GalleryAssets/room/", "Room2.babylon", scene, function (newMeshes) { importedMeshes(newMeshes[0]); }); Room2 is appearing but won't resize or listen to any postioning commands.It was originally a 3DS file that I imported to blender and exported to Babylon (long winded but worked kind of ok for my Three.js project.) ( i tested an import from my three.js (Json) file into blender and then exported for babylon - THAT responded to the above code for scaling and positioning, BUT lost all info (meshes etc and just showed black walls in the correct shape and position) Anyone see anything I'm doing wrong?Is it something I need to do in Blender first? Thanks and kind Eegards Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 17, 2014 Share Posted June 17, 2014 Are you sure newMeshes[0] IS the object you want to scale? BTW we introduced a 3dmax exporter:https://github.com/BabylonJS/Babylon.js/tree/master/Exporters/3ds%20Max Quote Link to comment Share on other sites More sharing options...
Zimbofly Posted June 18, 2014 Author Share Posted June 18, 2014 to be honest I'm not really sure at all - at this stage it's a quite a bit of trail and error! (hack and smash!) This code scales and positions blender files exported, But won't work on any of the 3DS files that I take into blender and then export for Babylon - so something is being lost between 3ds and Blender! Thanks for the link to 3ds Max exporter - any Blender experts out there can shed any light on this route? Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 18, 2014 Share Posted June 18, 2014 If you're going to move files between 3ds and blender, you'll need the opencollada plugin for 3das max. collada max and fbx files aren't well supported by blender. Quote Link to comment Share on other sites More sharing options...
Zimbofly Posted June 18, 2014 Author Share Posted June 18, 2014 ok, thanks reddozen,,, will look into that! Quote Link to comment Share on other sites More sharing options...
Zimbofly Posted June 18, 2014 Author Share Posted June 18, 2014 Anyone have any other methods I could try for scaling my export from Blender? It turns out the 3DS files I have are exports from TurboCad, so it's all a bit complicated! I installed 3DS MAX but the babylon exporter is crashing on 3DS open, so at the moment I can only go the blender route! help please! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 18, 2014 Share Posted June 18, 2014 I fixed it you can try to use 3ds max exporter again Quote Link to comment Share on other sites More sharing options...
Zimbofly Posted June 19, 2014 Author Share Posted June 19, 2014 Hi DeltaKosh,I got the latest exporter for 3DSMAX, but still getting same assembly errors (for all 5 babylon files in the bin/assemblies folder) 2 of the error msgs are attached if that helps. I'm using trial version of 2015 3DS MAx on 64bit Windows7 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 19, 2014 Share Posted June 19, 2014 The exporter is for 3ds max 2013 and works perfectly with this version. But it is a pity that each version of 3ds max does not retain compatibility with the plugins/addon/exporter... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2014 Share Posted June 19, 2014 I think it can be related to lock dll. Could you try to do a right click property on Max2Babylon.dll for instance. You should have to unlock them (they are locked because you downloaded them from internet) Quote Link to comment Share on other sites More sharing options...
gryff Posted June 19, 2014 Share Posted June 19, 2014 It was originally a 3DS file that I imported to blender and exported to Babylon Zimbofly, do you have a .blend file I can take a look at? Ohh, and by 3DS, do you mean the program 3DSMax or the geometry format .3DS? cheers, gryff Zimbofly 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 20, 2014 Share Posted June 20, 2014 I mean 3dsMax Quote Link to comment Share on other sites More sharing options...
Zimbofly Posted June 23, 2014 Author Share Posted June 23, 2014 Thanks ~DeltaKosh, you were right - all dll were blocked - those errors now gone but i have another error now - attached Hey Gryff, - seems I'm not permitted to attach blender files here, can I email it to you or something? yeah - I did mean .3ds file (I think originally from Turbocard) thanks again for the help guys! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 24, 2014 Share Posted June 24, 2014 I published 0.6.0 with support for 3dsmax 2015 Zimbofly 1 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.