Sign in to follow this  
_swx_

Billboard Clouds

Recommended Posts

I've been trying to implement Billboard Clouds, as described in: http://w3imagis.imag.fr/Publications/2003/DDSD03/bc03.pdf http://www.vrvis.at/br1/billboardclouds/TR_VRVis_2004_039_Full.pdf but I'm having some problems following some parts of it, most notably the appendix in bc03.pdf, where they calculate the range [rho_min,rho_max]. rho_plus_minus_ij = VMi.dj +- epsilon . Mi is the vertex and dj is the directional vector of a neighbour, but what is V? Then I'm a little unsure about the calculation of rho_min and rho_max: "We union these ranges on j and intersect them on i, that is rho_min = maximinj(rho_minus_ij) and rho_max = minimaxj(rho_plus_ij). My current rho_min and rho_max calculation looks like:
float rho_minus[3][4];
float rho_plus[3][4];

// Calculate the elements somehow...

float min_values[3] = { rho_minus[0][0], rho_minus[1][0],rho_minus[2][0] },
			max_values[3] = { rho_plus[0][0], rho_plus[1][0], rho_plus[2][0] };
		
for( uint i=0;i<3;++i ) 
{
    for( uint j=1;j<4;++j ) 
    {
	if( rho_minus[i][j] < min_values[i]) min_values[i] = rho_minus[i][j];
	if( rho_plus[i][j] > max_values[i]) max_values[i] = rho_plus[i][j];
    }
}	
rho_min = MAX(MAX(min_values[0],min_values[1]),min_values[2]);
rho_max  = MIN(MIN(max_values[0],max_values[1]),max_values[2]);

Any help is appreciated.

Share this post


Link to post
Share on other sites
Sorry, I'm not actually answering your question.

I had a look at the forest rendering thesis first and then later found MemoryEfficientBillboardCloudsForBTFTexturedObjects.pdf and am currently implementing the hierarchical face clustering approach in the latter (but avoiding the BTFs) - it seems like a better method to me - though it does require calculating OBBs (oriented bounding boxes) which involves PCA (principle component analysis) and possibly calculating 3D convex hulls.

The Hough space approach (in forest rendering thesis) seems to require a bunch of extra measures to avoid using too much texture memory for the billboards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this