Hi I tried to use the tutorial meshes to lua and I have a problem.
The code is
--registering the abstract path
RegisterAbstractPath("")
--Set a graphics mode
Graphics(800,600)
--Framework object
fw = CreateFramework()
--set camera
camera = fw.main.camera
camera:SetPosition(Vec3(0,1,-5))
--create cube
cube = CreateCube()
--create sphere
sphere = CreateSphere(28)
sphere:SetPosition(Vec3(3,0,0))
--create light
light = CreateDirectionalLight()
--load mesh
torus = LoadMesh("abstract::torus.gmf")
if torus == nil then
Notify("Failes to load torus.gmf")
else
Notify("Loaded the torus.gmf")
end
--main loop
while AppTerminate()==0 do
fw: Update()
fw: Render()
Flip(0)
end
[code]
I have the all files in the same place but the torus don´t appeared. Could somebody help me? thanks