Dark side of the sprite

Avatar
boctroy
51 Posts
Posted Jul 13, 2013
i tried using env_sprites in the new portal level i am creating, however when ever i'm on one side of the sprites they turn dark and black. when i'm standing on the other side they look just fine. My first thought was lighting so i put a light on the dark side to no effect. any help would be appreciated.
Advertisement
Registered users don’t see ads! Register now!
Avatar
LoneWolf2056
193 Posts
Posted Jul 13, 2013
Replied 5 minutes later
Have you tried setting the Render Mode of the sprite to "World Space Glow"
Avatar
boctroy
51 Posts
Posted Jul 13, 2013
Replied 4 minutes later
I have, it did not seem to make a difference.
Thankyou for you idea tho.
Avatar
boctroy
51 Posts
Posted Jul 13, 2013
Replied 5 minutes later
To give a better idea of whats going on here is a picture, the feathers are the sprites. this is the dark side.sprite glitch.png
Avatar
Brainstone
401 Posts
Posted Jul 14, 2013
Replied 14 hours later
strange. Sprites should look the same from all directions... what happens if you move them a bit upwards, out of the desk?
Avatar
boctroy
51 Posts
Posted Jul 14, 2013
Replied 4 hours later
Moving them upwards creates no chnage.
Good idea tho.
Avatar
Skotty
671 Posts
Posted Jul 14, 2013
Replied 1 hour later
Is it a custom sprite texture? If so, post your VMT.
Avatar
boctroy
51 Posts
Posted Jul 15, 2013
Replied 18 hours later
Here is the file.
Avatar
boctroy
51 Posts
Posted Jul 15, 2013
Replied 11 hours later
alot of my problem went away when i compiled with hdr under rad, so it is the right color most of the time now.
Avatar
Skotty
671 Posts
Posted Jul 16, 2013
Replied 9 hours later

boctroy wrote:
alot of my problem went away when i compiled with hdr under rad, so it is the right color most of the time now.

This statement should tell yourself you still haven't solved any problem.

I took a look on your sprite .vmt and as I thought:

"LightmappedGeneric"
{
   "$basetexture"   "Custom/redfeather"
   "$translucent"   "1"
}

Using "LightmappedGeneric" here is wrong. Sprites are special textures. Next time take a look into existing textures in Portal 2's VPK files.

The correct .vmt must be:

"Sprite"
{
   "$basetexture"   "Custom/redfeather"
   "$spriteorientation"   "vp_parallel"
   "$spriteorigin"   "[0.5 0.5]"
}
Avatar
boctroy
51 Posts
Posted Jul 16, 2013
Replied 3 hours later
Thankyou, this sounds like it would work.
Avatar
boctroy
51 Posts
Posted Jul 16, 2013
Replied 12 minutes later
Ok i just tried it and the colors dont go dark like before, but now the feathers all have a black box around them.
Avatar
Skotty
671 Posts
Posted Jul 16, 2013
Replied 1 hour later
You need to set "Rendermode" of your env_sprite to "World Space Glow" (as for every normal sprite).
Advertisement
Registered users don’t see ads! Register now!
Avatar
boctroy
51 Posts
Posted Jul 16, 2013
Replied 1 hour later
That is so much better. thankyou