   Directx mesh tags
  How can I tag a certain location on a model in 3dsmax, export it with panda, then get access to a vector pointing to that tagged location in directx?For example, I want to put tags on a ship model for where the lasers should be emitted from, or where an engine trail should start, and then get vectors for those tags in directx in order to position those elements.   
  Hi there.If it was me I would place a small quad at the location you want it on your model, and then export the whole lot as a mesh with frames.you will also want to name it say something like this(enginetrailStart).Then when you load your .X file(Pander exporter) you can find that frame by its name then store that frame somewhere, then you can use this to get your vector,this way it is allway's transformed with your model.   ;Quote:Original post by FordPrefectAHow can I tag a certain location on a model in 3dsmax, export it with panda, then get access to a vector pointing to that tagged location in directx?For example, I want to put tags on a ship model for where the lasers should be emitted from, or where an engine trail should start, and then get vectors for those tags in directx in order to position those elements.you can get get access to the meshs vertices by locking Vertex and Index Buffers ;Quote:Original post by ankhdHi there.If it was me I would place a small quad at the location you want it on your model, and then export the whole lot as a mesh with frames.you will also want to name it say something like this(enginetrailStart).Then when you load your .X file(Pander exporter) you can find that frame by its name then store that frame somewhere, then you can use this to get your vector,this way it is allway's transformed with your model.Thanks, I'll try that.Quote:Original post by AnddosQuote:Original post by FordPrefectAHow can I tag a certain location on a model in 3dsmax, export it with panda, then get access to a vector pointing to that tagged location in directx?For example, I want to put tags on a ship model for where the lasers should be emitted from, or where an engine trail should start, and then get vectors for those tags in directx in order to position those elements.you can get get access to the meshs vertices by locking Vertex and Index BuffersHow would I know which is the tagged one?   