Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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.

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

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

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

Transparent (translucent) object gets drawn over another in URP 0 Answers

Sprites in 3D space, wrong draw order? 1 Answer


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