Dark side of the sprite
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.
Registered users don’t see ads!
Register now!
Posted Jul 13, 2013
Replied
5 minutes
later
Have you tried setting the Render Mode of the sprite to "World Space Glow"
Posted Jul 13, 2013
Replied
4 minutes
later
I have, it did not seem to make a difference.
Thankyou for you idea tho.
Thankyou for you idea tho.
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
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?
Posted Jul 14, 2013
Replied
4 hours
later
Moving them upwards creates no chnage.
Good idea tho.
Good idea tho.
Posted Jul 14, 2013
Replied
1 hour
later
Is it a custom sprite texture? If so, post your VMT.
Posted Jul 15, 2013
Replied
18 hours
later
Here is the file.
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.
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]"
}
Posted Jul 16, 2013
Replied
3 hours
later
Thankyou, this sounds like it would work.
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.
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).
Registered users don’t see ads!
Register now!
Posted Jul 16, 2013
Replied
1 hour
later
That is so much better. thankyou