• 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 /
  • Help Room /
avatar image
0
Question by AZAXD64 · Feb 04, 2016 at 11:53 AM · layers2d spritestransparent shadertransparent-texturesprite animation

Can sprite characters in a 3D game sit inside transparent water?

I have a 3D game with 2D sprites for characters (I know that might be a bit odd but I really like the style, been doing it for a while). I'm trying to put a flowing river into the world and have run into a bunch of problems which I've shown in the screenshots below because I didn't know how to describe them...

.

The left-most screenshot shows how I want the dog character sitting in the river except I want the river to be transparent and animated.

My first plan was to have an animated sprite turned 90 degrees (as shown in the two right-most screenshots) but I understand there are problems here as both the river and the dog are UI-type objects correct? Is there some way around this that I'm missing?

I've considered that maybe I need to explore and learn how to make animated textures and put that on a mesh but as seen in the second screenshot, there's a weird issue where the dog no longer "sits in" the water when the shader is transparent.

alt text

.

So I'm just a little lost and unsure which way to go about this. Would really appreciate some help :)

(Edit: I refuse to use Unity's or whoever else's pre-made water! I just really want to make everything my self you know?)

river-work.png (280.1 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by AZAXD64 · Feb 05, 2016 at 04:18 AM

I've tried a transparent/cutout/diffuse shader on the sprite form of the river which solves the problem of the dog being behind or on top of the river but it seems to ignore the transparency of the texture. Any ideas?

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

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

40 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

Related Questions

I want to 2d sprite sort layers but force some of them to render in front of another layer? 0 Answers

Is it possible to create a "continuous layer" in Unity or would it be just a single giant texture ? 0 Answers

Transperent Side of a Texture becomes black in Shader PBR Graph 1 Answer

Making raycast ignore multiple layers 6 Answers

Newbie question. I have an object that is transparent to other objects in specific and I do not want it. 0 Answers

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