sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.36k stars 373 forks source link

some parts of the image baked from COPS are black or have rectangular gaps in them #73

Closed dokipen3d closed 7 years ago

dokipen3d commented 7 years ago

example of maps in UE4....

ue4editor_2017-06-22_23-25-43 ue4editor_2017-06-22_23-24-51

both of these look fine in COPS

houdinifx_2017-06-22_23-27-37

dokipen3d commented 7 years ago

Not too familiar with HAPI much (only written SOPs and vex functions before).

But RenderCOPToImage and ExtractImageToMemory seem to be relevant fuctions here in HoudiniApi.cpp. Will keep digging.

mikelyndon-sesi commented 7 years ago

Hi. Can you share your HDA so we can have a look?

dokipen3d commented 7 years ago

Sure here is the one that has gaps/tile artifacts (for some reason github wont allow me to upload a zip)....

https://www.dropbox.com/s/j3kukgle84gi4vi/Rock2.hda?dl=0

And there is also this one which actually manages to crash unreal....

Its a pigs head with a COP texture that uses a SOP trick to get Geometry attributes into COPS layed out in UV space.

https://www.dropbox.com/s/gqze9ixkt3cvmdt/PigHeadCoptextureUnrealCrash.hda?dl=0

This is all in Unreal 4.16, with Houdini 16.0.633 (with its bundles engine plugin) on windows 10.

mikelyndon-sesi commented 7 years ago

Thanks for sharing Daniel. The engineers are pretty swamped at the moment. We're currently exploring similar workflows though. Would you be willing to share more information regarding your goals for baking textures in UE4 and which of your issues are show stoppers so we can prioritize on this side. Feel free to reach out to me at mikel@sidefx.com

dokipen3d commented 7 years ago

Hi mike. I've emailed you with more details :)

dpernuit commented 7 years ago

Hi, I submitted a fix for both of the issues (the crash and the incorrect tiles), it should be available on tomorrow's dailybuild ( 16.0.688 ). The rectangle gaps were actually caused by an incorrect gamma when cooking constant tiles in the image..

dokipen3d commented 7 years ago

Wow thats awesome! Good job! Look forward to using this.