Why some materials don't preview on rendered mode in RH6?

unhandled

#1

Hi everyone,

I’m just testing new functions on rh6 and suddenly I’ve got this problem when trying to connect some of the materials used in the rhino file and reference them in grasshopper. In fact i was trying to reference all the materials at once and automatize this procedure to avoid charging and define them manually each time…

Hope you have some idea about this!

Thanks a lot!

DrNo

problem with materials.gh (6.9 KB)
problem with materials.gh (6.9 KB)

27662056_10155535793706429_1169065051_n|478x299


(Nathan 'jesterKing' Letwory) #2

Just an observation for correctness: For a metal you should set the diffuse color to black (Color), and set the Reflection color to what you want.

Similarly for glass/transparent objects Color is black, but now Transparency color should be set to what you want.

I haven’t looked at your files yet, though.

/Nathan


#3

Thanks Nathan, you’re right, I can’t upload the rhino file, in which the material appears referenced like that, I upload through this link:

The problem is that I have created several materials in rhino for another file in gh and then, open this same gh in a rhino file with the same materials and doesn’t work…


(Nathan 'jesterKing' Letwory) #4

The .3dm file you attached doesn’t contain the GO_1 material your .gh file references. But when I change to any of the materials that do exist it all works just fine:


#5

right, I don’t know what happened with that file, it erased the material, here you are:


(Nathan 'jesterKing' Letwory) #6

Hmm indeed, not all materials appear in the list that pops up when RMB the material port.

I have created https://mcneel.myjetbrains.com/youtrack/issue/RH-43961 for this issue, and it is on the list of @DavidRutten to further investigate (and probably fix).


(Laurent Delrieu) #7

I had also some problems with this component : see this


#8

thanks a lot Nathan!!


#9

any news?


(David Rutten) #11

Was about to start on this one, but the files are gone.
Can you upload them to discourse so they aren’t on an automatic deletion schedule?


#12

This may not be related (or even specific to R6?) but I discovered that a Group component inserted in a geometry flow prevented the grouped objects from appearing in R6 ‘Rendered’ or ‘Raytraced’ modes. The custom Preview ignored the contents of the group, unlike ‘Shaded’ or ‘Ghosted’ where the same objects appear colored as expected. Problem solved by skipping the Group, which wasn’t needed anyway.

On the plus side, I have to say that the integration of an UNBAKED GH model (the steps in the foreground below) into ‘Rendered’ and ‘Raytraced’ modes with Rhino geometry (someone else did the boat) is stunning!! Will be even more so with true materials applied to the GH model surfaces, not just colors.


(David Rutten) #13

Ah thanks. Groups are indeed skipped when adding render meshes. Logged under RH-45900 (round number!).

Hoping to get around to this soon, as I’m rewriting the custom display -> rendered content logic now.


(Nathan 'jesterKing' Letwory) #14

Try some (: just add them to the Rhino document, then select them as input to the preview component.


#15

I’ll get around to that, and may well revisit your GhShaderNodes plugin when rendering becomes my highest priority. Speaking of that, let me suggest (again?) that to make an impressive demo, the GH file needs to show some rendered geometry. Seeing it work is to understand the possibilities instantly. It provides motivation to seek out the details of “how to”.

I love R6 but… there is a lot of trepidation and anxiety exploring the new ground. Concern about R5 compatibility is chief among them, but many other distracting issues too.


(Brian Gillespie) #16

RH-45900 is fixed in the latest Service Release Candidate