stevel Posted March 18, 2015 Share Posted March 18, 2015 I have some very old code from the TGE that was a routine in tsShapeInstance that just returned an image of the object as a bitmap on a white background. I find myself needing the same behavior in T3D, and I had thought I would be able to port the old code to the T3D engine, but I am finding that very difficult. Does anyone know of a resource, or if there is some functionality built into the engine that I am missing, that will provide me with this behavior? What I want to be able to accomplish is to specify an object in the 3D engine, and get a snapshot of it that I can display on a dialog. The old routine had width and height args, and specified a camera rotation, so I could spin the object before taking the snapshot if desired. If someone is curious, I could post the old code here. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted March 19, 2015 Share Posted March 19, 2015 Best bet would probably be to dig into the imposter code, (or just snip out a part of one that's generated):http://i.imgur.com/7y5gRBY.jpg Quote Link to comment Share on other sites More sharing options...
stevel Posted September 22, 2016 Author Share Posted September 22, 2016 Thanks Azaezel! Finally got back to this, and I have something using imposter code that is starting to work. I can post the final routine here, once I get it working well, if anyone cares. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.