• 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
Question by BHS · May 29, 2012 at 04:27 PM · textureterraindynamicweathersnow

Is it possible to have dynamically building snow on the terrain?

First off I know this will be challenging, I'm a programmer, I just need I know if this is possible. If so, how can I go about this? Is there a way to change the terrain textures over time? Or change the splat texture of the terrain from something spotted to something nearly fully covered? This could only be temporary as you wouldn't want to destroy the textures already place on the terrain. Maybe a texture layer that can over right the textures placed then when it stops snowing go back to the lowest layer.

If the terrain approach isn't possible then what other way is. Let's through some ideas out there and make this happen.

I love a challange, so let's try to get this figured out. I'm sure it would help a lot of people.

Comment
Fattie

People who like this

1 Show 6
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 whydoidoit · May 29, 2012 at 04:46 PM 0
Share

Yes it's possible - Allegorithmic substances have a great way of doing this (if you are not on a mobile device) - there's a decent few demos around. Here's one http://u3d.as/content/allegorithmic/airstream-substance-demo/26X There is a snow demo somewhere, couldn't find it but Google Allegorithmic.

Clearly if they can do it - so can you!

avatar image BHS · May 29, 2012 at 05:18 PM 0
Share

Thanks for this, but I'm trying to stay away from pluggins as this is forour weather system. Is this possible to still have dynamic snow on the terrain without using that link you provided? Or will I have to write my own substance shader?

avatar image whydoidoit · May 29, 2012 at 05:22 PM 0
Share

Hey this wasn't an answer for a reason - I was just answering your very first point - is it possible :) Yep!

I think they have some cool algorithm for dynamically updating a texture from combining multiple source textures. They build their final texture from a very small source file - using a rendering algorithm, how it works - I don't know! Guess it would be cool to figure out something similar.

The biggest problem is probably the tiling requirement I would think.

avatar image whydoidoit · May 29, 2012 at 05:28 PM 0
Share

The starting point for combination might be some kind of space filling curve: http://lcni.uoregon.edu/~dow/Geek_art/Simple_recursive_systems/2-D/Space-filling_curves/Space-filling_curve_L-systems.html#Sierpinski_curves

avatar image whydoidoit · May 29, 2012 at 05:31 PM 0
Share

Actually I'm liking the sierpinski curve on here: http://www.cs.utexas.edu/~vbb/misc/sfc/Oindex.html

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by BHS · Jun 06, 2012 at 03:57 AM

From all the ways I tried to make this work it's not possible. The only way that this worked was using a projector as Fattie suggested. HOWEVER, this effects all vegetation, along with anything else placed using the terrain, making it render weird with unusable results, even after I rewrote every shader that the vegetation used. It's impossible to set the terrain to a different layer other that what the terrain is because anything you place on the terrain using the terrain tools sets them to that layer. This means you can never change the layer of the vegetation so it's not affected by the projected texture.

You can't use decals, as they don't bend or contour to the terrain. Not to mention you'd lock any computer up with how many decals that would be rendered.

It's also not possible to lay any texture over the entire terrain. Unity's terrain is just too..protected, there is no way to change or alter anything. There's few things that are undocumented, but it's still impossible using all the documentation both documented and undocumented.

I tried using multiple terrains; duplicating the terrain as a mesh using a pluggin so I could have place my snow shader on the duplicated terrain, still impossible. Unity can only handle so many tris' (65,000) so you can only have a duplicated terrain with 1/4 the tris count making the terrain all blocky and unable to properly match the terrain, meaning you can never have an exact mesh replica of your terrain.

Until Unity allows more control over the terrain, it will be impossible to have dynamic snow on Unity's terrain. Believe me I have tried and researched for weeks, it just isn't possible, for now at least.

I'm posting this as an answer as, it's not possible. Hopefully this will help others so they don't waste weeks trying to do the same.

Comment

People who like this

0 Show 0 · 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

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

Weird lines on the grass texture 0 Answers

Changing terrain texture at runtime 1 Answer

Texture Missing Mask Map 0 Answers

Camera flickers near terrain grass/detail on Mobile 0 Answers

Can you turn off bilinear filtering on terrain grass? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges