0

Billboard dynamic size mode?

Anonymous 6 years ago 0
This discussion was imported from CodePlex

robzhu wrote at 2013-07-17 07:07:

First of all, awesome framework. This is all stuff I wish had been included in WPF. Has anyone come up with an easy way to make a billboard scale in size as the camera moves? (i.e. it still always faces the camera, just that it would grow smaller/larger along with the models around it).

objo wrote at 2013-08-08 16:57:

You find the calculation in BillboardGeometryBuilder.GetPositions.
I think you don't need to transform to/from screen space, so this case will be easier.
Use the camera up direction and look direction to find "up" and "right" vectors for the billboard rectangle. Then scale the unit normals by desired width/height in your world space.

PhilDotC wrote at 2014-04-15 08:45:

Robzhu, did you ever get this working as I am struggling with the same task? If so, what is the trick? Or has anyone any additional help they can post.

objo wrote at 2014-04-29 10:28:

We should create an example. I added https://helixtoolkit.codeplex.com/workitem/10040

aueit wrote at 2014-08-15 18:05:

Did someone resolved this problem? PhilDotC, robzhu? I'm trying to do this for weeks, but I can't understand the calculations inside GetPositions.