Page 1 of 1

Custom .spr

Posted: Sun Jun 26, 2005 5:07 pm
by agentmad007
Hello

Image

I tried to alter the oceanspray.spr , but i cant get it work ....a Big white square appear on screen instead of the small effects i wanted to.

In a folder models/animate i got that :

Code: Select all

TIKI
setup
{
	scale 1.0
	path models/fx/dummy
	skelmodel dummy3.skd
}
 
init
{
	server  
	{
		classname effectentity
		notsolid
		rendereffects +dontdraw
	}
	client
	{

		//**********************
		cache bond_spray_bluea.spr
		//**********************

	}
}

animations
{
	idle dummy3.skc

	start dummy3.skc
	{
		server
		{
			last commanddelay 1 anim idle
		}

		client
		{
			//*****************
			//sound played here
			//*****************
				
				enter originspawn
			(
				spawnrate 0.00
				model bond_spray_bluea.spr

				count 1
				alpha 0.90
				color .8 .8 1

				scale 3.2
				life 1.09
				scalerate .2
				velocity 100.00
				friction 48

			)


		}
	}
}

//************************************
//***        IMPORTANT
//***     RENAME THE QUAKE-ED COMMENT
//***     IN CONJUNCTION WITH THE
//***  LD ENTITY MENU LAYOUT.DOC
//***   UP IN SOURCE SAFE!!!!!!!!!!!!
//************************************

/*QUAKED animate_fx_gatespray (0.0 0.5 0.5) (-8 -8 -8) (8 8 8)
description of effect to appear in entity dialog
*/
scripts/bond_effects.shader

Code: Select all

bond_spray_bluea
{
	cull none
	{
		map textures/bond_effects/bond_spray_bluea.tga
		blendFunc GL_ONE GL_ONE
		alphaGen vertex
		rgbGen vertex

	}
}
textures/bond_effects ==> the bond_spray_bluea.tga wich is the edited oceanspray.tga

I also tried with the oceanspray.tga and i still got this big bloody square

Any ideas ?

Thank you

Posted: Sun Jun 26, 2005 6:51 pm
by jv_map
Try it with a smaller scale value?

You now have 3.2 which might be rather big :?

Posted: Sun Jun 26, 2005 7:23 pm
by agentmad007
There is nothing related with the scale even if i tried by curiosity though.Modifying the scale just bring a smaller blank square.

when i try the original oceanspray.spr it works fine.....
:oops:

Posted: Sun Jun 26, 2005 8:09 pm
by Elgan
maybe the tga is in the wrong mode or wrong scale or something.

try just displaying the tga on a menu or whatever to see if it works:S

alpha

Posted: Sun Jun 26, 2005 9:17 pm
by tltrude
Perhaps there is a missing alpha channel for your new tga.

Posted: Sun Jun 26, 2005 9:38 pm
by agentmad007
All the tga are in the right scale and they all have the right alpha channel, i checked them out again.I even tested individually each tga with the original spr and they worked properly.


SO the problem come out when i am using a custom .spr (the one above in other words)......

Wonder if whe can do custom spr.....cause i think i did everything the right way.

Posted: Sun Jun 26, 2005 9:49 pm
by Elgan
im sure i used a custom.spr once..or maybe i had probs. rememebr tryign alot fo things. that was just for a shrink ray outa a gun. wanted a blob thing.

but in the end a got a floating blob thing, canbt u just model to a tga or somthign instead?


in the right folder?

tried without .spr on the end?