• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Gigabitten_Gaming · Nov 03, 2019 at 04:51 PM · physicslightingwaves

Can Unity Physics Engine simulate electromagnetic Radiation (e.g., microwaves, gamma-waves, etc)?

This question has been asked before.
Sadly, nobody has answered it.

https://answers.unity.com/questions/1042117/is-posible-make-a-electromagnetic-waves-simulator.html

I am making a game that plays upon the themes of light. I woke up this morning and had a great idea to emulate a radiowave tower and then give players a REAL FM radio in game that players can use to solve puzzles with. I could also give them special goggles that they could use to see the radiowaves. Also, I could use electromagnetic radiation to implement REAL black-lights (not just shaders made to look like black lights). Lastly, I could use electromagnetic radiation to give players infrared goggles.

Does the Unity lighting physics support electromagnetic waves? Or does it just give us RGB? Would something this ambitious be too expensive in terms of CPU/RAM usage?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by lgarczyn · Nov 04, 2019 at 07:24 PM

This is a very specific need, and no, there's nothing quite like this in Unity. The only thing approaching this is the SoundListener system that allows the simulation of both the speed of sound and the Doppler effect. While it's close to the issues you have here, it's a system specialized for a single listener, not millions of pixels.


There's is no such thing as "real light" in unity. A shader simulating a black light is just as fake as a shader simulating a non-UV light. Unity strays very far from simulating any kinds of physics realistically, and like most engines out there, is just a rough approximation.


Seeing radiowaves is not easy in real-life, as the detector's resolution is dictated by the wavelength of the radiation. So if you wanted to be realistic, your glasses would need antennas dozens of meter in width. If you don't care about that, you can simply have multiple types of light that you enable or disable. Using shaders you can simulate fluorescence for black light.


Unity doesn't just use RGB, but definitely doesn't use wavelength to describe light, which is neither a performant approach nor an interesting one. Your computer screen couldn't even display some of the most saturated colors in the real world, no point in computing something that can't be shown.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
-1

Answer by nanavatidhruvik · Nov 03, 2019 at 05:41 PM

no, use shaders

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gigabitten_Gaming · Nov 03, 2019 at 06:14 PM 0
Share

I don't think you read the question, you must have just looked at the title. ): I can't simulate an F$$anonymous$$ radiowave using shaders.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

222 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How Do I Make The "Solar Outline" Effect? 0 Answers

Top down LOS/Field of View 0 Answers

Unity 2D. How to cast shadows? 1 Answer

How to check if an object is lit by a light? 1 Answer

Lights that ignore position.z of GameObject 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges