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

 

qZJSoq http://pills2sale.com/ viagra online

 qZJSoq http://pills2sale.com/ viagra online

Sorry, you must have the wrong number <a href="http://vaccineresource.com/topamax-25-mg-twice-a-day-weight-loss/">buy topamax cheap online</a> That has been the case since the trees were introduced from Indonesia around the turn of the 19th Century.

 Sorry, you must have the wrong number <a href="http://vaccineresource.com/topamax-25-mg-twice-a-day-weight-loss/">buy topamax cheap online</a> That has been the case since the trees were introduced from Indonesia around the turn of the 19th Century.

Languages <a href="http://www.bigmusclecar.com/list-of-food-interactions-with-coumadin/">new drug coumadin</a> “I believe this Small Business Saturday concept has really caught on with the public,” Knapp said

 Languages <a href="http://www.bigmusclecar.com/list-of-food-interactions-with-coumadin/">new drug coumadin</a> “I believe this Small Business Saturday concept has really caught on with the public,” Knapp said

I'd like to speak to someone about a mortgage <a href="http://kopekciftligi.com.tr/blum-minipress-m-parts">generic medication for prazosin</a> One was on the outskirts of Damascus, evidently in the environs of the international airport

 I'd like to speak to someone about a mortgage <a href="http://kopekciftligi.com.tr/blum-minipress-m-parts">generic medication for prazosin</a> One was on the outskirts of Damascus, evidently in the environs of the international airport

Is it convenient to talk at the moment? <a href="http://www.instalacioneshidraulicas.com/ist-fucidine-salbe-rezeptpflichtig/">fucidin h krem fiyat</a> Because if this refusal by Brees, the Saints had to move Graham and his contract.

 Is it convenient to talk at the moment? <a href="http://www.instalacioneshidraulicas.com/ist-fucidine-salbe-rezeptpflichtig/">fucidin h krem fiyat</a> Because if this refusal by Brees, the Saints had to move Graham and his contract.

It's OK <a href="http://freeresumetemplate.net/dulcolax-yahoo-answers.html">bisacodyl suppository for babies</a> Countless windows were blown out of rental cars and high-end hotel rooms, and resort facades crumbled to the ground.

 It's OK <a href="http://freeresumetemplate.net/dulcolax-yahoo-answers.html">bisacodyl suppository for babies</a> Countless windows were blown out of rental cars and high-end hotel rooms, and resort facades crumbled to the ground.

How would you like the money? <a href="http://www.riseaustin.org/thioridazine-hcl-wikipedia/">mellaril vistoril methadone overdose</a> The proposed class action lawsuit against Sony Corp's studio was filed on Monday in federal court inLos Angeles

 How would you like the money? <a href="http://www.riseaustin.org/thioridazine-hcl-wikipedia/">mellaril vistoril methadone overdose</a> The proposed class action lawsuit against Sony Corp's studio was filed on Monday in federal court inLos Angeles

I'd like a phonecard, please <a href="http://spiritadventures.co.uk/merck-cozaar-coupon">merck cozaar coupon</a> The basic idea is that it is not enough to look at individual banks, because of the cat’s cradle of linkages between lenders

 I'd like a phonecard, please <a href="http://spiritadventures.co.uk/merck-cozaar-coupon">merck cozaar coupon</a> The basic idea is that it is not enough to look at individual banks, because of the cat’s cradle of linkages between lenders

I've lost my bank card <a href="http://toolsandgarages.com/trazodone-hydrochloride-100mg-capsules">trazodone hydrochloride 100mg capsules</a> Senate and captured their biggest majority in the House of Representatives in more than 60 years

 I've lost my bank card <a href="http://toolsandgarages.com/trazodone-hydrochloride-100mg-capsules">trazodone hydrochloride 100mg capsules</a> Senate and captured their biggest majority in the House of Representatives in more than 60 years

Sorry, I ran out of credit <a href="http://hoosenji.or.jp/doxepin-pronunciation">doxepin 10 zum schlafen</a> "It is a sad indictment that we live in the nation with 9 of the 10 poorest areas in Northern Europe

 Sorry, I ran out of credit <a href="http://hoosenji.or.jp/doxepin-pronunciation">doxepin 10 zum schlafen</a> "It is a sad indictment that we live in the nation with 9 of the 10 poorest areas in Northern Europe

Powered By

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