Gandi Posted February 11, 2010 Share Posted February 11, 2010 Hi! i want to create a plane, which is billboarded (rotating around its center) but i just dont get it to work is there any material / shader which does that for me? does it even work if a plane i created with CreatePlane() ? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 11, 2010 Share Posted February 11, 2010 Does the plane have a materail attached to it? otherwise you can't see it. Quote Link to comment Share on other sites More sharing options...
DaDonik Posted February 11, 2010 Share Posted February 11, 2010 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 Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
Gandi Posted February 15, 2010 Author Share Posted February 15, 2010 Thanks a lot Gandi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.