Discussion of article "3D Modeling in MQL5" - page 2

 
Sergey Pavlov:

3D - without the ability to change the point of view - is a 2D drawing. Therefore, interactivity is the most important quality in modelling 3D objects. What is the point of a static picture?

There is a magic function and an example of its use is given.

Where did anyone write about the absence of a viewpoint feature? You guessed correctly about 2D. The essence of 3D modelling is 'that' - to convert 3D to 2D - spatial coordinates to screen coordinates. But what makes you think there should be no way to change the viewpoint?

Where is this feature? Show me the line specifically.

 
It's high time to move to 3D, because the price moves not in 2-dimensional space, but in 4-dimensional space (only two dimensions (the real total volume of transactions and the ratio of bulls and bears) are hidden from us by the bourgeoisie).
But I am also in favour of kanvas. Only there it is possible to realise a normal speed. Without kanvas we get some crazy number of objects, and with kanvas there is only one. You can see with the naked eye that it is slow, but I really like the speed of kanvas. You can see it well from this video, where I implemented colour overlay and transparency. I recorded this video a long time ago, and now after the latest MT5 updates, drawing and output of the kanvas became several times faster.
Question to MT5 developers: Can't you open access to the kanvas of the window itself? Let me build a point in the window without creating a new canvas and without creating an object, and then the possibilities are fantastic.....
 
Nikolai Semko:
You can see it very well in this clip, where I have implemented colour overlay and transparency.
I really like the idea of using colour with transparency, when without seeing the borders of the channel, you can understand what channel you are in - at the end of the clip with the change of TF.
 
Nikolai Semko:
It's high time to move to 3D, because the price moves not in 2-dimensional space, but in 4-dimensional space (only two dimensions (the real total volume of transactions and the ratio of bulls and bears) are hidden from us by the bourgeoisie).
But I am also in favour of kanvas. Only there it is possible to realise a normal speed. Without kanvas we get some crazy number of objects, and with kanvas there is only one. You can see with the naked eye that it is slow, but I really like the speed of kanvas. You can see it well from this video, where I implemented colour overlay and transparency. I recorded this video a long time ago, and now after the latest MT5 updates, drawing and output of the kanvas became several times faster.
Question to MT5 developers: Can't you open access to the kanvas of the window itself? Let me draw a point in the window without creating a new canvas and without creating an object, and then the possibilities are really fantastic.....
With kanvas you will have to redraw all points, and with graphical objects only vertices. And in general, canvas or not canvas is not the question of this article.
 
 
 
 
 
Anatoli Kazharski:

The last video is the most impressive.

I'll have to do it in MQL...)

 
Dmitry Fedoseev:
With kanvas you will have to redraw all points, and with graphical objects only vertices. In general, it is not the question of this article.

The question of this article is "3D modelling in MQL5".
I agree that this implementation with the help of objects (or rather straight line segments), has some advantages over canvas, if you want to create a surface grid with the number of nodes say up to 10000 (100 x 100 cells), further on include terrible brakes and disproportionate memory consumption, at least, only on the names of objects. I'm not talking about the absence of curved lines, the possibility of colour gradient both in lines and in fills. The main advantage is strict binding to graphics. It is possible that the speed will be higher when the grid size is less than 30*30 (by "eye") (~ 1000 nodes). Perhaps all the advantages end here. You don't calculate all the points in the canvas on a calculator, the class does it all for you. Such a beauty, which Anatoli Kazharski gave as an example, cannot be achieved by such an implementation of 3D-modelling. But if you make an implementation for kanvas, and even apply OpenCL technology, then it is realistic.

A 700 x 700 grid takes about half a minute to display on the screen