About Plugin import in customer program

Questions related to plugins development
Post Reply
kasper
Posts: 29
Joined: Thu May 17, 2018 6:13 am

About Plugin import in customer program

Post 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
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: About Plugin import in customer program

Post 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).
Daniel, CloudCompare admin
kasper
Posts: 29
Joined: Thu May 17, 2018 6:13 am

Re: About Plugin import in customer program

Post 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.
kasper
Posts: 29
Joined: Thu May 17, 2018 6:13 am

Re: About Plugin import in customer program

Post 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.
kasper
Posts: 29
Joined: Thu May 17, 2018 6:13 am

Re: About Plugin import in customer program

Post 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?
Post Reply