Results 1 to 5 of 5

Thread: Screwy sprites

  1. #1

    Default Screwy sprites

    G'day folks,
    I wasn't sure to post this here or under the "Mapping" forum but I guess it's texture related as are "skins".

    I have cropped some tufts of grass and they look great in game but I'd much rather them appear as 3D and not 2D.
    I have used the "autosprite2" in shaders before without incident but in this map everything is causing me grief. lol
    The texture first appears upside down when viewed from one side and the right way up on the other side and as I walk passed it, it rotates on it's Z axis (somersaults) instead of it's Y axis (like a door).
    I have copied the shader surface that has worked for me in several maps but it's not acting the same.
    I have remade the brushes and patch of these textures to no avail.
    I have looked at the default MOHAA sprites script and tried some of that crap too ("spritegen oriented").

    This is what has worked for my other maps....
    Code:
    textures/loop/grass_tuft
    {
    	//qer_editorimage textures/loop/grass_tuft.tga
    	qer_keyword utility
    	surfaceparm alphashadow
    	surfaceparm nonsolid
    	surfaceparm trans
    	nopicmip
    	nomipmaps
    	deformVertexes autosprite2
    	cull none
    	{
    		map textures/loop/grass_tuft.tga
    	depthWrite
    	alphaFunc GE128
    	nextbundle
    	map $lightmap
    	}
    }
    ... but it just gets all screwy in this map.

    Any help would be appreciated.
    Cheers.

  2. #2

    Default

    What shape is your brush or patch? Do you have any screenshots of what it looks like?

    Take note that autosprite2 "only rotates around the middle of its longest axis".

  3. #3

    Default

    G'day Smithy, thanks for replying.

    Ahh I see. Now that I think of it, in all of the other cases my textures have been taller than their width.
    In Radiant these grass textures are 32 units wide by 28 high. I'll just make them taller.

    Thanks mate, much appreciated.

    BTW, I recently read a Quake 3 guide on an official website (last week some time) that the sprite texture had to be square.
    I ignored that because I knew my previous sprites were far from being square.

  4. #4

    Default

    Just letting you know that raising the height of the grass tuft patch and brushes worked.
    You don't want to know how many days I banged my head against my desk. lol
    I left it, worked some on a friend's map for two days then came back to it for a few more days of head banging. Starting where I had left off. lol

    Cheers mate, you're a legend.

  5. #5

    Default

    Glad it's working!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •