Face Camera for groups of surfaces

unhandled

#1

I have been using the Face Camera script - found here for a while for billboards (tree pngs for example). Single surfaces work fine but is there a way for groups of surfaces to be orientated in the same manner?

See below for an example of the problem.


(Pascal Golay) #2

Hmm - I’ll have to think about that one - I suppose if the pieces are coplanar, and preferably grouped, it may be OK to rotate them together. I’ll take a look. For arbitrary selections though, it gets more complicated as there may not be am easily extractable plane from the objects so you’d need to ask the user or something…

-Pascal


#4

i like…very cool script.

Thanks for sharing it!

Eike


#5

Here is a version of @Pascal’s script modified to work with the groups. It will be up to you to make sure the objects in groups are coplanar and all of your billboards are grouped properly…

FaceCameraGroups.rvb (5.7 KB)

The easier way about it (and making the files lighter) would be to make your billboards into blocks and modify the script to work with blocks (and planar objects inside blocks) - if your libraries were prepared like that it could be a more elegant solution…

hth,

–jarek


(Pascal Golay) #6

@Jarek - merci!

-Pascal


#8

Amazing, thanks Jarek!

Would it be complex to adapt this script for blocks?


#9

Benjamin,

I made a version of the original @pascal’s script that will also allow you to use blocks (but not groups). It will use a random planar object from inside of your block for orientation, so again, up to you to use it with proper block instances. It is much faster and cleaner than groups. So with this one you can use a mix of surf, polysurf, meshes and blocks that contain any of the 3 (surf, polysurf and mesh).

FaceCameraBlocks.rvb (4.2 KB)

hth,

–jarek


#10

Also nice old scripts are this - one for defining “face me” objects and one for aligning to camera. Advantage: the align command can be used during rendering an animation per bong and _BongoBonusToolForEachFrame.


(Przemysław Doliwa) #11

@pascal Guys this is interesting why we couldn’t have auto facing picture to camera?

This is already done in Text. Horizontal to view checkbox launches exacly that behaviour why not to bring this option also for this kind of stuff?


#12

Forgot to thank you for this script. Just dug it out again, very useful!

Cheers