投稿日: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で掴む機能には問題なしです。

 

?????

 "Greetings! Very helpful advice in this particular post! It's the little changes which will make the biggest changes. Thanks a lot for sharing!" https://bookmarking.stream/story.php?title=lywwy-swknwt-yjr%D7%90l-hy%D7%90-b%D7%90mt-htwbh-bywtr-hlywwy-byjr%D7%90l-k%D7%90%D7%9F-tmyd-jmh-lhzmy%D7%9F-mlwwy%D7%9D-hdjy%D7%9D-jl-%D7%A2wbdy%D7%9D#discuss

?????

 "I have to thank you for the efforts you have put in writing this site. I'm hoping to view the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has encouraged me to get my very own website now ;)" https://dohabb.com/index.php?page=user&action=pub_profile&id=1061225

?????

 "Itís difficult to find educated people in this particular topic, however, you sound like you know what youíre talking about! Thanks" https://www.ted.com/profiles/37429584

?????

 "Everything is very open with a clear description of the issues. It was truly informative. Your website is very useful. Thank you for sharing!" https://mensvault.men/story.php?title=%D7%90nhnw-kmw-lywwy-jyrwt-yjr%D7%90l-hy%D7%90-b%D7%90mt-htwbh-bywtr-hlywwy-byjr%D7%90l-%D7%90yph-tmyd-mwk%D7%9F-lhkyr-mlwwy%D7%9D-hdjy%D7%9D-jl-bnwt#discuss

?????

 <a href="http://www.candipharm.com/ ">http://www.candipharm.com/</a>

?????

 https://www.hydroxychloroquinex.com/ generic hydroxychloroquine

?????

 <a href=https://bestcialis20mg.com/>cialis for daily use</a> 109 Only one published study supports the use of corticosteroid therapy in patients with some evidence of myocardial inflammation

?????

 That means you'll lead some stylish features and press access to additional channels where you can forward movement visibility, without having to modify nous of some confused, guide migration process. https://googlec5.com

Powered By

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