Message 1 of 1
Crash in Maya while using custom DX11 shader in Mayabatch

Not applicable
04-28-2017
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
We are trying to create objects in mayabatch.
and Applying our custom directx11 shader.
Our Directx11 shader is based on the sample that is given with the DevKit.
First of all, loading the
ourcustomShader_defaults.mel which is nearly a copy of dx11Shader_defaults.mel create a lot of
Snippet
$gAEAttrPresetCurrentTarget
is not defined
Then when I tried to load ou cusotm shader, our new maps are not loaded.
And then it makes mayabatch crash in the renderer :
ntdll.dll!KiUserExceptionDispatcher ntdll.dll!RtlpUnWaitCriticalSection ntdll.dll!RtlEnterCriticalSection ntdll.dll!RtlEnterCriticalSection D3D11.dll!D3D11CoreCreateDevice OGSDevices-16.dll!OGS::Devices::IDeviceResource::ReleaseRef OGSDevices-16.dll!OGS::Devices::EffectBufferHashMap::ClearAll OGSDevices-16.dll!OGS::Devices::EffectCache::~EffectCache OGSDevices-16.dll!OGS::Devices::EffectCache::Count OGSDevices-16.dll!OGS::Devices::ACacheManager::~ACacheManager OGSDeviceDx11-16.dll!OGSInitialize OGSDevices-16.dll!OGS::Devices::Sys::Shutdown OGSRender.dll!OGSRenderer::uninitializeOGSDevice OGSRender.dll!OGSRenderer::~OGSRenderer OGSMayaBridge.dll!OGS::Objects::_ListBase<OGSMayaVertexBufferMutator * __ptr64,OGS::Objects::RefCountedLifetime<OGSMayaVertexBufferMutator * __ptr64> >::operator[] OGSMayaBridge.dll!OGSMayaBridge::clearOGSMayaRenderer OGSMayaBridge.dll!OGSMayaBridge::~OGSMayaBridge OGSMayaBridge.dll!OGSMayaBridge::Destroy mayabatch.exe!TiteratorWrapperFwd<TmultiIndexDependNodeSet::NodesOfTypeConstIteratorDescriptor,TiteratorWrapper<TmultiIndexDependNodeSet::NodesOfTypeConstIteratorDescriptor> >::operator= mayabatch.exe!TiteratorWrapperBidir<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator= KERNEL32.DLL!BaseThreadInitThunk ntdll.dll!RtlUserThreadStart
If we use the Maya DirectX11 shader, everything is working fine.
So :
- is there any option in MayaBatch to load custom directX11 shader?
- what could cause the renderer to crash in mayaBatch?
I am working in Maya 2017 sp3 on Windows 10