LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   Holowan Laboratories (http://www.lucasforums.com/forumdisplay.php?f=324)
-   -   Projectiles and shaders (http://www.lucasforums.com/showthread.php?t=211465)

SimonKTemplar 11-18-2012 08:15 PM

Projectiles and shaders
 
My question is this: is it possible to assign environment maps (like cm_baremetal or similar ones) to weapon projectiles? I don't know if projectiles are models or simply sprites, but what I'm trying to do is make the sonic weapon projectiles use the cloaking device shader (the transparent thingy you see on a player when you activate a stealth field generator). I want to make the sonic projectiles look more like the projectiles fired by Geonosian sonic blasters in AOTC.

Marius Fett 11-19-2012 06:28 AM

I've not actually played around with ammunition types myself for a long time, but if memory serves, they are indeed models.

This thread here should help you. ;)

SimonKTemplar 11-20-2012 07:51 AM

Thanks for the info! Unfortunately, after some time looking into this, I've found that all the blaster bolts/ammunition/projectile models use different models, but apparently the same texture, and that assigning that shader to any of the textures would end up making all the blaster bolts fired in the game translucent.

Oh well, back to the drawing board

Marius Fett 11-20-2012 08:00 AM

Why not just apply a different texture to the model?

SimonKTemplar 11-20-2012 07:24 PM

Quote:

Originally Posted by Marius Fett (Post 2823455)
Why not just apply a different texture to the model?

I can't find the model... in the K1 models.bif, the model is absolutely nowhere to be found. looked in other bifs too, but no w_laserfire_ anywere! Otherwise I would've done it yesterday

Fallen Guardian 11-20-2012 07:33 PM

It might be in items.bif. That's where all the weapon models are, anyway.

SimonKTemplar 11-20-2012 07:37 PM

Quote:

Originally Posted by Fallen Guardian (Post 2823485)
It might be in items.bif. That's where all the weapon models are, anyway.

DAMN. Never saw it in a million years, looked like 3 times across the whole list in that bif and couldn't see it. Maybe I was trying too hard and it gave me the slip.

Okay, from what I can see here, the w_laserfire_s is just a model with no texture, no transparency, and completely white. Problem.
What I'll have to do now is take the texture for the 'power blast' projectile and edit it so it vaguely resembles some type of sonic distortion in the air. Then I'll try applying the environment map used by the stealth field (dunno what envmap that is, a little help here?). After that, I'll let you know what happens.


All times are GMT -4. The time now is 04:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.