Page 1 of 1

Head-replacing breath

Posted: Fri Jun 28, 2013 1:10 am UTC
by lamefun

Make tyrants have breath that replaced human head with cow head and reduces their vision to this:

Image

Should be only possible to revert with medistation.


Re: Head-replacing breath

Posted: Fri Jun 28, 2013 3:26 am UTC
by kangz

I suppose you'd like the antisymmetry of the image to be based on the direction of the tyrant breath?

If yes it would be waaaayyy to performance intensive to have a practical implementation of it, only AAA ames can afford this.


Re: Head-replacing breath

Posted: Fri Jun 28, 2013 3:27 am UTC
by kharnov

:thumbup: :cool:


Re: Head-replacing breath

Posted: Fri Jun 28, 2013 6:51 am UTC
by lamefun

Is computing the angle between A, B and C in 3D, drawing two circles and blurring them so hard :O?


Re: Head-replacing breath

Posted: Fri Jun 28, 2013 8:04 am UTC
by kangz

Yes, especially the blurring part as suggested in [1][2][3]

[1] Lee, Sungkil, Elmar Eisemann, and Hans-Peter Seidel. "Real-time lens blur effects and focus control." ACM Transactions on Graphics (TOG) 29.4 (2010): 65.

[2] Waltz, Frederick M., and John WV Miller. "Efficient algorithm for Gaussian blur using finite-state machines." Photonics East (ISAM, VVDC, IEMB). International Society for Optics and Photonics, 1998.

[3] Lee, Hsien-Che. "Review of image-blur models in a photographic system using the principles of optics." Optical Engineering 29.5 (1990): 405-421.


Re: Head-replacing breath

Posted: Fri Jun 28, 2013 10:08 am UTC
by lamefun

I made blur effect in GLSL once, was OK. If it's still not OK, you can make pre-blurred circles in an image editor. Difference in blur radiuses due to scaling both circles differently shouldn't be too noticable in-game, as with a giant cow head, tunnel vision and a tyrant attacking you, you won't have time to notice that.

As for measuring angle between AB and AC in 3D, you can use magical Microsoft code: just code an angle measurement server in C# XNA, then launch it when UNV server starts, then the server can send measurement requests to it and get the results via IPC. That'd constrain UNV servers to Windows, but it's Windows that is perfect and good for servers, not Linux.

P.S. Also, the blurred colored clouds (if you haven't noticed) in the black area are intentional, are they hard to do too?