Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday

Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday

14.07.2015 Views

Tips and TricksUse IDirect3DStateBlock9 cautiously Max can ask an object to be drawn various times, and this canbe a resource hog.Do the actual drawing in the IDX9VerterShader::Initialize()methods Simplifies the multi material supportKeep DrawMeshStrips simple – just return True/FalseOnly support Mesh objects – keeps code simple. Use MNMesh::OutToTri()Use GetCOREInterface()->GetTime(), not TimeValue t = 0 Prevents unwanted evaluations of the modifier stackManage your resources, and RenderStates !! 3ds max is easy to upset – typically you loose the viewportnames or transparency settings. Typically DESTBLEND and SRCBLENDIntegrating DirectX Shaders in 3ds MaxA Developer's Perspective 20© 2005 Autodesk

3ds max resourcesSparks Support Program http://sparks.discreet.com Debug builds of max Advanced beta exposure Knowledge baseMe!! neil.hazzard@autodesk.comIntegrating DirectX Shaders in 3ds MaxA Developer's Perspective 21© 2005 Autodesk

Tips and TricksUse IDirect3DStateBlock9 cautiously <strong>Max</strong> can ask an object to be drawn various times, and this canbe a resource hog.Do the actual draw<strong>in</strong>g <strong>in</strong> the IDX9VerterShader::Initialize()methods Simplifies the multi material supportKeep DrawMeshStrips simple – just return True/FalseOnly support Mesh objects – keeps code simple. Use MNMesh::OutToTri()Use GetCOREInterface()->GetTime(), not TimeValue t = 0 Prevents unwanted evaluations of the modifier stackManage your resources, and RenderStates !! <strong>3ds</strong> max is easy to upset – typically you loose the viewportnames or transparency sett<strong>in</strong>gs. Typically DESTBLEND and SRCBLEND<strong>Integrat<strong>in</strong>g</strong> <strong>DirectX</strong> <strong>Shaders</strong> <strong>in</strong> <strong>3ds</strong> <strong>Max</strong>A <strong>Developer's</strong> Perspective 20© 2005 Autodesk

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!