imothep85 Posted February 8, 2018 Share Posted February 8, 2018 why not to change the actual system by something better and easier for all, inside leadwerks by default a texture folder has to exist, allways !!! When the user install Leadwerks or run it he can just drag and drop files inside that folder and then Leadwerks convert every image to .tex wh ocan be directly used on 3d models by drag and drop. Easier for every one, less work, less waste of time !!!! Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 There is a materials folder by default. 11 hours ago, imothep85 said: When the user install Leadwerks or run it he can just drag and drop files inside that folder and then Leadwerks convert every image to .tex wh ocan be directly used on 3d models by drag and drop. What you describe already happens. However you need to make a material first. If you import a model with textures, material files are even created automatically. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 well when i import a static mesh in fbx from 3ds max the object is completly black no texture.... why leadwerks doesnt convert directly the texture in a material ? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 According to the documentation it should do this automatically, but there are some conditions: Quote ......Notice how the oilbarrel already has the texture applied to it. This is because the texture information of the model is stored inside the original FBX file. The FBX file knows the names of the textures to be applied to the model. Leadwerks automatically checks if there are any textures in the same folder and matches those with the information stored in the model. When there is a match, a material is automatically created. The material is also automatically attached to the model. This is one of those little things that just makes life easier. https://www.leadwerks.com/learn?page=Tutorials_Editor_Models-and-Animation Can you check if you have the following: The fbx model references your texture. That texture is in the same folder as you model. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 well its teh case in 3ds max my model has textures fbx+textures are in the same folder, when i import the model inside leadwerks....its black... also i noticed something really impossible to me to understand when i move a light in the scene object doesnt get light and shadow from that light... Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 In that case, I would file a bug report because that should be happening automatically. Are you using Linux btw? Because the automatic mapping only works in windows. As for not seeing any shadows. Open the material for your model. Is the Cast shadow option enabled? Open the properties tab for your entity, under the appearance tab set cast shadows to Dynamic. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 no im under windows 7 64bits, 3ds max 2017 Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 thanks for your help so now i have the texture on my object, but i imported the diffuse, why the imported fbx, inside leadwerks doesnt use the bump map, the diffuse and specular maps by default???? i just have a diffuse, why when object imported leadwerks doesnt use the diffuse, specular, bump maps from 3ds max?? if i have to do this for every model i import its an enormous work and waste of time. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 23 minutes ago, imothep85 said: i just have a diffuse, why when object imported leadwerks doesnt use the diffuse, specular, bump maps from 3ds max?? I am not entirely understanding this question. Your diffuse texture is visible in the screenshot your provided but you are sayin it is not using it? As for the bump and specular not automatically added to the material. I think Leadwerks uses a postfix to map bump and specular textures in a material. Try giving your textures the following names with a postfix: myTexture_diff myTexture_dot3 myTexture_spec Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 now i understand how to import the textures, but why whn i import a fbx allready textured in 3ds max, why leadwerks doesnt understand the model has texture diffuse, bump, and specular for example??? why whe have to do this process for every texture, and the convert those textures to mats? Leadwerks has to automatize this process! Quote Link to comment Share on other sites More sharing options...
Rick Posted February 9, 2018 Share Posted February 9, 2018 Are you naming your texture files with _diff for diffuse, _dot3 for bump, and _spec for spec textures? If the filenames of your textures have those suffixes then Leadwerks should assign them automatically. It’s the only way Leadwerks can know what texture should go where. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 yes my files are named like that computer_diff, computer_dot3, computer_spec Quote Link to comment Share on other sites More sharing options...
Rick Posted February 9, 2018 Share Posted February 9, 2018 Full names have the file extension right? Like .png at the end and you’re saying it still doesn’t auto map them to the mat? Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 of course lol my files are png or jpg, when import to leadwerks, files are renamed .tex, then i have to convert that to .mat and then only i can drop that on the object, but all this process it's a waste of time if the texturign is allready done in a 3d software why leadwerks doesnt understand object is mapped, and he has to show by default when the fbx is imported, it has to be visible with the textures. when i import an fbx, its BLACK, then i have to reimport the textures, convert to mat and reapply to the object. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 here a screenshot of the imported fbx Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 you can see leadwerks imported fbx and inside 3ds max Quote Link to comment Share on other sites More sharing options...
Rick Posted February 9, 2018 Share Posted February 9, 2018 We are saying it should do that automatically for you with some correct settings and we are just trying to figure out why it’s not. I thought you got the mat to auto generate? Are you saying you didn’t get the mat to autogenetate because that’ll be step one to figure out first. Without that the textures won’t be auto assigned Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 well i do this, in 3ds max i make a 3d model, then apply uvw and textures, i save everything, i rename the files for leadwerks. then i drag and drop the fbx inside leadwerks and thats the result i get, something empty, i have to redo all the texture import myself. and in the properties of the object i have to chose what map to use for diffuse, bump and specular but at teh moment i try and try again, i started at 9 this morning still the same problem, here its now 13h35 Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 7 minutes ago, imothep85 said: i save everything, i rename the files for leadwerks. So you are exporting the model and than rename the textures? If so, how would the model know that you renamed your textures. The texture need to have that name before you export the model. Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 so when i importh my fbx from 3ds max i get this .... and after i have to redo all the procees of importing the textures, and convert everything to mat, and then reapply to the object but what if i have 200 or 300 objects??? the amount of work is horrible ! Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 NO i rename the files FIRST, in the folder THEN i import the fbx in leadwerks !!! i know if i import the fbx and rename the files after, leadwerks is not going to understand thats logic! Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 here a screenshot of my fbx file with the textures Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 9, 2018 Share Posted February 9, 2018 1 hour ago, imothep85 said: NO i rename the files FIRST, in the folder THEN i import the fbx in leadwerks !!! I mean even before that. Is the 3dsxmax scene referencing the renamed textures? Quote Link to comment Share on other sites More sharing options...
imothep85 Posted February 9, 2018 Author Share Posted February 9, 2018 Quote Link to comment Share on other sites More sharing options...
Rick Posted February 9, 2018 Share Posted February 9, 2018 Not sure if you've kept LE open each time and just deleting the files to keep retrying but restart LE after deleting files and try maybe even importing into a different folder as a test. I've had LE do funny things when I delete a file and try to reimport it where it wouldn't see the new file change. Deleting the file then restarting LE and then reimporting seems to clear some in memory stuff LE must be doing. Just an idea to try. 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.