Questions/Suggestions for C++ API

Use this forum for discussions specifically related to the Krakatoa SR C++ API.
For discussion of topics applicable to both the C++ and Py APIs, please use the parent forum.
User avatar
Conrad Wiebe
Posts: 777
Joined: Wed Aug 15, 2007 12:24 pm
Location: Thinkbox Software

Re: Questions/Suggestions for C++ API

Postby Conrad Wiebe » Wed Mar 20, 2013 2:29 pm

jamesvecore wrote:I'm currently integrating with Softimage and I don't have any way to capture stdout generically from a C++ plugin. Even if I could, I imagine I might get other non-krakatoa output along with it. I would really love to have a message logging interface so I re-direct this output back to the softimage console or custom log for the user (just like the 3dsmax log).

This is an excellent idea that I overlooked. I am working on a logging interface. It will be in the next release. It looks like this:

Code: Select all

class logging_interface {
public:
   virtual ~logging_interface();
   virtual void write_log_line( const char* line, logging_level_t level ) = 0;
};
void set_global_logging_level( logging_level_t level );
void set_global_logging_interface( logging_interface* logger );

And you would be able to implement your own write_log_line function that would get all the logging messages sent to it. Does that sounds good?


jamesvecore wrote:krakatoasr::shader_schlick::use_phane_eccentricity_channel
should be
krakatoasr::shader_schlick::use_phase_eccentricity_channel
just a typo.

All fixed! Thanks for pointing that out. I probably needed more coffee when I was writing that file :)
Conrad Wiebe
Software Development Manager
Thinkbox Software

jamesvecore
Posts: 18
Joined: Fri Mar 23, 2012 12:36 pm

Re: Questions/Suggestions for C++ API

Postby jamesvecore » Wed Mar 20, 2013 2:44 pm

Perfect, that is exactly what I was looking for.

Thanks!

User avatar
Conrad Wiebe
Posts: 777
Joined: Wed Aug 15, 2007 12:24 pm
Location: Thinkbox Software

Re: Questions/Suggestions for C++ API

Postby Conrad Wiebe » Tue Apr 16, 2013 2:06 pm

Hi James,
In the latest build, I incorporated a few of your requests.
- The user can now capture all log messages via a logging interface.
- I changed the typo in "use_phane_eccentricity_channel".

Thanks for the feedback!

See: viewtopic.php?f=166&t=9473
Conrad Wiebe
Software Development Manager
Thinkbox Software

jamesvecore
Posts: 18
Joined: Fri Mar 23, 2012 12:36 pm

Re: Questions/Suggestions for C++ API

Postby jamesvecore » Tue Apr 16, 2013 2:08 pm

Thanks! that is exactly what I was looking for.

-James


Return to “Krakatoa SR C++ API”

Who is online

Users browsing this forum: No registered users and 1 guest