Jump to content

  • Log In with Google      Sign In   
  • Create Account

bending 2 or more textures together?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 the dodger uk   Members   -  Reputation: 148

Like
0Likes
Like

Posted 19 January 2013 - 12:23 PM

quads.PNG
 
i have attached an image
 
it is 2 quad which are overlapping 
 
is there a shader or way that the 2 images when they meet combine so that it looks like one continus texture
so that the shader samples from each and then  blends them together correctly.
 
i am only using the  present texture as an example 
 

 

Attached Thumbnails

  • quads.PNG


Sponsor:

#2 irreversible   Crossbones+   -  Reputation: 1404

Like
0Likes
Like

Posted 19 January 2013 - 06:46 PM

Looks like you're using additive blending (t0 + t1). You'll need combine the two textures using 0.5 * (t0 + t1). Check out how to do this in both a fixed and dynamic pipeline.



#3 the dodger uk   Members   -  Reputation: 148

Like
0Likes
Like

Posted 19 January 2013 - 09:01 PM

i was hoping there might be a way of not sending both textures to the shader and sampling from both in one pass.

 

the idea was to be able to move and combine about 30  quads in no specific order , but just give them the  shader technique and it will do all the rest .

 

but if i have to  send both textures then i would have to have a set distance from each other or they would have to know about each other and every thing else  



#4 irreversible   Crossbones+   -  Reputation: 1404

Like
0Likes
Like

Posted 19 January 2013 - 10:06 PM

You can still accomplish this using good old multi-passing, which will allow you to blend together as many textures as you want in which ever order you want. Draw the base texture and then draw on top of it. Do some googling - it's how stuff used to be done in the olden days. No shaders needed! :)






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS