Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography



Maxunderground news unavailable

 
First page  Go to the previous page   [01]  [02]  Go to the next page  Last page
 
What the hell Mental ray
show user profile  3joez
I've tried almost everything. Detached geometry, cloned geometry, new geometry, new scene merging... I've got a simple plane with a texture. I bake it. MR says: a ray encountered an invalid color (NaN) using black instead.

And a black spot appears at the center of the baked texture. Unbelievable.

Photobucket

read 599 times
10/26/2014 6:16:58 PM (last edit: 10/26/2014 6:16:58 PM)
show user profile  Mr_Stabby
am i the only one for whom photobucket images never work?

no clue about that problem of yours btw.

read 585 times
10/26/2014 8:14:48 PM (last edit: 10/26/2014 8:14:48 PM)
show user profile  Nik Clark
Can you post the material it's part of?



Click here to send me an emailClick here to visit my websiteClick here to visit my photo gallery on Flickr

read 581 times
10/26/2014 8:52:14 PM (last edit: 10/26/2014 8:52:14 PM)
show user profile  mike_renouf
Random stab in the dark (no pun intended Stabby) maybe you've got some kind of problem related to Mr photographic exposure control? I came across various nasties some time ago when looking at compositing workflow with mentalray. One of which was that some of the render elements don't support photographic exposure.




read 560 times
10/26/2014 11:17:20 PM (last edit: 10/26/2014 11:17:20 PM)
show user profile  Garp
If by 'texture' you mean 'bitmap', the image file has an invalid number in it. A NaN is a floating point number that is incorrectly formed and cannot be used for computation.




read 548 times
10/27/2014 4:34:28 AM (last edit: 10/27/2014 4:50:21 AM)
show user profile  3joez
I suspect Garp is on the right track. I'll test and come back. Meanwhile, let me ask: where did that number came from? If the texture shows correctly, wouldn't that mean that the data(which is forming my bitmap) is not corrupted?
Photobucket

read 540 times
10/27/2014 9:05:56 AM (last edit: 10/27/2014 9:05:56 AM)
show user profile  Garp
I guess that would depend on how a particular renderer handles invalid values. MR replaces the color with black, but they could just as well average the faulty color channel with those of the neighboring pixels.
Or it could be that their diagnostic message is wrong and the problem has nothing to do with a NaN.

You could try to change the value by painting over the area in Photoshop and see what MR says.

Or you could reverse-engineer the file format and search the numeric values for a bit pattern that matches a NaN as defined by the IEEE 754 Standard. You know, be creative :P




read 536 times
10/27/2014 10:16:57 AM (last edit: 10/27/2014 10:18:20 AM)
show user profile  reeves1984
Yeah, I would try resaving the image you're using as a texture

--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 530 times
10/27/2014 10:56:38 AM (last edit: 10/27/2014 10:56:38 AM)
show user profile  3joez
I was almost hoping that the texture was the problem. The image is changed and the problem remains.

Photobucket

read 515 times
10/27/2014 1:44:43 PM (last edit: 10/27/2014 1:44:43 PM)
show user profile  Garp
Well, if it's not the texture, it means that the NaN is produced during some phase of the computation. Good luck with that!
:\




read 509 times
10/27/2014 3:15:11 PM (last edit: 10/27/2014 3:15:11 PM)
show user profile  3joez
Holy cow.
Photobucket

read 502 times
10/27/2014 3:35:05 PM (last edit: 10/27/2014 3:35:05 PM)
show user profile  Pim4
I've seen nan messages before, in mental ray, where I had an empty bitmap slot (bitmap slot with no bitmap assigned) or a vray shader assigned. Maybe something like that?
ungabunga

read 484 times
10/27/2014 7:44:35 PM (last edit: 10/27/2014 7:44:35 PM)
show user profile  3joez
No empty slots, no vray materials around.I've found this Default Contrast shader, DefaultContour shader and DefaultContourOutput shader in the scene materials with the slate editor. What the hell is that? I'm starting to think the scale of my scene is too big. The plane I'm trying to bake from is 10000 unit long and 6000 wide. I've also tried rescaling and guess what: bake is completely white. AAAAAhhhh Autodesk. I'm running out of possibilities, anyway.
Photobucket

read 475 times
10/27/2014 9:52:34 PM (last edit: 10/27/2014 9:52:34 PM)
show user profile  3joez
Just for the record. The black hole goes away when scaling manually a little bit. These are the tools for ninjas.
Photobucket

read 439 times
10/29/2014 12:14:46 PM (last edit: 10/29/2014 12:15:10 PM)
show user profile  reeves1984
scalling what?

--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 429 times
10/29/2014 2:13:47 PM (last edit: 10/29/2014 2:13:47 PM)
 
First page  Go to the previous page   [01]  [02]  Go to the next page  Last page
 
#Maxforums IRC
Open chat window


Support Maxforums.org