Imposter / Billboard generation

Jerky

14-11-2007 07:07:36

I have a question about imposter and/or billboard generation. I know this really doesn't fall under the scope of your addon, but since it will be useful to anyone using this addon, I figured it is okay to ask. What are the preferred methods for generating the imposter texture? Or a billboard for future versions? I know the idea behind it, but is there a canned tool that does this easily that you would recommend?

If not, I am going to try to come up with something, but don't hold your breathe. I've got lots of sinister plans, but I'm still a noob at programming (yes, I've started programming).

JohnJ

14-11-2007 15:54:59

I don't know of any existing standalone tools that generate impostor images, so I can't recommend anything. If you want to make your own tool, just make sure you render all the correct angles just like ImpostorPage does.

The method used to generate impostors is fairly simple. Ogre is used to render the entity to a texture at the various rotations. Orthographic projection isn't technically used, but the camera views the entity from a fairly great distance with a lot of zoom, so a similar effect is achieved. There's not much more to it, except the technical details, all of which you can find by looking at ImpostorTexture::renderTextures() in ImpostorPage.cpp. Let me know if you have any other questions.

Jerky

14-11-2007 17:20:08

Thanks for the answer. I figured as much, but just wanted to be sure. It will be some time before I get to that point, I just wanted to prepare my design (in my head) first.