KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2020-01-01 to 1 year

マヂカルラブリーM1 一本目

高級フレンチに行くことになった マナー知らないから教えてもらっていい? ナイフとフォークが左右に何本かならんでる 端から使ってく 真ん中からはダメ 店内は静かに、高級店だからね 料理が終わったらフォークとナイフをななめにおく 終わりっていう合図 …

slitscanを考える

エフェクトA 対象物B カメラ位置C エフェクトAは、複数の時間で撮影された画像から、マップにしたがって、どの時間を選ぶが決めて、1枚の絵にする 対象物B カメラ位置C BとCも重要になってくる。Cは固定がいい、カオスになりすぎ AとBは連動させるとおもし…

フリーランスの消費税について調べた

消費税の申請 売上1000万円超えなければ消費税をおさめるのは免除。 売上1000万円超えると超えた年の翌年、税務署から「消費税課税事業者届出書」出せって言われる。出さないとダメ。 超えた年の 次の次の年が最初の課税対象になる。1000万円超えてなくても…

ar-foundation-editor-remote

便利! AR Foundation Editor Remote | Utilities Tools | Unity Asset Store 入れるとPluginいかにARRemoteInstallerフォルダがある project settingのxrの項目のpcのエディタの設定でremoteにチェック入れる そのフォルダにあるInstallerを選択し、インス…

エッジを取得する

answers.unity.com

shader only shadow caster

影だけ出すシェーダー //screen mapping //https://light11.hatenadiary.com/entry/2018/06/13/235543 //lighting //http://alfa.hatenablog.jp/entry/2015/08/16/195933 Shader "Unlit/ScreenMappingShadowTrans" { Properties { //camer texture _MainTex …

SparkAR renderPass使う

残像 https://www.youtube.com/watch?v=J2Egalhe4ng スリットスキャン https://www.youtube.com/watch?v=MlSIa-Ady20 スリットスキャン改

SparkARでオブジェクトを回転させる

swizzle を使う。多分忘れる

辞書①

単語 意味 表象 一般には、知覚したイメージを記憶に保ち、再び心のうちに表れた作用をいう 象嵌 創発 縮退 3次元の立体を影などの2時現に変換した時形の情報が失われること 捨象 (概念を抽象する作用の反面として)現象の特性・共通性以外を問題とせず、…

デペイズマン

「異なった環境に置くこと」を意味するフランス語で、シュルレアリスムの手法の1つ 場所のデペイズマン - 本来の語源的意味。物をそれが本来あるはずがない場所に置くこと。 大きさのデペイズマン - 対象を実際よりもはるかに大きく、あるいは小さく描くこと…

iPhone is not available. please reconnect the device.対策

iOS

XCodeで、iPhone is not available. please reconnect the device. って出たときの対策。 その1 iPhoneを再起動 その2 macを再起動 その3 betaなど、別のXCodeが入ってたら、そっちでビルドする。 結構うまくいく気がする。これが手軽かも。

capture images with for loop

画像をforループでいっぱいキャプチャする 文字をRenderTextureにキャプチャしたくて _camera.Renderをforループで回したらいけた using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class TextsCapture…

sigmoid function in shader

シグモイド関数 float y(float x) { float contrast=16.0;//4.0,8.0,16.0 return 1.0/(1.0+exp(-contrast*(x-0.5))); //return 1.0/(1.0+exp(-(x-0.5))); } 参考 シェーダ

三角波的なfract

fract like triangle wave UVをミラー的に折り返したいとき。 GLSL Grapher で描画 float y(float x) { return abs(2.0*fract(0.5*x-0.5)-1.0); } unityのシェーダーで。 //hlsl float2 sankaku(float2 x) { return abs(2.0*frac(0.5*x-0.5)-1.0); } 参考 gl…

ARFoundation with Second camera

forum.unity.com

zwriteをシェーダーから指定

qiita.com

びょうがのじゅんばん

mochimoffu.hateblo.jp marupeke296.com

証明書の更新

iOS

dev.classmethod.jp

UnityでEventを作る

note.com using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; // コールバックテスト public class MyCallbackTest : MonoBehaviour { // UnityEventの定義 UnityEvent unityEvent; // スタート時…

how to use transform.localToWorldMatrix on c#

answers.unity.com Vector3 lPos; // your local pos Vector3 wPos = transform.TransformPoint(lPos); //is the same as Vector3 wPos = transform.localToWorld * new Vector4(lPos.x, lPos.y, lPos.z, 1f); //or just Vector3 wPos = transform.localToWo…

ARFoundationのprojectionMatrix

projectionMatrixかviewMatrixがバグってる.たぶんprojection. _projMat = _camera.projectionMatrix; _viewMat = _camera.worldToCameraMatrix; これをつかってスクリーンスペースのプロジェクションをしようとしたら、なんかおかしい。 ポストエフェクトを…

apple connect 画像サイズのメモ

iOS

画像サイズ 公式 https://help.apple.com/app-store-connect/#/dev4e413fcb8 サイズ iPhoneのサイズ 5.5 インチ(iPhone 6など) Video 1080 × 1920 (横:1920 x 1080 ) Image 1242 × 2208 (横:2208 x 1242) 6.5 インチ(iPhone Xなど) Video 886 x 1920 (横…

How to split mesh triangles

Split the connected triangles. ポリゴンを分解する gist.github.com

売れるデザインの騒がしさ

xtrend.nikkei.com

URPをためす

www.jyuko49.com

角丸 最高!

baba-s.hatenablog.com

スプライトのためにgrid上に分割したときの座標

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; public class SpriteUV { public static Vector4 GetUv(int idx,int numX, int numY){ int splitX = numX; int splitY = numY; int xx = idx…

unity editorで音が鳴らない

GameViewのMute Audioのせいでした。わかりづれえ

How to modify background shader on ARFoundation

There is ARKitBackground.shader in Library/PackageCache. Copy and rewrite it. I added it so that you can change the brightness. gist.github.com

抽象と具体と作品評価

抽象と具体という視点を持つといい。 他人に作品のアドバイスする時もその視点を持つ。 抽象 作品コンセプトやアイデア whyの問いから生まれる 具体 作り方やディティール howの問いから生まれる コンセプトが曖昧なものや、弱いものは whyの問いがたりない…

"FOOTER"