[Bf-cycles] Learning about custom render engine integration into Blender using Cycles sources

Sylvain Meunier sylvain.meunier at gmail.com
Sun Jun 18 21:26:02 CEST 2017


I want to integrate my engine in Blender and the integration must be fast.
I'm almost sure adding some python to glue between blender and my engine
will be fast enough (probably too much data conversions).

I already wrote an export addon using the python API but it wasn't
interactive enough.

Is it hard to maintain a non official internal addon ? I mean, I could fork
Blender, integrate my engine and keep Blender updated on a monthly or
weekly basis.

2017-06-18 2:38 GMT+02:00 Brecht Van Lommel <brechtvanlommel at pandora.be>:

> The start page for code docs is here:
> https://wiki.blender.org/index.php/Dev:Source/Architecture
>
> However if you are writing an addon it's really the Python API docs that
> you need:
> https://docs.blender.org/api/current/
>
> Cycles is linked directly into Blender and has access to a C++ versions of
> the Python API, and the C++ API is not available to external addons. But
> they are exactly the same besides the language, and the documentation
> applies to both.
>
>
> On Sat, Jun 17, 2017 at 10:42 PM, Sylvain Meunier <
> sylvain.meunier at gmail.com> wrote:
>
>> Hi and thanks !
>>
>> I started digging in Cycles sources and found the blender_python.cpp
>> module.
>>
>> Is there more documentation about Blender data than :
>> https://wiki.blender.org/index.php/Dev:2.5/Source/Architecture/DataAPI ?
>>
>> Best regards
>>
>> Sylvain
>>
>> 2017-06-17 18:13 GMT+02:00 Brecht Van Lommel <brechtvanlommel at pandora.be>
>> :
>>
>>> Hi,
>>>
>>> There's an example of a custom render engine in the documentation here.
>>> https://docs.blender.org/api/current/bpy.types.RenderEngine.html
>>>
>>> In general for renderer integration most of the Python API is the same
>>> as other types of addons. There's also lots of renderer addons out there
>>> where you can look at the code for inspiration.
>>>
>>> Regards,
>>> Brecht.
>>>
>>>
>>> On Fri, Jun 16, 2017 at 4:39 PM, Sylvain Meunier <
>>> sylvain.meunier at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> I really love how Cycles is integrated into Blender and I want to
>>>> achieve something similar with my own toy engine (not a path tracer though).
>>>>
>>>> I'm looking for entry points in Cycles sources and interesting links to
>>>> documentations.
>>>>
>>>> Best regards
>>>>
>>>> Sylvain
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Bf-cycles mailing list
>>>> Bf-cycles at blender.org
>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Bf-cycles mailing list
>>> Bf-cycles at blender.org
>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>
>>>
>>
>> _______________________________________________
>> Bf-cycles mailing list
>> Bf-cycles at blender.org
>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>
>>
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> https://lists.blender.org/mailman/listinfo/bf-cycles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20170618/4b58ae0b/attachment.htm 


More information about the Bf-cycles mailing list