Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

friedasparagus

Bake texture ROP outputs black...

Hello out there,

I've now reached slight hair tearing out stages in experimenting with the bake texture ROP...

I had it working on a simple test between a low res sphere and a high res version with a mountain SOP plugged in (houdini 15.0.469) and now in 15.5 I can't seem to get anywhere with the new bake texture node, it's just spitting out black images for all channels. Anyone else having this problem?

Any help/confirmation of non-madness greatly appreciated... Confirmation of my own idiocy also welcomed :o)

Share this post


Link to post
Share on other sites

Same here.

Adding any material to the hires object helps displaying the channels (like a principled shader). You can RMB > Allow editing of contents on the material and you will find a bakeexports node that seems to take care of what the bake sees. Unfortunately, this does NOT create tangent space normals for me that approximate the hires geometry any more. If you assign the concrete material from the material palette for example, you will see there is something going on in the Nt channel. But these are just the additional normal alterations that the shader does - not the difference between the low and hires object.

Share this post


Link to post
Share on other sites

Hi Johann,

Yes, I discovered that adding a material produced at least something in the other channels, but displacement still a no-show and like you say the tangent space normals not quite what you'd be after. I submitted a bug report a couple of weeks ago, hopefully the fog will clear soon. What I haven't done to this point is break open the material to take a look at the bakeexports node (I have no idea why i didn't... just an oversight I think)

Thanks for piping up though, I was beginning to wonder if I was going mad :o&

Share this post


Link to post
Share on other sites

Just to say you're not going mad :)

I've been having a look at baking textures out in 15.5 and if I add displacement everything goes black. Prior to adding displacement, everything was just dandy with mantra spitting out diffuse, spec etc. 

On the subject of baking , I can't seem to write out ptex files either (rat, tga etc using UDIMs are fine), so wondering whether I'm doing anything wrong. Shall hopefully post a .hip  later... 

Share this post


Link to post
Share on other sites

Displacement renders completely black for me.

Tangent normal renders a flat 127,127,255. If I don't put a grid as a base I can see the silhouette of my scattered objects, but it's just black and 127,127,255, no useful information in it.

 

Share this post


Link to post
Share on other sites
1 hour ago, Octo said:

Displacement renders completely black for me.

Tangent normal renders a flat 127,127,255. If I don't put a grid as a base I can see the silhouette of my scattered objects, but it's just black and 127,127,255, no useful information in it.

 

Yeah, I just downloaded the latest nightly and the problem still persists. I have submitted a bug report and provided a sample scene to SESI, and got response that they are looking into this (as of June 23rd) - given their usual 1-day bugfix speed this might be a bigger issue - I can message back here if I get response from them.

 

Cheers

Johann

Share this post


Link to post
Share on other sites

Hi again Johann,

Yes, no word here either. I've also been hunting through the daily builds with wide-eyed hope and expectation...

Please do let us know if you hear anything,

Cheers,

Henry

Share this post


Link to post
Share on other sites

Hi guys,

Just a heads up that there is movement on the bake texture ROP. Build 15.5.539 has tangent normals working perfectly... :o)

(Displacement still a mystery, hopefully that's on the way too)

EDIT: May have gotten a bit excited, it works with the principled shader but not with a Mantra Surface... still having a poke

Edited by friedasparagus
1 person likes this

Share this post


Link to post
Share on other sites
21 hours ago, friedasparagus said:

Hi guys,

Just a heads up that there is movement on the bake texture ROP. Build 15.5.539 has tangent normals working perfectly... :o)

(Displacement still a mystery, hopefully that's on the way too)

EDIT: May have gotten a bit excited, it works with the principled shader but not with a Mantra Surface... still having a poke

Ha! That was quick of you! Sesi emailed me too that the problem was solved.
I remember reading that they added bake outputs to the principled shader in a previous build - perhaps you have to add the needed bake outputs to your Mantra Surface shader yourself?

Best

Johann

Share this post


Link to post
Share on other sites

Erm... yes, maybe a bit fast of the mark... I haven't actually been as glued to the changelog as it might seem :/

The mantra thing is a bit of a mystery, the bake exports node is in there, it's just not returning anything anymore, and even in the principled shader the displacement channel in the bake exports just seems to be unfinished. If you crack open the bake exports, the inline vex responsible for exporting the 'Ds' channel doesn't refer to the uvobject at all. It only runs if there's some displacement being performed on the high res object and then it only returns the difference between the original highres mesh and the result of the displacement.

Ah well, I'm sure it'll be taken care of. I was up for having a debug, but the other mystery is why the baking stops working (on all channels) when you unlock the principled shader, it made the job a little bigger than I had time for :/

Share this post


Link to post
Share on other sites

I had a similar issue for a while.  It ended up being that my uvs were slightly outside of 0-1 uv space.  It would render the texture correctly for everything in 0-1 and then render a second texture on top of that for the next uv square, let's say 1-2.  Since I only had one uv vert slightly in that coordinate space, most of the texture would be empty and render black.  Adjusting my UVs to all fit in 0-1 fixed the issue.

Share this post


Link to post
Share on other sites

Hi Matthew, that is an interesting one. I'll be sure to keep an eye out for that in future. It always seemed strange though, that the other maps 'normal etc', would generate fine, but displacement was a no show. Thanks for the heads up though!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now