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: Simple projectile skinning using imposters  (Read 3766 times)

« on: September 19, 2009, 02:24:16 PM »
Nothing big, just a small script to skin projectiles instead of the default ball/rb, have fun :)

///Link skinmesh as OBJ_0
///Link all projectiles as OBJ_22 ..... OBJ_N


int tot;

void Main()
{
   if (iInitializing())
   {
      tot=iObjectHandle(-1)-1;
      iObjectImpostersCreate(OBJ_0,tot);
   } 
   ///mainloop
   
   for (int i=0;i<tot;i++)
   {
        Vector3 pLoc;
        iObjectLocation(iObjectHandle(i+1),pLoc);
        iObjectImposterSet(OBJ_0,i,Quaternion(0,0,0,1),pLoc);
   }
}

« Last Edit: September 19, 2009, 02:27:28 PM by shadmar »
« Reply #1 on: September 20, 2009, 07:12:15 AM »
Works perfect shadmar  ;)
FPS game creator for 3drad and >2000 games GamesAtNight
« Reply #2 on: September 21, 2009, 12:49:53 PM »
Here is a vid of the script in action using fake lensflares skin and fire on impact :)

http://www.youtube.com/watch?v=V4kFOcEzT1A&fmt=18

Fires will be able to burn on impact without stop when this bug is fixed :)

« Last Edit: September 25, 2009, 09:42:03 AM by shadmar »
« Reply #3 on: September 23, 2009, 04:47:07 PM »
do you think you can attach a pointlight too (  I Know we are maxxed @ 4 ) but it will light up the terrain and look like dynamic lightning !
Look into my eyes , Tell me what you see
You don't see a damn thing , 'cause you can't relate to me
You're blinded by our differences , My life makes no sense to you
I'm the persecuted one , You're the red, white and blue
« Reply #4 on: September 24, 2009, 01:24:33 AM »
Thats wicked!
« Reply #5 on: September 24, 2009, 02:06:33 AM »
Very nice  :). The patch for the Projectile bug is confirmed to be included to the October 2009 update.
« Reply #6 on: September 24, 2009, 09:29:42 AM »
yeah... figuring some way to have some point lights follow some of the 'fireballs' would add a lot to the effect...

Yeah good idea :)

Very nice  :). The patch for the Projectile bug is confirmed to be included to the October 2009 update.

Thanks, I can upload a small resource for this then :)

« Reply #7 on: September 25, 2009, 12:06:23 AM »
Added an array of 4 pointlights some smoke and soundfx :)

http://www.youtube.com/watch?v=YpzLYVJGIxM&fmt=22


« Last Edit: September 25, 2009, 09:39:44 AM by shadmar »
« Reply #8 on: September 25, 2009, 12:34:05 AM »
wow! SCARY!!  ;D
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #9 on: September 25, 2009, 12:41:20 AM »
Awesome!  What did you use to bump your terrain?
« Reply #10 on: September 25, 2009, 02:09:19 AM »
Stunning Shad!! :)
« Reply #11 on: September 25, 2009, 04:53:03 AM »
Awesome!  What did you use to bump your terrain?

It's the default 3drad terrain + a transparent uv-repeated bumped skinmesh mixed using a stone texture. Basicly copied the default terrain changed the uvmap and applied a seamless repeated stone texture + normalmap and imported as skinmesh, placed over the terrain and mixed using the shadow mode on the bump-shader.
« Last Edit: September 25, 2009, 04:55:01 AM by shadmar »
« Reply #12 on: September 30, 2009, 06:27:20 AM »
that is cool!
Pages: [1]