Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

VanKurt

Right cam/object setup for rendering impostors

This topic is 5380 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there! Until now I created impostors in a fast/dirty way, which looked OK. But now I want to do that the RIGHT way! What I did so far was to place the camera some units away from the object, render it to texture and then put that onto an axial-bilboard. The problem here is that the original object and the pre-rendered one don''t look the same; the bilboard-image is a little diplaced/stretched etc... So I''d like to know more about the way the camera and the object have to be placed/orientated when rendering the texture. I''m also not quite sure what size (X/Y) the billboard should have later on. And: are these settings object-dependend? Or have they to be calculated for every object? Thanks for your help!!!

Share this post


Link to post
Share on other sites
Advertisement
Maybe I explained the problem not clearly enough?

Lets say I have a camera (Position, LookAt-vector etc.) and an object (vertex cloud, bounding box etc.). And now I want to exchange the "real" object by a impostor (billboard).
What is the right setup for this render-to-texture-scene?

Where do I have to place the camera, where the object? How do I have to orientate the camera? And how big has the billboard-quad to be?

And can I use these settings for every object, or is there a formula to calculate these things (for every object) ???

Thanks for your help!

Share this post


Link to post
Share on other sites
Allright. If nobody knows an answer, then maybe someone got a link to a paper or something? I didn''t find a good one on this topic...

Share this post


Link to post
Share on other sites
Just orient the model with the camera looking straight at it, do the render, then use that as your texture for the billboard. You shouldn''t have distortions if you did your calculations right..

Share this post


Link to post
Share on other sites
I don''t think that that''s so simple! (Or is it???)

I have to place the camera near the object, so that the obj. covers the whole screen when rendering the texture. But I don''t kwo how exactly...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!