Page 1 of 1

About Plugin import in customer program

Posted: Mon Sep 10, 2018 1:49 am
by kasper
I want to add the plugin "qEDL" or others in my program. (c++ code)

but I have no idea to start the operation with a plugin.

what should I do ?

Is anyone know how to achieve my goal? any step tutorial, example or help.

its a big problem to me ..... thanks

Re: About Plugin import in customer program

Posted: Mon Sep 10, 2018 7:53 pm
by daniel
If it's outside of CloudCompare, I doubt you'll be able to use the plugin 'as is'. However the qEDL plugin is actually just an (advanced) shader. So you should extract the 'shader' part out of it (see the ccEDLFilter class).

Re: About Plugin import in customer program

Posted: Thu Sep 13, 2018 3:08 am
by kasper
Sorry , Daniel. I do not understand how to extract the "shader",

I can just get the ccEDLfilter and set " m_glWindow->setGlFilter(edlFilter);"

but it seems not working at all.

Can you explain more detail about this?

I would appreciate it if you could sort out my question.

Re: About Plugin import in customer program

Posted: Thu Sep 13, 2018 8:03 am
by kasper
Maybe I misunderstood the way of using plugins.

I want to know if I need a feature in one of plugins, what should I really do.

add something in my program? or some files?

I'd never used any plugin before. Hope there are some detailed description.

Thanks for reading me.

Re: About Plugin import in customer program

Posted: Thu Oct 11, 2018 7:35 am
by kasper
I added QEDL_PLUGIN.lib/.dll in my project and used ccEDLFilter class.

ccEDLFilter* edl = new ccEDLFilter();
edl->setLightDir(X,X);
edl->setStrength(X);
m_glWindow_->setGlFilter(edl);

That's all I can do now, but it doesnt work.
I want to use this plugin very much, can anyone provide me some suggestion?