The object work Ok ...but I can't understand why it doesn't apply the texture..nor colors
// Project: testmodel
// Created: 2019-03-24
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "testmodel" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
LoadObjectWithChildren(103,"gigon.x")
loadimage(103,"gigon2.jpg")
SetObjectPosition(103,0,1,0)
SetObjectImage(103,103,4)
anim2 as String
anim2 = GetObjectAnimationName(103,2)
contador= GetObjectNumAnimations(103)
tiempo as float
SetObjectAnimationSpeed(103,25.0)
PlayObjectAnimation(103,anim2,0,2880,1,1)
setobjectcolor(103,255,0,0,0)
createobjectsphere(10,1000,10,10)
SetObjectCullMode(10,0)
SetObjectColorEmissive(10,0,0,255)
setcameraposition(1,0,140,-140)
SetCameraLookAt(1,0,0,0,0)
do
Print( ScreenFPS() )
Sync()
loop
Edited. just one more test....now it get emissive colors
// Project: testmodel
// Created: 2019-03-24
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "testmodel" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
LoadObjectWithChildren(103,"gigon.x")
loadimage(103,"gigon2.jpg")
SetObjectPosition(103,0,1,0)
SetObjectImage(103,103,4)
anim2 as String
anim2 = GetObjectAnimationName(103,2)
contador= GetObjectNumAnimations(103)
tiempo as float
SetObjectAnimationSpeed(103,25.0)
PlayObjectAnimation(103,anim2,0,2880,1,1)
setobjectcolor(103,255,0,0,0)
createobjectsphere(10,1000,10,10)
SetObjectCullMode(10,0)
SetObjectColorEmissive(10,0,0,255)
setobjectcoloremissive(103,0,255,0)
setcameraposition(1,0,140,-140)
SetCameraLookAt(1,0,0,0,0)
do
Print( ScreenFPS() )
Sync()
loop
I'm not a grumpy grandpa