Reference:
https://www.b4x.com/android/forum/threads/3d-spinning-cube.92442/#content
I've tabled this problem in my Splash page long enough. I hope @Johan Schoeman is out there ...
How to set the Background Color of the glsSurfaceView in the attached small project?
https://www.b4x.com/android/forum/threads/3d-spinning-cube.92442/#content
I've tabled this problem in my Splash page long enough. I hope @Johan Schoeman is out there ...
How to set the Background Color of the glsSurfaceView in the attached small project?
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
Facelist.Initialize
'add 6 images to (List) facelist - one for each of the faces of the cube
mbm(0).Initialize(File.DirAssets,"image1.png")
Facelist.Add(mbm(0))
mbm(1).Initialize(File.DirAssets,"image2.png")
Facelist.Add(mbm(1))
mbm(2).Initialize(File.DirAssets,"image3.png")
Facelist.Add(mbm(2))
mbm(3).Initialize(File.DirAssets,"image4.png")
Facelist.Add(mbm(3))
mbm(4).Initialize(File.DirAssets,"image5.png")
Facelist.Add(mbm(4))
mbm(5).Initialize(File.DirAssets,"image6.png")
Facelist.Add(mbm(5))
gls1.SixFaces = Facelist
'' gls1.Color = Colors.Transparent ' appears to do nothing
'' gls1.Color = Colors.Red ' just coats the whole view with red
'' gls1.SetColorAnimated(Colors.Red,Colors.White,Colors.Transparent) ' does not seem to do anything? What are the 'args'? The third one is gls1.color
' Although cool, this just puts a big "O" in the middle of the view
'' Dim bmd As BitmapDrawable
'' bmd.Initialize(TextToBitmap("O", 24, Colors.RGB(255, 0, 0)))
'' gls1.Background = bmd
' ANY OTHER IDEAS?
End Sub