Fixing Unshaded Blue Geometries in COMPAS/Grasshopper

Hey all,

I’m using COMPAS with Grasshopper and am trying to visualize geometries I’ve created in Python. When I use the “draw” node, all the geometries appear as a solid blue without any shading. This makes it challenging to understand the final result. Does anyone have suggestions on how to fix this?

Thanks!

This is a duplicate of the following discussion:
Default Mesh Color in Rhino - compas - compas (compas-framework.org)

Short answer: install version 2.
Long answer: fork the latest repo and type similar bash commands in the Anaconda prompt:

Step 1 - Clone repo from github

git clone: https://github.com/compas-dev/compas.git
cd C:\brg\2_code\compas

Step 2 - Create environment (if you are using RhinoCode specify the correct python version):

conda create -n compas_dev python=3.9.10

or if you need additional dependencies:

conda create -n view2 -c conda-forge compas_view2

Step 3 - activate environment and install requirements

conda activate compas_dev
pip install -r requirements-dev.txt

Step 4 - Install rhino part, depending if you are using 7 or Rhino 8 Beta:

python -m compas_rhino.install -v 8.0 compas
2 Likes

Thanks, Petras, works perfectly!

1 Like