Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Attempting to compile driver_display_callback

8 ANTWORTEN 8
GELÖST
Antworten
Nachricht 1 von 9
Anonymous
4354 Aufrufe, 8 Antworten

Attempting to compile driver_display_callback

I have this set up in Visual Studio: Display Driver, though when compiling I receive an error that I did not define a `main()` method, from which file in the Arnold SDK do I need to import in order to have this entry point defined?

1899-screenshot-152.png

Tags (1)
Beschriftungen (1)
8 ANTWORTEN 8
Nachricht 2 von 9
maxtarpini
als Antwort auf: Anonymous

Shouldn't you compile a library instead of an exe ?

Nachricht 3 von 9
Anonymous
als Antwort auf: Anonymous

@Max Tarpini

I've tried compiling both a dynamic and standard library - I have no errors now, but it doesn't appear that the display_driver_callback node is being added to Arnold:

`arnold.AiNode("driver_display_callback")` fails with: ERROR | node "driver_display_callback" is not installed

Nachricht 4 von 9
Anonymous
als Antwort auf: Anonymous

Here's the log after compiling `driver_display_callback.cpp`:

1905-screenshot-157.png

Nachricht 5 von 9
maxtarpini
als Antwort auf: Anonymous

Ok so a dll is good :leicht_lächelndes_Gesicht: btw don't forget to compile it in Release mode at some point with ProjectProperty -> C/C++ -> Optimization set to at least O2. Then before you can use it .. you need to let Arnold source your library with ie from kick cli .. -l "pathtomylib"

Nachricht 6 von 9
Anonymous
als Antwort auf: Anonymous

@Max Tarpini I got this:

C:\Users\tyler\source\repos\driver_display_callback\x64\Release>kickArnold 5.1.1.0 [e338d869] windows icc-17.0.2 oiio-1.7.17 osl-1.9.0 vdb-4.0.0 clm-1.0.3.513 rlm-12.2.2 2018/05/23 00:19:24kick: No arguments. Try kick --help for a command summary
Nachricht 7 von 9
Anonymous
als Antwort auf: Anonymous

I'm still getting this issue:

arnold.AiNode("driver_display_callback") fails with: ERROR | node "driver_display_callback" is not installed

Nachricht 8 von 9
Anonymous
als Antwort auf: Anonymous

I do see this though:

loading plugins from C:\Users\tyler\source\repos\driver_display_callback\x64\Release\ driver_display_callback  driver

Still not sure how I can use it with `arnold.AiNode("driver_display_callback")` though.. hmm..

Nachricht 9 von 9
Anonymous
als Antwort auf: Anonymous

@Max Tarpini Alright I think I finally got it, I just dragged the .dll file into the

`Arnold-5.1.1.0-windows\plugins` folder, and finally it appears that it can find this display driver, now I have to try and call it's method, it appears this method does not exist, any idea how to get access to the node's method?

`cb = arnold.DriverDisplayCallbackMtd(_callback)`
`arnold.AiNodeSetPtr(driver, "callback", cb)`

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report