royibernthal Posted December 2, 2016 Share Posted December 2, 2016 I'm trying to export a blender file to .babylon, it seems to be exported fine except for the texture part, which is not found by the bjs exporter. e.g. quote from scorpion.log: Quote WARNING: Material has un-assigned image texture: "scorp-02_texture" ignored This seems to happen in many models I encounter (especially in all models downloaded from 3DRT.com), how can I fix these models so they can be exported with the textures? I imagine the author of these models is missing something simple for the textures to be recognized by the bjs exporter. .blend: https://www.dropbox.com/s/vvobw5ga419ocqe/scorpion.blend?dl=0 .log: scorpion.log .babylon: scorpion.babylon Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 3, 2016 Author Share Posted December 3, 2016 @gryff @JCPalmer Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 3, 2016 Share Posted December 3, 2016 Hi Royi, how ya been? I hope well. Did you tour the .babylon file with a json file viewer, and look for scorp-02_texture inside there, somewhere? I don't see it. In line 3... "materials":[{"name":"scorpion.scorp-02","id":"scorpion.scorp-02","ambient":[1.0824,1.0824,1.0824],"diffuse":[0.8,0.8,0.8],"specular":[0.45,0.45,0.45],"emissive":[0,0,0],"specularPower":50,"alpha":1,"backFaceCulling":true,"checkReadyOnlyOnce":false}], No talk of diffuseTexture, there. I would say that the problem is within Blender. Texture not assigned to mesh. I think you need to fiddle-around in Blender until the .babylon file looks better than it currently does. *shrug*. Hope this helps. Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 3, 2016 Author Share Posted December 3, 2016 Hey Wingnut, great, extremely busy so I wasn't able to visit bjs much. How about you? Yup, that's exactly the problem The texture doesn't appear in the .babylon because bjs exporter for blender doesn't find it in the .blender file, meaning it was not assigned properly in the .blender file. My question was how can I fix this model on blender so that the bjs exporter can recognize the texture and export it properly into the .babylon file. That's why I pinged our 2 blender experts. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 3, 2016 Share Posted December 3, 2016 ahh, ok... you are pinging people on the BabylonJS forum, for an issue with Blender. I understand. You must be using a different username at https://blenderartists.org/forum/forumdisplay.php?30-Materials-and-Textures (Aren't I a turd? nod.) Can I assume that the texture is displayed when the scene is rendered in Blender? Or... is the import of 3dart files... into Blender... failing? In what format are you getting them from 3dart? 3dart == cgtrader? Blender version issues? Using FBX? .OBJ? Got details? Done research? Anything found? Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 3, 2016 Author Share Posted December 3, 2016 The website is 3DRT.com, I mispelled it in the first post, fixed. I'm getting a .blend file, meaning no conversions issues from other formats. I'm not able to see the texture in the .blend, however I'm not able to see it for any other model as well that are exported with textures properly, so I guess I don't know where to look for it. I tried discussing it with the blender modeler who created this .blend (the admin of 3DRT.com), he seems to have no idea as to why the texture is not recognized, so I figured it's better to ask here, where people know the requirements for bjs exporter to recognize textures in the .blend. Possibly any decent blender modeler would've been able to answer that though, I just felt it's better to ask people who're familiar with both blender and bjs, as we're talking about exporting from blender to bjs after all. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 4, 2016 Share Posted December 4, 2016 downloaded your .blend file from dropbox, their is no texture, their is something like *.jpg without a picture. Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 4, 2016 Author Share Posted December 4, 2016 I see, how do I fix this? Can I assign the image where it was intended to be assigned? I have the scorp-01.jpg file. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 4, 2016 Share Posted December 4, 2016 upload the jpg i upload the blend. per pn or here. @royibernthalhttps://www.google.de/search?q=blender texturing Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 4, 2016 Author Share Posted December 4, 2016 Here's the jpg, I tried to add it as a texture to the model and then export, still didn't work for me, there's probably a more specific way to do it that I don't know. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted December 4, 2016 Share Posted December 4, 2016 ignored Quote Link to comment Share on other sites More sharing options...
gryff Posted December 4, 2016 Share Posted December 4, 2016 @royibernthal, @Wingnut, @JCPalmer Well, I see this post was originally made in Friday at 6.23pm and by early Saturday morning (8.13am) Jeff and I are pinged to answer a question - basically "on demand" When I look at the BJS forum, if I think I can make a contribution to an answer - I do!! There is NO need to ping me. And I am sure Jeff feels the same way. I should also add, that Friday evening is not a good time to post questions if you want quick answers, especially in the month of December (a time of much social activity and shopping and family demands). Some of us have a life outside BJS. In future, I will be doing exactly what Jeff did in response to this kind of pinging. Now, an answer. See image below. I have the scorpion mesh selected and the "Texture Panel" properties tab selected. You will notice that a "Texture Slot" has been created ("scorp-02_texture") but the "Preview" panel is black - no texture shows. The panel called "Image" gives you two options "New" or "Open" - so NO texture has been assigned to that "scorp-02_texture" slot which explains your error message " Material has un-assigned image texture ". So load your texture with the "Open" button! gryff. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 4, 2016 Share Posted December 4, 2016 @gryff can you make the fix with the texture ? im realy busy, for now. would be great! @royibernthal just in case u have on obj you have to use and older blender version i think 2.6 to see the texture immediately. they changes something, so the obj importer dont import the texture Quote Link to comment Share on other sites More sharing options...
royibernthal Posted December 4, 2016 Author Share Posted December 4, 2016 @gryff I just post my questions whenever I have them, should I really pay attention to the time I'm posting something? (not a rhetorical question) I didn't realize pinging was such a big deal. I'll stop pinging people seeing that it bothers you. Anyway, thank you very much for the help. Simple and works. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted December 5, 2016 Share Posted December 5, 2016 When textures links are broken in Blender, put texture files in a unique folder (easier) and use that : In theory Blender will find connection between texture name and filename. [edit : and to share blender file with textures on it, in the same menu use Pack All Into .blend, this will... pack all externals files into .blend... ^^ ] Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 5, 2016 Share Posted December 5, 2016 @V!nc3r I kind of hang around this since years i have an old blender version for *.obj. i import and reexport as blender file. do you know, why in 2.6 obj works with textures and since then its broken. this question carry with me since years! thank you! Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted December 5, 2016 Share Posted December 5, 2016 I do not work with .obj, do you have a file example with textures so i can test ? Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 5, 2016 Share Posted December 5, 2016 Nah, Its not necessary, i dont want to steal your time! Converting like i described above take 2minutes, and i get used to it. Thank you! 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.