[XUI] 3D, rotations and pivots

Star-Dust

Expert
Licensed User
Longtime User
added light/shade effect a function of the distance from the light point (the observer)

1.png
2.png
3.png
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Esteemed developers,

As already announced I made available the XUI3D library and an example for the three platforms (Android, Desktop, IOS)
In the example n.1 it was set that the drawing speed statistics appear in the LOG.

Invite, those who want to test on one (or all three) of these platforms, publish the statistics of speed that appear on the logs by trying this file that you find in this link.
The ideal would be to try both the Bitmap method and the Canvas method. You can select the mode with DrawMode in the RenderToView method (1=Canvas; 2=BitmapCreator). In the example B4J and B4A you can change the mode from the menu:
B4X:
Log("Type Draw:" & ModeDraw)
Log("Rotate in :" & P3D.Rotatetime)
Log("Sort in :" & P3D.SortTime)
Log("Draw in :" & P3D.DrawTime)

Samsung Galaxy S6 (Canvas)
Type Draw:1
Rotate in :0
Sort in :182
Draw in :500
Samsung Galaxy S6 (BitmapCreator)
Type Draw:2
Rotate in :0
Sort in :34
Draw in :246

Honor 9 (Canvas)
Type Draw:1
Rotate in :0
Sort in :120
Draw in :261

Honor 9 (BitmapCreator)
Type Draw:2
Rotate in :0
Sort in :50
Draw in :230

PC (Canvas)
Type Draw:2
Rotate in :1
Sort in :200
Draw in : n.a. (addios)

PC (BitmapCreator)
Type Draw:2
Rotate in :1
Sort in :114
Draw in :1429
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Bugs discovered little when loading obj files which tripled their size and slowed their movements.

An example of fluid motion with light/shadow effect with bug correction.
I have tested a new function that identifies the polygon to the touch and can modify it in size, depth and color.This could be useful if you want to create a 3D Imagery Editor, then with the need to modify and polygons.
39.gif
40.gif
41.gif
 
Last edited:
Top