Head-replacing breath

Discuss whatever you'd like!
Post Reply
User avatar
lamefun
Tyrant
Posts: 371
Joined: Mon Jun 04, 2012 10:29 am UTC

Head-replacing breath

Post 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.

Attachments
shot0000.jpg
kangz
Programmer
Posts: 178
Joined: Mon Feb 18, 2013 12:10 am UTC

Re: Head-replacing breath

Post 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.

User avatar
kharnov
Granger
Posts: 1851
Joined: Tue Mar 06, 2012 10:54 pm UTC
Clan: GT
Location: New York City

Re: Head-replacing breath

Post by kharnov »

:thumbup: :cool:

User avatar
lamefun
Tyrant
Posts: 371
Joined: Mon Jun 04, 2012 10:29 am UTC

Re: Head-replacing breath

Post by lamefun »

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

kangz
Programmer
Posts: 178
Joined: Mon Feb 18, 2013 12:10 am UTC

Re: Head-replacing breath

Post 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.

User avatar
lamefun
Tyrant
Posts: 371
Joined: Mon Jun 04, 2012 10:29 am UTC

Re: Head-replacing breath

Post 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?

Post Reply