3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Atmosphere effect by using reversed goalarrow_plugin  (Read 1935 times)

« on: September 14, 2009, 10:27:43 AM »
I've struggled for a while to create an atmospheric glow on a planet, I've tried all from background sprites to extra semi-transparent spheres, but it never gets right,

But... I just realized the goal arrow plugin ( http://www.3drad.com/forum/index.php?topic=1620.msg11689#msg11689 ) , if reversed can be used to create a full 3d billboard not just vertical or horizontal. By reversed I mean having a plane with transparent blurred texture always facing the camera. Why didn't I think of that earlier, ive been "thinking" for months...  well here is a screen, now you can make all sorts of stuff glow (as long as its a sphere  ;D ;D )


:)


« Reply #1 on: September 14, 2009, 02:03:04 PM »
This is all you need, just make sure your plane is exported correctly so it faces the way you want. (not backfaces showing or the side of it) :)

//OBJ_44=Skinmesh
//OBJ_22=Camchase


void Main()
{

   Vector3 locationA;
   Vector3 locationB;
   Quaternion orientation;

   iObjectLocation(OBJ_44,locationA);
   iObjectLocation(OBJ_22,locationB);

   iQuaternionLookAt(orientation,locationA-locationB,Vector3(0,1,0));
   iObjectOrientationSet(OBJ_44,orientation);
}
« Reply #2 on: September 14, 2009, 02:06:53 PM »
Hi Shad,
Looks like a whole planet of that mud shot you posted on a previous thread  ;)

I've got a transporter pod (a sphere) in my game that I'm using (expensive) particles to make glow and wondered if I could use this technique instead.

Could you explain in a little more detail how you do it ? For the moment I cannot see the connection with the goal arrow demo - (that may caused by a small excess of Gin and Tonics this evening though)

Thanks

« Reply #3 on: September 14, 2009, 02:30:50 PM »
Here's the project files, unrar into 3drad folder, contains the script, planet, atmosphere glow, skybox and a ship, feel free to use for any purpose. :)
« Reply #4 on: September 14, 2009, 04:03:37 PM »
Thanks Shadmar. Its too late now, but I'll check it out tomorrow evening. Thanks again ;) 
Pages: [1]