Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-05 Thread gonderici
Dan Eicher writes:

 Did you add your new files to cmake/scons so they get compiled  linked?
 
 Dan


Hi 

Is there any chance that the registering the new nodes goes through some old 
system of nodes? I can now compile without any errors however(maybe 
naturally) my node does not show up in the nodes in Blender. So I am 
suspecting that I am not able to register this new node in the system 
properly.

k


___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-05 Thread Troy Sobotka
 Is there any chance that the registering the new nodes goes through some old
 system of nodes? I can now compile without any errors however(maybe
 naturally) my node does not show up in the nodes in Blender. So I am
 suspecting that I am not able to register this new node in the system
 properly.

I wrote a wiki page on a minimal node tutorial here:
http://wiki.blender.org/index.php/User:Sobotka/Misc/Minimal_Node_Tutorial

There is a minimal node-skeleton branch here:
https://github.com/sobotka/blender/tree/node-skeleton

Hope that helps someone a little...
TJS
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-05 Thread kk
On Dec 5, 2012 6:56:54 PM, Troy Sobotka wrote:
  Is there any chance that the registering the new nodes goes through some old
  system of nodes? I can now compile without any errors however(maybe
  naturally) my node does not show up in the nodes in Blender. So I am
  suspecting that I am not able to register this new node in the system
  properly.
 
 I wrote a wiki page on a minimal node tutorial here:
 http://wiki.blender.org/index.php/User:Sobotka/Misc/Minimal_Node_Tutorial
 
 There is a minimal node-skeleton branch here:
 https://github.com/sobotka/blender/tree/node-skeleton
 
 Hope that helps someone a little...
 TJS



Hi Troy

Thanks for the reply. This is better than what I could have hoped for. I wish I 
saw it couple days ago but in any case this is great. The old node coding page 
is obsolete so was little help to me.

k
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


[Bf-committers] Writing a Compositor node plugin?

2012-12-03 Thread Kursad Karatas
Hi

I am trying to create a Compositor node. It seems like there is the new 
Compositor engine requires a bit of different wiring. So I looked around 
and used the GammaNode as an example. I believe I covered as much ground 
as possible however I am getting an error


Linking CXX executable ..\..\bin\blender.exe
Creating library file: ..\..\bin\libblender.dll.a
..\..\lib\libbf_compositor.a(COM_Converter.cpp.obj):COM_Converter.cpp:(.text+0x1fd):
 
undefined reference to `LinearNode::LinearNode(bNode*)'
collect2: ld returned 1 exit status

I am wondering about the prerequisites for successful creation of a 
compositor node. Here are the files that I have created and edited

BKE_node.h
 #define CMP_NODE_LINEAR274

COM_Converter.cpp
  case CMP_NODE_LINEAR:
  node = new LinearNode(b_node);
   break;

Nodes (based on GammaNode)
 COM_LinearNode.cpp
 COM_LinearNode.h

Operations (based on GammaOperation)
 COM_LinearOperation.cpp
 COM_LinearOperation.h

If that is all to it then it must be something my new files. However at 
this point I am not sure where the issue could be.

thanks

k
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-03 Thread Dan Eicher
Did you add your new files to cmake/scons so they get compiled  linked?

Dan
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-03 Thread Dalai Felinto
Get the diff for the commit of the Map Range node. This is also a simple
node added recently from scratch into the new compositor.

If that doesn't help upload a full diff somewhere (pasteall.org, pastebin
...) and post it here (remember to `svn add` the new files before).

Cheers,
Dalai
 On Dec 4, 2012 7:31 AM, Dan Eicher d...@trollwerks.org wrote:

 Did you add your new files to cmake/scons so they get compiled  linked?

 Dan
 ___
 Bf-committers mailing list
 Bf-committers@blender.org
 http://lists.blender.org/mailman/listinfo/bf-committers

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] Writing a Compositor node plugin?

2012-12-03 Thread gonderici
Dalai Felinto writes:

 Get the diff for the commit of the Map Range node. This is also a simple
 node added recently from scratch into the new compositor.
 
 If that doesn't help upload a full diff somewhere (pasteall.org, pastebin
 ...) and post it here (remember to `svn add` the new files before).
 
 Cheers,
 Dalai
  On Dec 4, 2012 7:31 AM, Dan Eicher d...@trollwerks.org wrote:
 
 Did you add your new files to cmake/scons so they get compiled  linked?

 Dan


@Dalai,
Thanks for the pointers. I will check that out.


@Dan,
I am using Cmake with MinGW on Windows. And I am a complete noob with Cmake 
although I have started studying it however I do not have a quick idea about 
which files are needed for successful compilation. Do you know which Cmake 
files are intended when adding new node? Meanwhile a plugin system would be 
much better I guess at some point.  

thanks

k
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers