# Vector CrossProduct bug?

**URL:** <https://discourse.mcneel.com/t/vector-crossproduct-bug/59236>\
**Category:** Grasshopper\
**Created:** [March 28, 2018, 6:29pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236 "2018-03-28T18:29:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 6:29pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/1 "2018-03-28T18:29:46Z")

</div>

Hi @DavidRutten, i am facing below using GH in RH6:

 ![grafik](https://global.discourse-cdn.com/mcneel/original/3X/a/f/af2fe49b00db0de5c1d9bfed9013678f03d71b0a.png)

Is there maybe something wrong using VectorCrossProduct ?

\_  
c.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [March 28, 2018, 6:43pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/2 "2018-03-28T18:43:04Z")

</div>

Hi @clement,

The attached seems to work:

[clement.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/f/c/fceb93ae160464417befecfa6fb6a135c41223aa.gh) (3.0 KB)

This too:

```auto
import Rhino
x = Rhino.Geometry.Vector3d.XAxis
y = Rhino.Geometry.Vector3d.YAxis
z = Rhino.Geometry.Vector3d.CrossProduct(x, y)
print z

```

What am I missing?

– Dale

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 6:50pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/3 "2018-03-28T18:50:02Z")

</div>

thanks Dale, you’re missing nothing, but i did.

🤦‍♂️

I just found that this is not the vector cross product i am using in the first post. You’re using the “right” one which explains it.  
\_  
c.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [March 28, 2018, 6:51pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/4 "2018-03-28T18:51:08Z")

</div>

Nice! I think I’ll call it a day now that I am ahead…

– Dale

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 6:58pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/5 "2018-03-28T18:58:47Z")

</div>

The CrossProduct component above is actually from the cycles for grasshopper shader components @nathanletwory. I’ve just double clicked on the canvas and typed “Cross…” then inserted that in the believe i could use it on 3d vectors.

The python editor on the left was shown for reference only, it gave what i expected.

\_  
c.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 28, 2018, 7:10pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/6 "2018-03-28T19:10:38Z")

</div>

The shader nodes don’t do any meaningful data operations in Grasshopper. They really only front the shader graph nodes in Cycles.

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 7:13pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/7 "2018-03-28T19:13:54Z")

</div>

Thanks @nathanletwory, since i cannot use cycles anymore using the GEN1 AMD card i guess i can remove that. I do get this on every GH start as well:

![grafik](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/4/44a5af5c51204e078e94efb7632a7e6849d29646.png)

What do i need to remove to get rid of it without spoiling my install ?

\_  
c.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 28, 2018, 7:17pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/8 "2018-03-28T19:17:00Z")

</div>

Well, you can just remove the GhShaderNodes files. There were some changes to the shader nodes in the wrapper code, your gha is probably out of date.

Note that you still can render using CPU… 🙂

Edit: I am in the progress of rewriting the plug-in in C#

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 7:27pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/9 "2018-03-28T19:27:32Z")

</div>

> [@nathanletwory](#):
>
> Note that you still can render using CPU…

Using the default install ? I do not have that to select as renderer:

 ![grafik](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/a/4aa32a05b647bda84647c36d9e33c13f326e0499.jpg)

btw. i stil can render using my old card in blender using [this](https://blenderartists.org/forum/showthread.php?435859-Blender-2-79-RC1-is-out&p=3227661&viewfull=1#post3227661) stupid workaround,but i’ve been more into eevee…  
\_  
c.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 28, 2018, 8:33pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/10 "2018-03-28T20:33:09Z")

</div>

I meant using `Raytraced`. The CyclesForRhino plug-in is actively blocked by Rhino.

Re stupid workaround: it is possible to get your old card working, but it will be _really_ slow.

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [March 28, 2018, 8:40pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/11 "2018-03-28T20:40:53Z")

</div>

OK, tried that using raytraced and stopped after it had 8 samples done in 1minute using an old dual xeon 3Ghz. Only thing which is running is ProRender but there are too many issues with that like rendering without a sample goal etc. Is this beeing worked on during V6 ?

\_  
c.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [March 28, 2018, 8:45pm UTC](https://discourse.mcneel.com/t/vector-crossproduct-bug/59236/12 "2018-03-28T20:45:31Z")

</div>

I don’t know what the dev target is for ProRender.
