philip.li Posted April 12, 2019 Posted April 12, 2019 as the YUV was a common use in videos and streamings . i think it's really necessarily to add support of some YUV format to texture . on my case , YUV format like yuv420p, nv12 was in an common usage . maybe you can extented C++ interfaces to texture first in next version.
morbid Posted April 12, 2019 Posted April 12, 2019 Hi Phillip, have you tried rgb2yuv filter? Doesn't it fit your needs? Here you'll find more info on this filter: https://developer.unigine.com/en/docs/2.7.3/content/materials/library/postprocess/post_filter_rgb2yuv/ Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
philip.li Posted April 13, 2019 Author Posted April 13, 2019 (edited) that's not fit my need , my require was just want pass yuv to shader . actually , i have wrote my own shaders, but unigine texture can't pass yuv420p or nv12 texture in ,I have to make conversion before passing to shader . so just let unigine texture support the yuv will be enough.as i know opengl and d3d11 all surpport that two kind of format. Edited April 13, 2019 by philip.li
philip.li Posted April 13, 2019 Author Posted April 13, 2019 well ,it seems nv12 can't bind to shader resource in d3d11
philip.li Posted April 15, 2019 Author Posted April 15, 2019 http://answers.flyppdevportal.com/MVC/Post/Thread/2b4a56af-4ae0-4603-8c13-c8a945e7206d?category=gameswithdirectx find the way to set nv12 to shader in d3d , so it's still be requested.
Recommended Posts