Welcome to %s forums

BrainModular Users Forum

Login Register

Simple 2D array with display

Discussions about add-ons, announcements
Post Reply
nelson
Member
Posts: 36
Contact:

Unread post by nelson » 12 Jan 2009, 21:28

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.

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 12 Jan 2009, 22:38

nelson wrote:btw : its possible to use OpenGL or DirectX in user module? if we have window handler .. it should be possible.
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.

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

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 12 Jan 2009, 22:39

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'

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 13 Jan 2009, 11:55

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?

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 13 Jan 2009, 16:10

It work for me, i have VC EXPRESS 2008 installed (NOT SP1).
Martin FLEURENT - Usine Developer - SDK maintainer

nelson
Member
Posts: 36
Contact:

Unread post by nelson » 14 Jan 2009, 02:28

I have updated my addons with static library linking ... i hope so it will be working now...

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 14 Jan 2009, 08:32

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

nelson
Member
Posts: 36
Contact:

Unread post by nelson » 14 Jan 2009, 09:36

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests