Texturing both sides of a polygon
Hi there!
I wish to put two different textures, each one, in a side of a polygon:
Side A has texture 1
Side B has texture 2
Is it possible? If it is, how?
Thanks for any help!
"Steel and Fire,Spreading the Holy Word,Dirty Liars,The truth has never been told" - Primal Fear
It''s not possible (unless you do it in software), do what Screams said.
------------
- outRider -
------------
- outRider -
quote:
Original post by outRider
It''s not possible (unless you do it in software), do what Screams said.
------------
- outRider -
Sure it''s possible, check if it''s back-facing, or front-facing, and select the correct texture.... but, it''s easier to just use 2 polygons and face-cull them so only one gets drawn anyways.
Sorry, I thought he wanted to do it for a mesh, where some triangles would be front facing, some back facing, in which case there would either have to be front/back texture binding support, or he would have to transform them to view space himself and render the triangles seperately based on front/back texture needs.
If you have a mesh that''s entirely coplanar then you can do what Ready said, it would work perfectly... it''s just not worth it.
------------
- outRider -
If you have a mesh that''s entirely coplanar then you can do what Ready said, it would work perfectly... it''s just not worth it.
------------
- outRider -
quote:
Original post by Ready4Dis
Sure it''s possible, check if it''s back-facing, or front-facing, and select the correct texture.... but, it''s easier to just use 2 polygons and face-cull them so only one gets drawn anyways.
Ready4Dis,
I didn''t get the point? How? Can you be more specific?
I saw the replies and I''m talking a single quad...One side with one texture, it''s back side with another. I''ve already tried putting two quads facing each other culling it''s back but I didn''t liked the result. Its not like a single one bi-textured...
"Steel and Fire,Spreading the Holy Word,Dirty Liars,The truth has never been told" - Primal Fear
quote:
but I didn''t liked the result.
More detail needed.
_______________________________________Pixelante Game Studios - Fowl Language
"Sure it''s possible, check if it''s back-facing, or front-facing, and select the correct texture.... but, it''s easier to just use 2 polygons and face-cull them so only one gets drawn anyways. "
He means just do a if/else to see what side is facing you.
The back faceing should yeild a result that looks like its 1 polygon with a a front and back texture.
He means just do a if/else to see what side is facing you.
The back faceing should yeild a result that looks like its 1 polygon with a a front and back texture.
Let me if I understood...
When i face the quad I check if its normal is pointing towards me...if it is i''m facing front and then i put tex 1
If not, I invert the normal and then put tex 2? Its more or less this?
And if I''m at an angle that I can see both sides? I think its not possible but who knows?
When i face the quad I check if its normal is pointing towards me...if it is i''m facing front and then i put tex 1
If not, I invert the normal and then put tex 2? Its more or less this?
And if I''m at an angle that I can see both sides? I think its not possible but who knows?

"Steel and Fire,Spreading the Holy Word,Dirty Liars,The truth has never been told" - Primal Fear
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement