Sign in to follow this  

Apply texture to two opposite sides of a quad.

This topic is 4659 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You can't apply two textures to one quad, you need to make a second quad, which is at the same location but faces the opposite direction.

edit to clarify: disabling backface culling would show the texture of the quad on the other side as well (but mirrored). I don't think that's what you want...

Share this post


Link to post
Share on other sites
Quote:
Original post by Amodim
Or, determine which side of the quad is facing the camera (simple dot product) and assign the texture that corresponds with that side.


Pls describe more detail about "simple dot product" to check which side is facing the camera.

ltdt.

Share this post


Link to post
Share on other sites
Quote:
Original post by langtudontinh
Hi everyone!
I have two textures and want to apply these into 2 sides of a quad. Could anyone show me the way?
Thank you.

ltdt.

You could use only one quad and rendering it two time per frame. That is: Render it once with the texture 1. Set the texture 2, rotate the quad by 180 degrees and render it again.

Share this post


Link to post
Share on other sites
Hi hplus0603,
I Have turned backface culling on and did tweening from mesh A to mesh B. Culling just be ok at the state tween-factor = 0.0 (mesh A) and tween-factor = 1.0 (mesh B), but it's wrong while animation. PLS, show me how to fix the problem.

Share this post


Link to post
Share on other sites

This topic is 4659 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this