Jump to content

I cannot see my texture/material


ESP
 Share

Recommended Posts

Hi Guys (and girls smile.png )

 

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

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

*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

* 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

*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

  • 2 weeks later...

Ok. A big re-install session over with. I can now create Windows .exes (not using DA smile.png ) 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

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

  • 3 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...