C4D crashes with Terracotta tile floor material

Feature requests, bug reports and related discussion
Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

C4D crashes with Terracotta tile floor material

Post by Rich_Art » Tue Jul 17, 2012 9:44 pm

Hi all,

See topic title. Can anybody test this?

http://www.indigorenderer.com/materials/materials/327

On the above link you can find the material which crashes C4D...

I just have a simple studio setup with 3 area lights a stage object and an object. When I apply this material and hit render C4D crashes instantly...

I'm on C4D R13 Win7 64bits
Knipsel.JPG
Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: C4D crashes with Terracotta tile floor material

Post by fused » Tue Jul 17, 2012 10:16 pm

Hi Rich_Art,

I am looking into this.

Regards,
Yves

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: C4D crashes with Terracotta tile floor material

Post by fused » Tue Jul 17, 2012 10:33 pm

Fixed the bug for the next release.

Thank you for reporting this issue!

Regards,
Yves

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Tue Jul 17, 2012 10:53 pm

YW Yves...

has it to do with the Material scripting Language??

Peace.
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: C4D crashes with Terracotta tile floor material

Post by fused » Tue Jul 17, 2012 11:11 pm

Rich_Art wrote:YW Yves...

has it to do with the Material scripting Language??

Peace.
Rich_Art. :wink:
It was related to ISL shaders, yes. The bug was causing crashes with very long shaders.

Rather embarrassing bug, so I won't go into detail :)

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Tue Jul 17, 2012 11:18 pm

Haha, no problem. I now avoid that kind of shaders until the bugfix..

Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Fri Jul 27, 2012 9:16 pm

Well with the new release it does not crash anymore but see attachment.
On a cube it doe not look likes the original material (http://www.indigorenderer.com/materials/materials/327) and the surfaces of the cube are separated. (in c4d and in indigo as well)
cube.JPG
I have attached the C4D R13 file and the Indigo file.


Peace,
Rich_Art. :wink:
Attachments
cube_error.zip
(92.3 KiB) Downloaded 261 times
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: C4D crashes with Terracotta tile floor material

Post by fused » Fri Jul 27, 2012 9:28 pm

Rich_Art wrote:Well with the new release it does not crash anymore but see attachment.
On a cube it doe not look likes the original material (http://www.indigorenderer.com/materials/materials/327) and the surfaces of the cube are separated. (in c4d and in indigo as well)
cube.JPG
I have attached the C4D R13 file and the Indigo file.


Peace,
Rich_Art. :wink:
Hi Rich_Art,

the problem of the sperated faces is easily solved by setting the phong angle to something > 90° on the cube.

The other problem however is not so easy to solve. This is due to the fact that Indigo for C4D can't import shaders that use textures correctly.

The reason is a bit technical and has to do with the way how Indigo's scene format describes textures (and how they are queried from within the shader). It wouldn't be impossible to work around, but certainly quite tricky.

I have discussed this quite often with OnoSendai and we agreed that the way it currently works is in many ways problematic, but we haven't got around to change the scene file format yet.

This is also the reason why Indigo standalone currently does not support editing of shaders with textures.

edit: actually, it would be possible for you to fix it manually. Let me know if you want me to describe it to you.

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Fri Jul 27, 2012 9:47 pm

Thanks for the quick reply.
the problem of the sperated faces is easily solved by setting the phong angle to something > 90° on the cube.
If I set the phong angle more than 90 I get shading errors. See image,
The faces won't get separated indeed...But C4D tries to make the cube round. :-)
Knipsel.JPG
edit: actually, it would be possible for you to fix it manually. Let me know if you want me to describe it to you
If it is not to much work for you.. Otherwise I'll try to make my own material within C4D.. We have a whole range of cool shaders etc to work with...

Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Zom-B » Fri Jul 27, 2012 9:59 pm

Rich_Art wrote:If I set the phong angle more than 90 I get shading errors. See image,
The faces won't get separated indeed...But C4D tries to make the cube round. :-)
That is because you don't subdiv your mesh mate. Displacement on 1 quad mesh doesn't make that much sense ;)
Ad a Indigo Subdiv Tag on the mesh, Doing so I even always deactivate angle limitation in the phong tag, that works quite well!
polygonmanufaktur.de

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: C4D crashes with Terracotta tile floor material

Post by fused » Fri Jul 27, 2012 10:04 pm

Rich_Art wrote:If I set the phong angle more than 90 I get shading errors. See image,
The faces won't get separated indeed...But C4D tries to make the cube round. :-)
The attachment Knipsel.JPG is no longer available
Oh, you should also add a Indigo subdivision tag to this object as well, because the material uses displacement. Forgot to mention that :)

If you don't care about the displacement, turn off the displacement channel in the material and set the phong angle back to < 90°.
Rich_Art wrote:If it is not to much work for you.. Otherwise I'll try to make my own material within C4D.. We have a whole range of cool shaders etc to work with...

Peace,
Rich_Art. :wink:
Sure thing :)

4 steps:

1) Extract the pigm. It is just a zip file. 7z should detect that and show the context menu (if you are not using 7z, just change the extension to "zip").

2) Then import the igm (skip this if you alredy imported the pigs).

3) Go to the shader that is assigned to "base-terracota" material's "Colour" channel add the texture that was in the pigm to "Texture 1".

4) In the same shader, look for the line that says
( sample2DTextureVec3( 0 , tint( tile ) ) * 3.0 ) + vec3(0.02)
and replace it with
( sample2DTextureVec3( $tex01$ , tint( tile ) ) * 3.0 ) + vec3(0.02)

And that's it:
done.jpg

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Fri Jul 27, 2012 10:06 pm

LoL you're right. I just noticed the displacement in one of the materials... Duhhh..
I did some subdividing and delete the Phong tag complete. Now it is ok although the material is not as it is intended..
Knipsel.JPG

Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Fri Jul 27, 2012 10:15 pm

Sure thing :)

4 steps:

1) Extract the pigm. It is just a zip file. 7z should detect that and show the context menu (if you are not using 7z, just change the extension to "zip").

2) Then import the igm (skip this if you alredy imported the pigs).

3) Go to the shader that is assigned to "base-terracota" material's "Colour" channel add the texture that was in the pigm to "Texture 1".

4) In the same shader, look for the line that says
( sample2DTextureVec3( 0 , tint( tile ) ) * 3.0 ) + vec3(0.02)
and replace it with
( sample2DTextureVec3( $tex01$ , tint( tile ) ) * 3.0 ) + vec3(0.02)

And that's it:

Thanks.. I'll test this....


Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Zom-B » Fri Jul 27, 2012 10:17 pm

Rich_Art wrote:I did some subdividing and delete the Phong tag complete...
No no no, just deactivate the checkbox for the smoothing angle in the phong tag!!
Don't you see the sharp normal edges in your render?!
polygonmanufaktur.de

Rich_Art
Posts: 39
Joined: Sun Jul 15, 2012 5:37 am
Location: Netherlands
Contact:

Re: C4D crashes with Terracotta tile floor material

Post by Rich_Art » Fri Jul 27, 2012 10:40 pm

No worries guy's.. It is ok now... see image.
cube_error.jpg
Thanks for the help.... I'll try to use this with other shaders as well.



Peace,
Rich_Art. :wink:
Cinema4D R13 Studio + VrayforC4D + UVLayout Pro + 3DCoat + MOI3D
[FONT=Book Antiqua]Neem ook gerust eens een kijkje in mijn galerij en op mijn Vimeo page

Post Reply
16 posts

Who is online

Users browsing this forum: No registered users and 47 guests