Grasshopper

algorithmic modeling for Rhino

How can I render Mesh colors?

I got those from Geco, as an irradiation level indicator. But when I render it, I am simply getting the color of a layer in which these meshes have been baked.

Any help?

Thank you.

Views: 20317

Replies to This Discussion

I've just woke up from nap with this massive h...sorry, I said, post in my inbox.

Why any English teacher teaches you this things?

Slang Primer 101, David, waiting for it :D  

 

 

innuendo is the backbone (no pun intended) of british comedyhttp://en.wikipedia.org/wiki/British_humour

hi vincent,

what am I doing wrong?

 

I need more info. Attach the mesh and/or post the error message that you get in the red component.

And, obviously, you need to change the file path to the image.

no, i need more info. (:

ok i just put your def to grasshopper canvas.

but i can't see the geometry with the colors.

therefor my question!

thanks

Ah, you didn't reference new geometry. The problem is then that you are running Rhino 4. The script uses a method "mesh.unweld" that is not available in Rhino 4.

 

You have to either use Rhino 5 or manually unweld the mesh in Rhino 4.

For the second option:

- Double click on the script component with the error to edit the code

- Comment out the first line (type ' before the line), press OK.

- Bake the mesh to Rhino

- Run the _weld command. Use "0" as angle.

- Reference the unwelded mesh back into GH

 

The problem with this method is that unwelding in Rhino changes the vertex normals so the mesh will look more faceted.

yes, i tested your def with r4.

...

thanks

hello vicente,

your script (as the only thing so far) already took me quite close to my aim to export vertex colour and render them via obj. thanx for sharing!

but there is still one problem:

this should be a smooth transition. somehow the vertex within a face are put out of order.

when i look at a really simple example i noticed that there each vertex colour is export 8 times (right) to the bitmap; wouldn't it be possible write 4 pixel (like on the left) for this 4 vertex mesh? or am i overseeing something?

Vincente answered that on another thread. He needs to explode the mesh into individual triangles in order to make some internal functions work.

This is the thread that Hannes is referring to:

 http://www.grasshopper3d.com/forum/topics/export-mesh-colour-in-c4d

This script is far from a perfect solution but it shouldn't be as bad as that image. Can you post the mesh with vertex colors so I can take a look?

Christian, on the other thread people where trying to render in Cinema 4D, where are you exporting to?

I just installed Cinema 4D to test it and it seems to work perfectly fine. I exported the mesh as a .obj file.

Rhino displaying the mesh vertex colors (no material with texture):

Cinema 4D render in viewport, object has assigned a material with the texture from the script in the color slot:

thank you for your help!

i attached the mesh file. maybe you could just try it to see how it works - because the strange thing is with you horse it example it worked fine for me too but with this example it still looks somehow faceted..

but of course quite likely that i'm confusing something :)

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service