Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Solid image redrawing

4: Adsense

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
2 replies to this topic

#1 no.Oby   Members   

104
Like
0Likes
Like

Posted 17 June 2013 - 06:51 AM

Hello.

I am writing a yuy2 to rgb converter in shader.

I put yuy2 data in texture [w/2:h] and drawing on rec [w:h] with shader, which execute decode function.  

Current:

https://docs.google.com/file/d/0BxcY1BqDH3QnTEx4TkhYUGlid1U/edit?usp=sharing

Goal:

https://docs.google.com/file/d/0BxcY1BqDH3QnMVZkZGZ2d180aDQ/edit?usp=sharing

I think that when i draw yuy2 texture on bigger rectangle data deforms. Which Params should i use in SB.Begin and SB.Draw for currect (with filling of adjacent pixels) drawing texture i heard thats called "Solid"?



#2 phil_t   Members   

8004
Like
1Likes
Like

Posted 17 June 2013 - 12:26 PM

Pass SampleState.PointClamp or SampleState.PointWrap (probably the former in your case) for the second parameter in SpriteBatch.Begin.



#3 no.Oby   Members   

104
Like
0Likes
Like

Posted 17 June 2013 - 12:32 PM

Awesome, thank you)






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.