Help with env_sprite/ env_sprite_clientside

Avatar
Lpfreaky90
2,842 Posts
Posted Apr 19, 2012
Hello everyone :smile:

I'm working on an awesome map where I wanted to add lanterns; to get them look awesome they need a nice inner glow, so I thought to add an env_sprite or an env_sprite_clientside. I've added them and this is how they look:
img
All working, but if I move my mouse a tiny bit I get this:
img

Any suggestions on what I'm doing wrong? :sad:

Advertisement
Registered users don’t see ads! Register now!
Avatar
Mevious
205 Posts
Posted Apr 19, 2012
Replied 38 minutes later

Could be that your sprite is malfunctioning because it is inside the model. Have you tried increasing the "Size of Glow Proxy Geometry"?

vdc wrote:
Size of Glow Proxy Geometry
Size of the glow to be rendered for visibility testing. Must be larger than the distance from the sprite center to empty space. So if this glow is inside geometry (like a light bulb), set this value to be bigger than the bulb's radius. Any time a sphere of this radius pokes through nearby geometry the glow will be rendered.

Avatar
Lpfreaky90
2,842 Posts
Posted Apr 19, 2012
Replied 4 minutes later
yes; it's currently at 128 :razz:
Avatar
spongylover123
944 Posts
Posted Apr 19, 2012
Replied 1 hour later
it's a rendering issue. Sprites are the lowest piority and will disappear if you look away from it 50% or more
Avatar
Lpfreaky90
2,842 Posts
Posted Apr 19, 2012
Replied 1 hour later
I've tried to set the cpu and gpu priority a bit higher; hopefully it'll work now :smile: thanks for the help :biggrin:
Avatar
Fracture
797 Posts
Posted Jul 05, 2012
Replied 2 months later
I was also trying to do this but couldnt get the sprites to shrink. I was also using lights before but couldnt get the light to get small enough within the size of a dashboard light
Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2012
Replied 3 days later
Lp, what about using 1 or maybe 2 point_spotlights? maybe you could obtain a similar effect and they are rendered good throughout long distances.
Avatar
Skotty
671 Posts
Posted Jul 09, 2012
Replied 8 minutes later

josepezdj wrote:
Lp, what about using 1 or maybe 2 point_spotlights? maybe you could obtain a similar effect and they are rendered good throughout long distances.

You mean env_sprites. Spotlights are really the wrong effect for laterns.

I have a guess what the problem could be: You are using a refracting shader on the glass texture. Maybe there is a bug depending on what angle you are looking on the glass and the sprite. Try it out without refracting glass to see if this is the problem (and somehow I'm pretty sure it is the problem).

Avatar
josepezdj
2,386 Posts
Posted Jul 09, 2012
Replied 11 minutes later

Skotty wrote:
You mean env_sprites. Spotlights are really the wrong effect for laterns.

No, I meant the point_spotlight entity as described here.

Please check out:

img

Avatar
Skotty
671 Posts
Posted Jul 09, 2012
Replied 36 minutes later

josepezdj wrote:
No, I meant the point_spotlight entity as described

I know what you mean and I know what point_spotlights are.

Avatar
Lpfreaky90
2,842 Posts
Posted Jul 09, 2012
Replied 1 hour later
Yes, I think the biggest problem is indeed caused by the reflective glass, the problem is that I grabbed this model from internet a couple of months ago on a website where they provided these models, I haven't been able to contact the person who made this model and I cannot modify this stuff, since I have no knowledge of 3d modeling whats however. If someone could assist me in replacing this glass by a more simple piece of glass that'd be wonderful!
Avatar
FelixGriffin
2,680 Posts
Posted Jul 09, 2012
Replied 3 hours later
There should be a material in the /materials/models/ folder for the glass, which will probably just be a VMT without a VTF. Replace that with whatever you want.

Or if it uses built-in glass, hexedit the MDL file, find the name of the material at the bottom, and change the path slightly (without adding or deleting letters) to point to your own glass material.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Jul 09, 2012
Replied 4 hours later
There is no need to change the model. The refracting glass effect is defined by the VMT file of the glass the model uses. Just remove the refracting parts out of it or post it's content here and I will do it.