I have read many articles and questions on forums about making Portal System in Unity. But, I know how to do it, and my question is not about that.
I want to make portals' particles and effects сompletely identical from the game. Like here:
![alt text][1]
I don't really know much about materials and shaders, but I have found some textures from the original game. I have been searching for something in game data for a long time. I have found portal gun with their animations, sounds, map textures with height maps and normals, but I don't really understand how the game renders portals (effects and particles, not watching through portals). What I have found about that:
(*.vtf* files: textures, images, sprites; *.vmt*: material description)
**noise-blur-256x256.vtf**
It was declared in one of *.vmt* (materials in source engine) files.
![alt text][2]
I am thinking that it can be used for the closed portal (when only one portal enabled), like here:
![alt text][3]
**portal-blue-color-dx8.vtf**
Very interesting texture, 'cause it has hidden colors under alpha.
How it looks without alpha:
![alt text][4]
And with alpha:
![alt text][5]
What I understand, that the game renders portal based on hidden colors under alpha and displays not transparent pixels (border of the circle). But, where did it find particles, I don't understand.
Beam edges (in materials/particles):
**beam_portaledge_01.png**
![alt text][6]
**beam_portaledge_01b.png**
![alt text][7]
**beam_portaledge_02.png**
![alt text][8]
**beam_portaledge_04.png**
![alt text][9]
(it is really not transparent)
Also, I found the particle, but I don't think that I need it.
**energyball.png**
![alt text][10]
It was declared in *portal_projectile.pcf*, but I think that it isn't what i'm searching for.
So, do you have some ideas how I can mix all this textures and take something like this in result? I have no ideas.
I don't want to make some smoke, glow and other effects (not now). Just rendering this pretty portal effect like in Portal 2.
[1]: http://www.rarityguide.com/articles/content_images/1/portal2/portal2_testchamber02_9.jpg
[2]: /storage/temp/98569-noise-blur-256x256.png
[3]: http://i1.theportalwiki.net/img/thumb/0/06/Chell_lmb_portal.png/400px-Chell_lmb_portal.png
[4]: /storage/temp/98570-portal-blue-color-none.png
[5]: http://dkaraush.shpp.me/Screenshot_1.png
[6]: http://dkaraush.shpp.me/beam_portaledge_01.png
[7]: http://dkaraush.shpp.me/beam_portaledge_01b.png
[8]: http://dkaraush.shpp.me/beam_portaledge_02.png
[9]: http://dkaraush.shpp.me/beam_portaledge_04.png
[10]: http://dkaraush.shpp.me/energyball.png
↧