nwcreate Texture Support

nwcreate Texture Support

chris.wainwright7MX4Y
Participant Participant
501 Views
3 Replies
Message 1 of 4

nwcreate Texture Support

chris.wainwright7MX4Y
Participant
Participant

Our application exports to NWC format from a C++ executable using the nwcreate API. We would like to add texture support, but are finding it difficult as there are no examples of writing textures in the API. We assume we need to use some combination of LcNwcAutodeskMaterial and "connected assets".

 

Is anyone able to provide an example of how to apply a texture to an NWC model using nwcreate?

 

Thanks.

502 Views
3 Replies
Replies (3)
Message 2 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @chris.wainwright7MX4Y ,

 

Could you please take a look at the below link?

https://adndevblog.typepad.com/aec/2012/07/sample-for-texture-of-nwcreate.html 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

chris.wainwright7MX4Y
Participant
Participant

Hi @naveen.kumar.t 

 

Thanks for the reply.

 

I did find this blog post as part of my research, but unfortunately the technique used no longer works - it uses LcNwcPresenterMaterial, which is marked as obsolete in its header file.

OBSOLETE: Presenter functionality is no longer supported.
OBSOLETE: Does nothing.

Just to be safe, I tested building the example project from the blog as-is and whilst I did get an .nwc file from it, it does not include a texture.

0 Likes
Message 4 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @chris.wainwright7MX4Y ,

 

I checked with the Navisworks Engineering team.

 

The Navisworks Engineering team confirmed that the "LcNwcPresenterMaterial" is obsolete. So you can't use it. I asked the engineering team for a workaround. The Engineering team says they are aware of any workarounds to resolve this issue.

 

Sorry for the bad news.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes