CarlosDvlp Posted January 29, 2016 Share Posted January 29, 2016 Hello guys, I really like to use BabylonJs in my projects, is so useful. However I'm having a problem with a model exporting it from 3dsMax 2016 to .babylon format with the plugin of the last push in babylonjs repository. The log responses with "Exportation cancelled: Object reference not set to an instance of an object". I read some answers from different post in this forum talking about objects that not are in the scene, It's the problem? Ok, I read in github that I have to use the exporter till 3dsMax2015, however I use the exporten in a cube, directional light and a free camera ,so I believed that it may work in the current in the version I'm using of 3dsMax. Expecting your help, thanks in advance. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 29, 2016 Share Posted January 29, 2016 Hello carlos,can you share your 3dsmax file? Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted January 29, 2016 Author Share Posted January 29, 2016 sure, I sent you a message with the link Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted January 31, 2016 Author Share Posted January 31, 2016 On 29/1/2016 at 4:38 PM, Deltakosh said: Hello carlos,can you share your 3dsmax file? Excuse me, what could be an alternative to do this? Would it be problem of some design compatibility? thanks for your time! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 1, 2016 Share Posted February 1, 2016 i guess there is a bug but I need to test it on 3dsmax. This is why I need the file Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 1, 2016 Share Posted February 1, 2016 i guess there is a bug but I need to test it on 3dsmax. This is why I need the file I fixed it with 0.4.1 Boz 1 Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted February 3, 2016 Author Share Posted February 3, 2016 On 1/2/2016 at 10:01 PM, Deltakosh said: i guess there is a bug but I need to test it on 3dsmax. This is why I need the file I fixed it with 0.4.1 Thanks, It exports the complete model now. thanks you. I don't want to bother but, [15:54:19]: Error while trying to load texture: texturename.jpg now I'm getting this error, for every texture, the model is in the same file of the textures. Another question, What program was used for modeling this http://babylonjs.com/Demos/Retail/ ? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2016 Share Posted February 3, 2016 3dsmax was used for Retail or Sponza Regarding your error the file texturename.jpg exists? Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 4, 2016 Share Posted February 4, 2016 I had this error Object reference not set to an instance of an object each time I had to work with a scene containing VRay objects (materials, lights, cameras...). This may be the problem here, as the exporter won't export anything Vray related. In your second problem, maybe the texture is missing. Did you checked 'copy texture to output folder' in the exporter ? Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted February 25, 2016 Author Share Posted February 25, 2016 Hello, guys! thanks for all responses and sorry for my very late answer. Yeah I use Vray Objects that would be the problem, however, can you tell me what other incompatibilities I have to concern? mmm all my textures were in the same folder, I tried to put them outside too. Quote Link to comment Share on other sites More sharing options...
Temechon Posted February 26, 2016 Share Posted February 26, 2016 Vray objects, vray lights, vray materials, mental ray materials ... To sum up : vray.* and mentalray.* Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted March 10, 2016 Author Share Posted March 10, 2016 Thanks, I think that's why I have no textures on my scene. I still don't know why some models moved from their original places.... Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 10, 2016 Share Posted March 10, 2016 Try to check 'reset x form' to your object before exporting. It will bake all your transformations (scale, move, rotation) into the vertices of your model, in order to be clean in bjs. Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted March 11, 2016 Author Share Posted March 11, 2016 Guys you're amazing, Thanks a lot. . mmmmm, You know why some planes are not being shown ? it's because of culling? can I disable culling in my JS code? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 11, 2016 Share Posted March 11, 2016 Possibly. You can disable culling with mesh.material.backFaceCulling = false Quote Link to comment Share on other sites More sharing options...
CarlosDvlp Posted March 13, 2016 Author Share Posted March 13, 2016 Thanks it worked, what about reflection and shadow? I used raytrace in a standard material with no luck. I don't find doc about how to make a whole scene compatible with 3dmax. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 13, 2016 Share Posted March 13, 2016 Not sure to understand. But shadows and reflections should be exported as long as you use standard material in 3dsmax (no vRay support) Quote Link to comment Share on other sites More sharing options...
Messie Posted July 26, 2019 Share Posted July 26, 2019 Hi, I added Babylon.js plugin in 3ds max. I want to export the 3D model in gltf format with animation. I am able to export cube,sphere etc 3D models in GLTF format. But I can't able to export large 3D model. It is showing this error : Export Cancelled: Object reference not set to be an instance of an object. System NullReferenceException : Object reference not set to be an instance of an object. Please, if anyone know how to solve this error, help me. I am running out of time and also new to 3Ds max. 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.