Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by BUMCRACK · Dec 17, 2018 at 03:57 PM · vector3particlesassetsbeta

How can I create vector fields for use with the new VFX Graph?

How can I create vector field 3D textures for free, for the new VFX Graph particle system? There are a bunch of plugins out there, but I'm not exactly willing to pay upwards of $20 for an asset to use just to TEST the beta VFX Graph. I've even looked for tutorials with Unreal Engine, and they seem to all be using either slightly different versions of the same paid plugins, or using premade vector fields.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by mikejichaow · Jan 23, 2019 at 03:41 AM

What i've found so far is you can make a texture3d through code and save it as a .asset file. Here is the example code: https://docs.unity3d.com/Manual/class-Texture3D.html. and to save it you can use AssetDatabase.CreateAsset() found from this thread. Here is another interesting tool to help visualize the 3d texture. https://github.com/raphael-ernaelsten/Texture3DPreview-for-Unity

Here is my full code:

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class Gen3 : MonoBehaviour
 {
     Texture3D texture;
 
     void Start()
     {
         texture = CreateTexture3D(256);
         UnityEditor.AssetDatabase.CreateAsset(texture, "Assets/test/t3d.asset");
         Debug.Log(UnityEditor.AssetDatabase.GetAssetPath(texture));
     }
 
     Texture3D CreateTexture3D(int size) {
         Color[] colorArray = new Color[size * size * size];
         texture = new Texture3D(size, size, size, TextureFormat.RGB24, true);
         float r = 1 / (size - 1);
         for (int i = 0; i < size; i++) {
             for (int j = 0; j < size; j++)
             {
                 for (int k = 0; k < size; k++)
                 {
                     colorArray[i + (j * size) + (k * size * size)] = new Color(i * r, j * r, k * r, 1);
                 }
             }
         }
         texture.SetPixels(colorArray);
         texture.Apply();
         return texture;
     }
 }

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by anasainea · Sep 10, 2019 at 11:21 AM

I made a Vector Field Maker plugin for Unity which has a Free version, check it out here

You can add arrows and drag them and duplicate them to create the effect needed here is a tutorial

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NarxGaming · Jan 21, 2020 at 10:03 AM 0
Share

you can use free version of Houdini and is much easier with far better results! here is link to my tutorial https://youtu.be/VLXYCXRUE5k

avatar image
0

Answer by NarxGaming · Jan 21, 2020 at 10:02 AM

https://youtu.be/VLXYCXRUE5k

TOTALLY FREE AND AWESOME WAY TO MAKE YOUR OWN SDF/VF/POINT CACHES this is a link to my tutorial on how to make your own .vf files for use with unitys vfx graph - conform t signed distance field etc

this use vfx toolbox for unity from github and free version of Houdini .. all links in video description

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HaruLee932001 · Jun 04, 2021 at 05:12 AM 0
Share

Your link isn't avaible!

avatar image AnnoyedShepherd12 · Sep 13, 2021 at 10:24 AM 0
Share

Hey, The link seems to be unavailable. Could you post the correct one pls...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

188 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Javascript and start Assets not available 1 Answer

How to generate assets along a vector3 0 Answers

Lag When Instantiating Particle System Prefab On Collision 0 Answers

Vector3 name = new Vector3() vs. Vector3 name.set() ... which is faster? 3 Answers

Bacteria/Cell Growth 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges