Logo

dev-resources.site

for different kinds of informations.

Preview Geometry Nodes on web using React

Published at
8/12/2023
Categories
graph
Author
mohammadtaseenkhan
Categories
1 categories in total
graph
open
Author
18 person written this
mohammadtaseenkhan
open
Preview Geometry Nodes on web using React

Preview Geometry Nodes on web using React

Preview Geometry Nodes on web using React

Geometry Node Graph

Preview Geometry Nodes on web using React

Getting Started

  1. Clone this project: git clone https://github.com/whoisryosuke/geometry-node-graph.git
  2. Install dependencies: yarn
  3. Start the dev server: yarn dev

Open the app in your web browser, you should see a node graph.

Previewing your nodes

This app works by using JSON files with geometry node data exported from Blender using a custom plugin (TBD). But I included the WIP script below, it should work to export some basic graphs (haven’t tested stuff like custom nodes, groups, etc).

  1. Save your file somewhere.
  2. Select the object with the geometry nodes modifier.
  3. Go to the Scripting tab in Blender (or change one of the windows to scripting)
  4. Create a new script (click the “New” button on top of window)
  5. Paste in the script from here
  6. Run the script.
  7. Look inside the folder where your file is saved, you should a JSON file
  8. Copy and paste that JSON file into the src/data/ folder of this app.
  9. Open up the src/App.tsx and swap your JSON filename for the one imported in there.
  10. Hard refresh the browser/app to see changes.

How it works

This app uses react-flow to display the node graph. It provides a lot of nice stuff out of the box, like the zooming and panning.

The nodes are generated from a JSON file that is exported from Blender using a custom Python script. It basically reads the geometry node data and creates a JSON file with the data.

Interested in learning more? Check out my blog, where I break down how this works.

Release

  1. Bump version in package.json
  2. yarn build
  3. npm publish

GitHub

View Github

graph Article's
30 articles in total
Favicon
Get a gist of graph data structure here...
Favicon
Find safest walk through the grid
Favicon
Number of islands
Favicon
Negative cycle with Dijskta(Possible but not optimal)
Favicon
YugabyteDB as a Graph database with PuppyGraph
Favicon
Remove Methods from project
Favicon
Visualize the preferences of cats
Favicon
How to Determine if a Graph is Not Simple Without Checking Every Edge for Loops or Parallelism
Favicon
Disjoint Set Graph Learning
Favicon
Bellman ford algorithm(Single Source Shorted Path in DAG)
Favicon
Safely restructure your codebase with Dependency Graphs
Favicon
Unveiling the Connections: A Beginner's Guide to Graph Theory
Favicon
How is Graph stored in Memory?
Favicon
Graph problems are not hard
Favicon
Como andam as suas Relações?
Favicon
Merge Intervals : A unique Graph-based approach
Favicon
Explaining LinkedIn profile, "1st," "2nd," and "3rd" values.
Favicon
Neo4j and the Power of Graph Databases in Data Science
Favicon
Exploring the Implementation of Graph Data in OceanBase
Favicon
Solving "Word Search" problem
Favicon
Powershell script to call microsoft graph and send email using azure app registration
Favicon
A developer’s introduction to graph databases
Favicon
Graph in R with Grouping Letters from the Tukey, LSD, Duncan Test, agricolae Package
Favicon
How to: Get up to speed and scale with Aerospike Graph on Google Cloud Marketplace
Favicon
Preview Geometry Nodes on web using React
Favicon
Improved Data Point Graph Widget for Cumulocity IoT
Favicon
Six Degrees of Separation Using Apache AGE
Favicon
Next Big Data System
Favicon
The Usability of Graph Data and Graph Algorithms: Unleashing the Power of Connections
Favicon
Accelerate Domain Learning: Explore Application Dependencies with RailsGraph

Featured ones: