prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
805 stars 134 forks source link

renderman render black #660

Closed dekid69 closed 1 year ago

dekid69 commented 1 year ago

when i render renderman it shows black screen

dekid69 commented 1 year ago

using blender 3.0 renderman (dev branch)

dekid69 commented 1 year ago

and having this error Export failed: 'TokenTable' object has no attribute 'k_hider_bakeudimstride'

dekid69 commented 1 year ago

0001

this is the render too

prman-pixar commented 1 year ago

How are you rendering? IPR? Render->Render Image? It's strange you're getting that error, because you would only go down that code path if you're doing baking.

dekid69 commented 1 year ago

@prman-pixar im using it, when i use blender it shows same results

dekid69 commented 1 year ago

i see the preview image in the render tab but dont see anything in the video file

prman-pixar commented 1 year ago

@deboi238 Video? I'm not sure what you mean by video.

dekid69 commented 1 year ago

when I set blender the render file, i set it to mkv or avi, i still dont see anything.

prman-pixar commented 1 year ago

@deboi238 we don't support rendering to mkv or avi directly.

dekid69 commented 1 year ago

Weird that it works before but it renders nothing? If I use png still doesn't work

On Mon, Sep 26, 2022 at 8:04 AM RenderMan Developers < @.***> wrote:

@deboi238 https://github.com/deboi238 we don't support rendering to mkv or avi directly.

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1258176009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXPW7DRFUDH75YUXB4DWAG3OXANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

prman-pixar commented 1 year ago

I'm not sure. I've never tried rendering to mkv or avi directly in Blender. RenderMan itself doesn't render to those formats; it only renders images. Blender could be assembling the images and rendering an AVI for you, but I've never looked into that before.

Note, if you're rendering to "it", there is no image on the disk. You have to manually save the image out.

dekid69 commented 1 year ago

Ok, although I’m still wondering why I’m still getting black picture/video results

On Mon, Sep 26, 2022 at 8:13 AM RenderMan Developers < @.***> wrote:

I'm not sure. I've never tried rendering to mkv or avi directly in Blender. RenderMan itself doesn't render to those formats; it only renders images. Blender could be assembling the images and rendering an AVI for you, but I've never looked into that before.

Note, if you're rendering to "it", there is no image on the disk. You have to manually save the image out.

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1258190989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXPEGD6BYWOCLYOHBQLWAG4P5ANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

prman-pixar commented 1 year ago

Not sure. Can you check the alpha? Just want to distinguish between if the objects are there or not.

dekid69 commented 1 year ago

How can I chec the alpha

On Mon, Sep 26, 2022 at 9:01 AM RenderMan Developers < @.***> wrote:

Not sure. Can you check the alpha? Just want to distinguish between if the objects are there or not.

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1258270769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXPSUAASRSP7QDJSM73WAHCG5ANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

dekid69 commented 1 year ago

and i have new problem, now when i set render to blender, it stuck at 0% render and if i cancel it, it stays at 0%

prman-pixar commented 1 year ago

@deboi238 I meant just looking at the alpha channel. If you render to "it" and press "G" on the keyboard, that will show the alpha channel.

Not sure about the render being stuck at 0%. I would need a scene file to investigate.

dekid69 commented 1 year ago

By I mean it at 0%, when I render to blender, the render percentage will be stuck at 0%, and when I try to cancel it, blender will freeze on me.

On Tue, Sep 27, 2022 at 11:07 AM RenderMan Developers < @.***> wrote:

@deboi238 https://github.com/deboi238 I meant just looking at the alpha channel. If you render to "it" and press "G" on the keyboard, that will show the alpha channel.

Not sure about the render being stuck at 0%. I would need a scene file to investigate.

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1259871229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXL6R4BRV245FEZ5IV3WAMZUNANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

dekid69 commented 1 year ago

@prman-pixar i figured out whats wrong, something is wrong with the dev branch, if i use the main branch it renders fine

dekid69 commented 1 year ago

never mind since it broked on me again

dekid69 commented 1 year ago

and the dev/main branch keep crashing on me within 5 min rendering

prman-pixar commented 1 year ago

@deboi238 Can you please provide an example file? It's hard to debug this if I can't reproduce this myself, or see any debug logging.

prman-pixar commented 1 year ago

Also, can you also mention what operating system you're using etc.

dekid69 commented 1 year ago

using windows 10 64 bit hardware is AMD RYZEN 5 5600X GTX 1060 6GB 48 GB RAM

prman-pixar commented 1 year ago

@deboi238 Thanks. Can you give me an example .blend file?

dekid69 commented 1 year ago

@prman-pixar testing light untitled.zip

dekid69 commented 1 year ago

it keep crashing within 5-10 min, i tried turning down the thread/change the bucket size 8x8 to 64x64, and more.

dekid69 commented 1 year ago

I fixed the black screen problem but the rendering keep crashing within 15-50 frames

prman-pixar commented 1 year ago

@deboi238 I'm not seeing a crash with your scene, but I've only tried it with IPR. When you say it crashes within 15-50 frames, are you talking in an animation render i.e.: you're doing Render->Render Animation?

dekid69 commented 1 year ago

Yea it render with render animation but crashes with blender

On Mon, Oct 3, 2022 at 4:26 PM RenderMan Developers < @.***> wrote:

@deboi238 https://github.com/deboi238 I'm not seeing a crash with your scene, but I've only tried it with IPR. When you say it crashes within 15-50 frames, are you talking in an animation render i.e.: you're doing Render->Render Animation?

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1266193090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXJL7AUTCTO7UFNBTVTWBNTSBANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

dekid69 commented 1 year ago

@prman-pixar it keep crashing around 35 frames, im using render-> render animation with blender optix de noising

prman-pixar commented 1 year ago

@deboi238 Can you try it without the Optix denoiser turned on, and see if that works? I haven't got it to crash, but I did notice that the memory slowly climbs with each frame, so there could be a memory leak somewhere.

Also, if you do want to render an animated sequence, I would suggest looking at external (batch) rendering.

https://rmanwiki.pixar.com/display/RFB24/Batch+Rendering+in+Blender

dekid69 commented 1 year ago

@prman-pixar weird, i turned off the optx denoiser and it dosent crash, i notice it climbed max 3 GB ram

prman-pixar commented 1 year ago

@deboi238 OK, thanks. I'll see if I can figure out where the leak is happening, but, for now, I would suggest using batch rendering if you need to render animations.

dekid69 commented 1 year ago

it still keep crashing with optx, same goes with batch rendering

dekid69 commented 1 year ago

I tried using IT or blender but still have the same problem

On Fri, Sep 23, 2022 at 4:10 PM RenderMan Developers < @.***> wrote:

How are you rendering? IPR? Render->Render Image? It's strange you're getting that error, because you would only go down that code path if you're doing baking.

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1256786186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXPZOERT6COGUW2AAMDV7Y2FHANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you authored the thread.Message ID: @.***>

prman-pixar commented 1 year ago

@deboi238 It's the same problem where it crashes around frame 15-50? What happens if you switch "Spool Style" to "RIB" in the spool options?

dekid69 commented 1 year ago

@prman-pixar when i click external rendering it dosent do anything

prman-pixar commented 1 year ago

@deboi238 Is there any error messages in the console window?

dekid69 commented 1 year ago

No

On Thu, Oct 13, 2022 at 7:32 AM RenderMan Developers < @.***> wrote:

@deboi238 https://github.com/deboi238 Is there any error messages in the console window?

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1277710685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXL5OGAWZBR6PTP5TNDWDAMRPANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

dekid69 commented 1 year ago

@prman-pixar theres no errors and nothing pops up for anything

prman-pixar commented 1 year ago

@deboi238 I can't reproduce what you're seeing. If you have a different .blend file I can test with, can you please provide it? Also, please include the textures as well.

dekid69 commented 1 year ago

untitled. 2blend.zip

ok, i made another that also keep crashing on me

prman-pixar commented 1 year ago

@deboi238 Your zip doesn't include the textures. Can you please include the textures? Also, your scene has spaces in a lot of the paths, including the blend file itself (ex: C:/Users/edwin/Downloads/gtag stuff/...).

Can you try replacing all the spaces with underscores, and see if that fixes things?

dekid69 commented 1 year ago

I packed the textures in the .blend, if you still have missing textures I can send it to you

On Wed, Oct 19, 2022 at 11:46 AM RenderMan Developers < @.***> wrote:

@deboi238 https://github.com/deboi238 Your zip doesn't include the textures. Can you please include the textures? Also, your scene has spaces in a lot of the paths, including the blend file itself (ex: C:/Users/edwin/Downloads/gtag stuff/...).

Can you try replacing all the spaces with underscores, and see if that fixes things?

— Reply to this email directly, view it on GitHub https://github.com/prman-pixar/RenderManForBlender/issues/660#issuecomment-1284431923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPQCXPN2EFCJLUUJPV77HLWEA6ZLANCNFSM6AAAAAAQTTM3ZA . You are receiving this because you were mentioned.Message ID: @.***>

dekid69 commented 1 year ago

so turns out optix is using my cpu alot and keep crashing it

prman-pixar commented 1 year ago

@deboi238 I only see a bunch of Diffuse_* textures packed with the scene. I'm missing:

C:/Users/edwin/Downloads/gtag stuff/GameObject/cosmeticsroomatlas.png D:\a fukkkakakakakaka\saved tings\textures\cosmeticsroomatlas.png

Did you also try my suggestion of not using spaces in your file paths?

Finally, are you saying it doesn't crash if you use OptiX denoiser? If so, like I said earlier, there seems to be a memory leak when using the OptiX denoiser, that might lead to a crash. I believe I fixed it, if you want to give it a try.

Download the attached file:

d_blender.zip

Unzip it, and copy it to C:\Program Files\Pixar\RenderManProServer-24.4\lib\plugins. You'll want to make a backup of the old version, in case something goes wrong.

dekid69 commented 1 year ago

@prman-pixar so the missing files you said "C:/Users/edwin/Downloads/gtag stuff/GameObject/cosmeticsroomatlas.png D:\a fukkkakakakakaka\saved tings\textures\cosmeticsroomatlas.png" it's like that for me but it wouldn't effect it, it crashed when I use Optix denoiser. the file you sent worked but the memory leak got worse, the file i sent to you, it climbed to 12 GB of ram. it slowly climbed 1 GB every 10-20 frames

dekid69 commented 1 year ago

but i got enough ram to render it out but thanks

dekid69 commented 1 year ago

i fixed the memory issue by increasing the block rendering, thanks for fixing the crashes