投稿日:2017年11月01日  カテゴリー:VR  投稿者:SingularityMaster

■Grabbable.csのランダム色変化について

以前の記事の補足です。

 

 

オブジェクトにGrabbable.csを設定すると、シーンの開始と同時にランダムに色(正確にはシェーダー)が割り振られます。これはオブジェクト本来の色を使用したい場合、不要な機能です。

今回はGrabbable.csの該当部分をコメントアウトすることで、この機能を無効化します。

 

■Grabbable.csを編集する

Grabbable.csを開きます。

 

 

30~32行目に色変化に関するコメントが記述してあります。(デモ目的でカラーチェンジ機能が実装されています。不要な場合は「color-changing support」と書いてある部分を削除することで簡単に取り除けます)と。

 

 

探してみると、85行目、98行目と、

 

 

117行目に、「color-changing support」という記述があります。ここらへんを削除すればOKです。

 

 

具体的には、86行目、99行目、126行目に、SetColor(m_color);という関数があるので、この関数の前に//を付けてコメントアウトしてしまえばOKです。

 

 

すると、色変化がなくなり、オブジェクト本来の色でシーンを実行することができます。もちろんOculusTouchで掴む機能には問題なしです。

 

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

?????

 "After I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. There has to be a means you are able to remove me from that service? Many thanks!" http://wikitrade.org/index.php/You_ll_Thank_Us_-_10_Recommendations_On_Escort_You_Want_To_Know

?????

 "This is the right webpage for anybody who wishes to find out about this topic. You know so much its almost hard to argue with you (not that I actually will need toÖHaHa). You definitely put a brand new spin on a topic that has been written about for ages. Excellent stuff, just wonderful!" http://whatthehellamiagreeingto.com/index.php/User:WillardCain

vsmhgwepnf

 Singularity-labo <a href="http://www.gu803c8894w2b2nw5hqupc8k5nu698o6s.org/">avsmhgwepnf</a> [url=http://www.gu803c8894w2b2nw5hqupc8k5nu698o6s.org/]uvsmhgwepnf[/url] vsmhgwepnf http://www.gu803c8894w2b2nw5hqupc8k5nu698o6s.org/

?????

 "I have to thank you for the efforts you've put in penning this website. I really hope to check out the same high-grade content from you later on as well. In fact, your creative writing abilities has inspired me to get my own, personal site now ;)" http://notes.soliveirajr.com/user/profile/50722.page

?????

 "Good post. I learn something new and challenging on sites I stumbleupon every day. It's always useful to read through content from other authors and use something from other sites." https://lade-girls-israily.tk/news/sculymunof

?????

 "I'd like to thank you for the efforts you have put in writing this blog. I really hope to view the same high-grade blog posts from you in the future as well. In fact, your creative writing abilities has encouraged me to get my own blog now ;)" https://olen-girls-israely.cf/news/lebartamo

Powered By

Copyright (C) 2017 テクノロジーカフェシンギュラリティ. All Rights Reserved.