hit2501 Posted October 5, 2015 Share Posted October 5, 2015 Hi everybody. I checked this sample: http://www.babylonjs-playground.com/#9U086#34 This sample only can run in playground when you press "Run" again but when I tried to run it in my pc (after "get zip") the console shows me: "Uncaught SyntaxError: Unexpected token ILLEGAL" I fixed a ";" that was missing but still gives me that error. What am I doing wrong? Thanks. Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 5, 2015 Share Posted October 5, 2015 Not sure what the problem is, but if you run it locally you can edit the source and add the html elements that are needed directly and not with the help of jQuery. I attached a version that should work.babylonjs-plus-fabricjs-example.html Quote Link to comment Share on other sites More sharing options...
hit2501 Posted October 5, 2015 Author Share Posted October 5, 2015 I tried like in your file but I must did something wrong because it didnt work for me. Once again you save me iiceman. One more question, do you know where I can find a example of move a texture (like in your file) but in a mesh imported from Blender? Thank you very much. Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 5, 2015 Share Posted October 5, 2015 hmm..maybe... something like that: http://p215008.mittwaldserver.info/space_paint/ (might load a while). Changing the texture like that only works with a dynamic texture. You cant do that only with blender. You would have to read the texture after importing the file, draw that texture in a dynamic texture like in the example and assign the dynamic texture to the imported mesh again. 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.