Jump to content

Billboards


Gandi
 Share

Recommended Posts

You can just use a corona. I made some kind of starfield with that.

The most simple approach i used for testing was:

 

for (int i = 0; i < 1000; i++)
{
	TCorona NewCorona = CreateCorona (0);
	TVec3 Vec3Temp;
	Vec3Temp.X = 3000.0F - (float)(rand() % 6000); 
	Vec3Temp.Y = 3000.0F - (float)(rand() % 6000);
	Vec3Temp.Z = 3000.0F - (float)(rand() % 6000); 
	PositionEntity (NewCorona, Vec3Temp, 0);
	SetCoronaRadius(NewCorona, 10, 20);
	PaintEntity(NewCorona, LoadMaterial("abstract::Corona_Sun_001.mat"));
	EntityViewRange (NewCorona, 0.0F, 3000.0F, 1);
}

 

This makes a static "starfield", if you use some kind of star corona dds file.

The stars are always rotated towards the camera and the FPS drop is minimal if you son't choose to have thousands :D

(Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...