ESP Posted March 28, 2013 Share Posted March 28, 2013 Hi Guys (and girls ) I give up. What am I doing wrong. I do not get a texture on my sphere. 'ivologo.png' is 256x256, LE3 creates a .TEX and .MAT but I see no texture..... Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
macklebee Posted March 29, 2013 Share Posted March 29, 2013 the variable for the material is 'self.material' but you use this to set the material to the model: self.model:SetMaterial(material) Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
shadmar Posted March 29, 2013 Share Posted March 29, 2013 Yes it works by changing to self.material as macklebee suggests. HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Rick Posted March 29, 2013 Share Posted March 29, 2013 We talked on LE's IM and I had him just load the material he created instead of doing all the loading of the separate pieces as it didn't seem he had any real reason to load the separate pieces in code. Link to comment Share on other sites More sharing options...
ESP Posted March 29, 2013 Author Share Posted March 29, 2013 I was following the examples... I now get a textured sphere but not on Android. It would appear that it is doing something because of the UPS() drop but I see nothing. Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
ESP Posted April 2, 2013 Author Share Posted April 2, 2013 *bump Back in work today. Need to understand why I get nothing on Android. function App:Start() self.platformname = System:GetPlatformName() if self.platformname=="iOS" or self.platformname=="Android" then Device:SetOrientation(1) self.usetouchcontrols = true self.window = Window:Create("",0,0,1000,600,0) else self.usetouchcontrols = false self.window = Window:Create("",0,0,600,1000,0) -- self.window = Window:Create("",0,0,1800,1440,0) end self.context = Context:Create(self.window) self.world = World:Create() self.camera = Camera:Create() self.camera:SetRotation(35,0,0) self.camera:Move(0,0,-20) local light = DirectionalLight:Create() light:SetRotation(35,35,0) --Create a model and apply the material local material1 = Material:Load("Materials/fabric/ivologo.mat") self.model = Model:Sphere(32) self.model:SetMaterial(material1) self.model:SetScale(6,6,6) return true end function App:Loop() if self.window:Closed() or self.window:KeyHit(Key.Escape) then return false end self.model:Turn(0,Time:GetSpeed(),0) -- self.context:SetColor(0,0,1) -- self.context:Clear() local p = self.window:GetMousePosition() p.z = 5 + (p.x/50) + (p.y/50) p = self.camera:UnProject(p) self.model:SetPosition(p) Time:Update() self.world:Update() self.world:Render() --Display the device information on the screen self.context:SetBlendMode(Blend.Alpha) self.context:DrawText("GetOrientation : "..Device:GetOrientation(),2,2) self.context:DrawText("GetAcceleration : "..Device:GetAcceleration():ToString(),2,22) self.context:DrawText("GetMousePosition: "..self.window:GetMousePosition():ToString(),2,42) self.context:DrawText("platformname : "..self.platformname,2,62) self.context:DrawText("UPS : "..Time:UPS(),2,82) self.context:DrawText(System:GetMemoryUsage(),2,102) self.context:Sync(true) return true end Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
ESP Posted April 3, 2013 Author Share Posted April 3, 2013 * bump... My material file generated by the editor:- //Leadwerks Material File blendmode=0 castshadows=1 zsort=0 cullbackfaces=1 depthtest=1 diffuse=1.00000000,1.00000000,1.00000000,1.00000000 specular=0.000000000,0.000000000,0.000000000,0.000000000 lightingmode=1shader="shaders\dynamic\diffuse.shader" texture0=".\ivologo.tex" Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
ESP Posted April 4, 2013 Author Share Posted April 4, 2013 *bump... I really don't see myself getting very far in LE3 if I can't solve/get help for this... It has to be something trivial, but I've been stuck for a week now. Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Josh Posted April 4, 2013 Share Posted April 4, 2013 You're much more likely to get a response if you post the texture file so we can try it ourselves. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ESP Posted April 4, 2013 Author Share Posted April 4, 2013 See attached .png Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Josh Posted April 4, 2013 Share Posted April 4, 2013 Okay, did you re-publish the project for Android after fixing your code? My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ESP Posted April 15, 2013 Author Share Posted April 15, 2013 Ok. A big re-install session over with. I can now create Windows .exes (not using DA ) My texture STILL does not appear on Android, but does on Windows. Someone must have an idea? Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Admin Posted April 17, 2013 Share Posted April 17, 2013 Can you zip your project up and post it here please? 1 Link to comment Share on other sites More sharing options...
ESP Posted April 18, 2013 Author Share Posted April 18, 2013 The Lua (app.lua) and the image (ivologo.png) are already here. I have tried to ZIP up and re-use projects, but your project manager does not see them. Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
ESP Posted April 19, 2013 Author Share Posted April 19, 2013 I know it's not needed, but how do I post a .ZIP file? Robin Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Josh Posted April 19, 2013 Share Posted April 19, 2013 Hit "More Reply Options" at the bottom next to the "Post" button. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ESP Posted April 22, 2013 Author Share Posted April 22, 2013 Attached. Robin esp001.zip Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
ESP Posted April 25, 2013 Author Share Posted April 25, 2013 *Bump Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Josh Posted April 26, 2013 Share Posted April 26, 2013 We're finishing up some tutorials. I'll be turning my attention back to bug fixes after that. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Admin Posted May 12, 2013 Share Posted May 12, 2013 Try this copy of the diffuse shader. Be sure to re-publish your project for Android: diffuse.zip Link to comment Share on other sites More sharing options...
Recommended Posts