Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

CustomMeshObject OnDraw method problem with Rhino Sun light ON

$
0
0

Hello,

I have a strange problem.
The plugin creates its own CustomMesh and overwrites the OnDraw method.

Inside OnDraw the plugin draws 1 box. Works fine.
But if I change the viewport mode to “Rendered”, and I turn On Rhino Sun light, it draws two boxes:
Like this:

If I move around the viewport, the intentionally drawn box follows the viewport orientation change as it should. But not the other box.

But if I change the Sun location, the orientation of the other box changes. So it is linked somehow to the Sun, but I don’t understand why.

Any idea?

Márton

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles