KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2020-09-01 to 1 month

LiDARが使えないアプリでの表記

3d scanner appの例 This sample app requires a LiDAR-capable device, such as the 2nd-generation iPad Pro 11-inch and 4th-generation iPad Pro 12.9-inch

iOS端末判別

SystemInfo.deviceModel で取得できる List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names · GitHub

unityで環境マップを有効に

Lighting SettingからEnvironmentReflectionsをCustomにしCubemapをセットしないと、なんか反射しないなー 。skyboxってなんなんだろ

highlight on shader

自作でhighlightをつけたいと思い勉強 wgld.org | WebGL: 反射光によるライティング | 抜粋 void main(void){ //光源ベクトル vec3 invLight = normalize(invMatrix * vec4(lightDirection, 0.0)).xyz; //視点ベクトル vec3 invEye = normalize(invMatrix * …

CustomRenderTextureと波動方程式を勉強

使い方 【Unity】【シェーダ】Custom Render Textureを使ってみる - LIGHT11 CustomRenderTextureを使って波紋エフェクトを作る - e.blog GitHub - edom18/CustomRenderTextureSample custom render texture使い方

ComputeScreenPosで忘れること

ComputeScreenPosを使い、ごにょごにょする際 入出力の構造体にscreenPosという名前を使ってしまうことがあるが この名前は別の値が代入されちゃうので気を付ける 2時間解けた。気を付けろ!

compute shaderまわりでArgumentException: ComputeBuffer.SetData()エラー

unityのバージョンを変えたらcompute shaderまわりでエラーがでた。ArgumentException: ComputeBuffer.SetData() computeBuffer.SetData(indices, 0, 0, computeBuffer.count); tmls.hatenablog.com

認知ネタ

アモーダル補間 隠されると、そこを補間する グラビアアイドルが水着を着てないように見える 主観的輪郭線 カニッツァの三角形 ゲシュタルト要因 近接の要因 近いものが群化 類同の要因 似たものが群化(色や形など) よい連続の要因 つながりがよい形が認識…

A12チップ以上にアプリを制限

Apple Developer Documentation Required device capabilities に iphone-ipad-minimum-performance-a12 をセットするみたい xcodeで手動設定はいけた。 (unity上からできるといいが・・・) iOS14以上じゃないとダメみたい!!

「ついやってしまう体験の作り方」の物語のデザインのとこ2

架空の物語の中で、プレイヤーの成長 穴があれば埋めたくなるから穴さえ認識できればいい=ポケモン図鑑(収集と反復 その20年後とか、物語の中にも穴を開ける 反復で飽きてきたら、テトリスのブロックのように次々にリズムよく問題を出す=問題が未解決の…

「ついやってしまう体験の作り方」の物語のデザインのとこ1

例に出てた二つのゲーム ラスアス=登場人物の台詞と映像のみでストーリーを物語っている。 カゼの旅ビト=ゲーム中に文字は愚か、言葉自体でてこない。 「何があったか」+「どう伝えるか」=物語(ナラティブ) 伝え方はいろいろ 文章・映像・音声 ゲーム …

PostProcessingV2をスクリプトからコントロール

PostProcessingV2をscriptからcontrolする。 public PostProcessVolume ppVolume; var bloom = ppVolume.profile.GetSetting<UnityEngine.Rendering.PostProcessing.Bloom>(); bloom.active=true; bloom.intensity.value=30f;</unityengine.rendering.postprocessing.bloom>

IEnumerator Start()

C# - Unity)IEnumerator Start()の使い方|teratail

Spriteにマスク画像をつける

gist.github.com

commandbufferを使ってレンダリング結果をコピー

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; public class CopyToRenderTex : MonoBehaviour { [SerializeField] private Camera _camera; [SerializeField] private RenderTexture _ren…

"FOOTER"