Carm3D Posted September 4, 2017 Share Posted September 4, 2017 Hello, I am very new to Leadwerks.. I made a test ball object and a normal map for it. I imported them both successfully into Leadwerks. I figured out how to tell the shader to load Diffuse+Normal. But I cannot find where to apply the UV Map. I applied a test UV Grid image to the diffuse and it filled the entire surface with the colour of the map at 0,0 on the UV map. it's almost as if the UV is not there. Could anyone take a look at this and tell me what step I am missing? I will include the original .obj version if you need to compare it to the FBX. TestBall.fbx TestBall.obj Quote Link to comment Share on other sites More sharing options...
tumira Posted September 4, 2017 Share Posted September 4, 2017 I dont think this is unwrap properly or exported correctly. What tool did you use ? Quote Link to comment Share on other sites More sharing options...
Genebris Posted September 4, 2017 Share Posted September 4, 2017 Something must be wrong with your fbx file, it look righ in Blender but not in Leadwerks. I exported obj file as fbx and it worked correctly. Also, it's better to use Leadwerks exproter: Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 Okay thank you. I used Lightwave to convert the .obj to .fbx. I guess it's not fully compatible. I could probably use the FBX exporter for Blender for simple things like test balls, but if I make character animation in Lightwave I'll need to find a way to successfully export that to Leadwerks. Hmmm... Quote Link to comment Share on other sites More sharing options...
tumira Posted September 4, 2017 Share Posted September 4, 2017 Why did you export it as obj from Lightwave ? It does not has fbx exporter ? Maybe you can try collada(dae) or other formats ? Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 I used Lightwave because that's my main 3D tool. I've been using it for 15 years. It has an FBX export but clearly whatever it is exporting is not working well with Leadwerks. Does Leadwerks import Collada? Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 I don't think Leadwerks imports Collada. Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 Okay this is super weird... I made a new model with UVs.. Added bones, animated them and then exported it out as FBX. Leadwerks imported everything perfectly; UVs included. I have no idea why the TestBall's UVs didn't work but TestTube's UVs worked. Feel free to put this in your games if you want a weird dancing tube. TestTube.fbx Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 Can someone help me get the camera working? When I run the game with the TestTube all I get is a black screen. Quote Link to comment Share on other sites More sharing options...
tumira Posted September 4, 2017 Share Posted September 4, 2017 Did you add a camera into the scene? If there are two cameras, try to delete one of them Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 Oooh that worked! Thank you! I made my first "videogame!" It's a tube that sits there and I can see how long I can stand staring at it. Gonna see if I can figure out how to make it play it's animation. Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 I got the animation playing in the "game." I tried publishing it to a standalone file but that just plays a black screen. :/ Quote Link to comment Share on other sites More sharing options...
Genebris Posted September 4, 2017 Share Posted September 4, 2017 You need to make sure you load the correct map in main.lua, when launched with editor it will open map opened in editor, in standalone it opens specified file. Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 Hmm... Where it said "..changemapname.." ? I changed that to the name of a map file I saved. Still get a black screen though. Quote Link to comment Share on other sites More sharing options...
Carm3D Posted September 4, 2017 Author Share Posted September 4, 2017 To be more precise, it's black for a few moments, then I get an option screen with "New Game, Options, Quit" 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.