I wanted to have a cube and a plane (ground) with the same texture, but also with the same tiles. So my idea was, to scale the UV, to put more of the texture tiles next to each other.
But maybe SetObjectUVScale is the wrong command. And I need sometimnge like SetObjectUVTile, or SetObjectUVStretch ...
Or: SetObjectTextureRepeatXY
The idea was, to not have separate objects, but maybe it is the better way, to have 40 x 40 planes with one texture, insteat of having a plane 40*20 (800) by 800 with 40 by 40 "tiles"
oplane=CreateObjectPlane(40*20,40*20)
SetObjectRotation(oplane,90,0,0)
ocube=CreateObjectBox(20,20,20)
SetObjectPosition(ocube,0,20,0)
SetObjectRotation(ocube,0,45,0)
itex=LoadImage("FL_Cube_2017.png")
SetObjectImage(ocube,itex,0)
SetObjectImage(oplane,itex,0)
//SetObjectUVScale(oplane,0,1.0/40,1.0/40)
SetObjectUVScale(oplane,0,1,1)
SetCameraPosition(1,0,120,150)
SetCameraLookAt(1,0,10,0,0)
do
Print( Str(ScreenFPS(),2))
Sync()
loop
Thanks for help. Kind regards.