0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

neosでlogix その143

Last updated at Posted at 2023-08-07

概要

neosでlogixやってみる。
練習問題、やってみた。

練習問題

外部画像を表示せよ。

方針

外部画像を取得してマテリアルにして、クアドメッシュにレンダリングする。

実行結果

2023-08-06 22.50.59.jpg

俺コード

FrooxEngine.StaticTexture2D.url = "https://apod.nasa.gov/apod/image/2308/GianniTumino_Moon_Rays_JPG_LOGO_1024pix.jpg"
FrooxEngine.UnlitMaterial.Texture = FrooxEngine.StaticTexture2D.id
FrooxEngine.MeshRenderer.Materials = FrooxEngine.UnlitMaterial.id
FrooxEngine.MeshRenderer.Mesh = FrooxEngine.QuadMesh.id

手順で説明

  • devツールを装着する。
  • 新規>空のオブジェクトを作る。
  • コンポーネントをアタッチする。
    Assets -> Materials -> UnlitMaterial
    Assets -> Procedual Meshes -> QuadMesh
    Assets -> StaticTexture2D
    Renderering -> MeshRenderer
  • 設定する。
    StaticTexture2Dのurlは "https://apod.nasa.gov/apod/image/2308/GianniTumino_Moon_Rays_JPG_LOGO_1024pix.jpg"
    UnlitMaterialのTextureはStaticTexture2D
    MeshRendererのMaterialsはUnlitMaterial
    MeshRendererのMeshはQuadMesh

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?