Simple 2D array with display
Hi all
i have just uploaded Simple 2D array - it's in Data Tools
max dimmensions: 512x512 - but display shows only 64x64 max in this version - windows GDI is too slow to draw such a amound of rectangles in realtime ...
btw : its possible to use OpenGL or DirectX in user module? if we have window handler .. it should be possible.
i have just uploaded Simple 2D array - it's in Data Tools
max dimmensions: 512x512 - but display shows only 64x64 max in this version - windows GDI is too slow to draw such a amound of rectangles in realtime ...
btw : its possible to use OpenGL or DirectX in user module? if we have window handler .. it should be possible.
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
Without the window handle, it should be possible, at least, to make what you want on an OpenGL or DirectX texture and copy this texture to the DC of the user module. not tried, but normally, it work.nelson wrote:btw : its possible to use OpenGL or DirectX in user module? if we have window handler .. it should be possible.
here a link with code that do this in a vst plugin, so should have all what you need.
http://www.niallmoody.com/ndcplugs/vstgl.htm
hope it help.
Martin FLEURENT - Usine Developer - SDK maintainer
Gdiplus is, by default, included in the package of usine.
OpenGL or directx are not.
It's not a pb to use it but the final user has to install packages separately. So you can add an installation note in the documentation like 'you must have DirectX installed on your system'
OpenGL or directx are not.
It's not a pb to use it but the final user has to install packages separately. So you can add an installation note in the documentation like 'you must have DirectX installed on your system'
Olivier Sens
www.brainmodular.com
www.brainmodular.com
this user module doesn't work even if the Microsoft Visual C++ 2008 SP1 Redistributable Package is installed on my systems.
what library do you use?
what library do you use?
Olivier Sens
www.brainmodular.com
www.brainmodular.com
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
It work for me, i have VC EXPRESS 2008 installed (NOT SP1).
Martin FLEURENT - Usine Developer - SDK maintainer
I have updated my addons with static library linking ... i hope so it will be working now...
yes works perfect now!
great job.
I think that it can be a master piece because a matrix display is really missing in usine.
I have a couple of suggestions.
- there is two versions of this add-on. The old one has to be deleted ?
- you should create a small help or explanation (the wiki link) and an example patch could be helpful too?
- since it's a visual module, a picture can be uploaded ?
- the size, and X,Y fader should be with a logarithm scale?
- you have created a layout but it doesn't work; for example changing the border color has no effect. normal?
senso
great job.
I think that it can be a master piece because a matrix display is really missing in usine.
I have a couple of suggestions.
- there is two versions of this add-on. The old one has to be deleted ?
- you should create a small help or explanation (the wiki link) and an example patch could be helpful too?
- since it's a visual module, a picture can be uploaded ?
- the size, and X,Y fader should be with a logarithm scale?
- you have created a layout but it doesn't work; for example changing the border color has no effect. normal?
senso
Olivier Sens
www.brainmodular.com
www.brainmodular.com
ok, I will try to improve it, thnx for sugestions ...
but I have read in many places in internet that in fact GDI+ isnt hardware accelerated... and ... its not faster than standard GDI. i cant use high level drawing methods like FillRectangle if they are called in long loop - only pixel operation on bitmap are fast enough... but also not for real time redrawing of 512x512 pixels
.... I know there is no need to redraw whole bitmap in real time but its not good... I wonder .. maybe direct2D? I have used it some time ago and was realy fast.
but I have read in many places in internet that in fact GDI+ isnt hardware accelerated... and ... its not faster than standard GDI. i cant use high level drawing methods like FillRectangle if they are called in long loop - only pixel operation on bitmap are fast enough... but also not for real time redrawing of 512x512 pixels
Who is online
Users browsing this forum: No registered users and 30 guests
