Coder Social home page Coder Social logo

rendermanforblender's Introduction

RenderMan for Blender

Onward Walking Teapot

RenderMan for Blender is a render engine addon written for the 3D creation suite Blender.

Installing

To use, install RenderMan, (free from renderman.pixar.com), download the latest release and put it in the addons folder for Blender. See the installation.txt file for detailed instructions.

Getting Help

For support visit the RenderMan Discord Server.

Acknowledgements

Many thanks to Matt Ebb for the initial 3delight/Blender plugin this is forked from. Also thanks to contributors to this release: rgordon, aek, jdent02, jdbener

rendermanforblender's People

Contributors

a-e-k avatar adminradio avatar agentyr avatar atomicperception avatar bsavery avatar carlosdp avatar earlywill avatar erjiang avatar ian-hsieh avatar ideasman42 avatar jdent02 avatar king-wally avatar lightye avatar mattebb avatar michaelybecker avatar mkimish avatar mmdanggg2 avatar mwy3510 avatar ohsnapitsjoel avatar p2or avatar prman-pixar avatar redchillipadi avatar rendermouse avatar retsyo avatar thegasmask avatar zeffii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rendermanforblender's Issues

OSL support.

Currently You can attach an osl node but have no way to set the outputs. Perhaps we could introspect the oso file? Also being able to compile them in blender would be great.

Should we output all materials at the beginning of the ribgen?

Currently we do this in rib:

(output object geometry data to /static/object.rib)
in main rib:
....

for each object

ReadArchive static/object.rib
Bxdf "PxrDisney" "material_id"

We could do:
(output object geometry data to /static/object.rib)
(output all materials to static/materials.rib)

ReadArchive materials.rib

for each object

ReadArchive static/object.rib
Restore State for material_id

This would clean up the rib files dramatically and make ribgen a bit faster. The only downside would be if you had a ton of unused materials in your scene, but on any real scene this would be a huge net win I think

not showing up

I cant find renderman at all in blender ,I have followed the instuctions where to put it when I get everything which I have,followed to the letter
I also get some kind of error message when I start blender,its been suggested to me that I google this up,i wouldn't know how to list it,or even start for that matter.
I have been looking around in blender ,even with the problems it appears everything is working like its supposed to& everything is there except for renderman
the message it gives is nuts if was the case none of the video,or pictures would work I don't think & everything is working, so I don't know
I have a clip of what I get when I start blender
3d a
any ideas?
1 other thing I have not used any 3d stuff in a long time so bear with me
thankx for your time

Add txmake options

Add extra buttons to nodes that use textures to control the txmake process. Currently I should have this done in two days or less. Just adding the issue for tracking purposes.

Unable to load addon: Blender v 2.68a Win 7 sp1 x64

First some background: Originally, PRMan failed to load b/c it couldn't find an RMSTREE. I did not originally install a PRMan20 Studio client since I don't have Maya. I re-installed and told it to install the Maya 2016 PRManStudio and that resolved the first error I was getting.

Now I'm stuck; it fails to import the prman_for_python_3 .pyd. It's unclear to me why..???? Here is the stack I'm seeing:

image

Issues with recent IPR commits

Bug with new IPR features:

Opened my material test, activated IPR. Got this error but it still launched:

X00002 {ERROR} Plugin error: PxrPathTracer: invalid parameter sampleMode).

Went to the node editor and added in a LMLayer node. IPR did not refresh to show the new inputs. Went to select the material tab and Blender crashes.

Log:
Error: EXCEPTION_ACCESS_VIOLATION
R05004 {WARNING} RiEnd called before its proper nesting level.

C:\Program Files\Blender Foundation\Blender>An application exception has occurre
d in PRMAN.EXE.
Error codes: 0x0000006D75696465 0xC0000005 0x00000000 (0x00000008) (0x75696465
)
*** exception ***

If the material tab is already open when IPR is launched, trying to add a node in the node editor gives me this:

WM: failed to allocate texture for triple buffer drawing (out of memory).
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender\2.75\scripts\modules\nodeite
ms_utils.py", line 99, in draw_node_item
item.draw(item, col, context)
AttributeError: type object 'RendermanOutputNode' has no attribute 'draw'

After that I tried different ways of adding and removing a LMLayer. Adding the layer in the material tab triggers a refresh in IPR and shows the new shading. Deleting the layer in the material tab (by selecting 'remove' in the dropdown) does not trigger a refresh. After creating the LMLayer in the material tab, clicking on the node in the node editor crashes Blender with this error:

Error: EXCEPTION_ACCESS_VIOLATION

C:\Program Files\Blender Foundation\Blender>R05004 {WARNING} RiEnd called before
its proper nesting level.
An application exception has occurred in PRMAN.EXE.
Error codes: 0x000000006D756964 0xC0000005 0x00000000 (0x00000008) (0x6D756964
)
*** exception ***

Close to the same, but one different error code.......

Textures are not applied correctly. Even when UV unwrapped.

Ex. If you apply a brick texture to a large plane, the texture will cover a rectangular area in the middle of the plane, but leaves two black rectangles above and below the texture. The texture does not stretch across the entire plane.

Some nodes not working correctly

I'm using the latest blender release on linux, with an up to date PRMan-for-Blender.
I can use the addon and render using prman without problems or warnings.
But some prman nodes are not working correctly for me.

prman_b

and I have warnings on the terminal like these:

/usr/local/blender-2.75/addons/PRMan-for-Blender/nodes.py:98
rna_uiItemR: property not found: PxrLMPlasticBxdfNode.Clear Coat
/usr/local/blender-2.75/addons/PRMan-for-Blender/nodes.py:98
rna_uiItemR: property not found: PxrLMSubsurfaceBxdfNode.Subsurface
/usr/local/blender-2.75/addons/PRMan-for-Blender/nodes.py:98
rna_uiItemR: property not found: PxrLMSubsurfaceBxdfNode.Specular
/usr/local/blender-2.75/addons/PRMan-for-Blender/nodes.py:98
rna_uiItemR: property not found: PxrLMSubsurfaceBxdfNode.Clear Coat
/usr/local/blender-2.75/addons/PRMan-for-Blender/nodes.py:98
rna_uiItemR: property not found: PxrLMSubsurfaceBxdfNode.Misc

NURBS

Are NURBS objects supported? I ask because they are not visible in the render even after doing a convert to mesh operation.

On gooseberry scene, some isues with multi-material objects

WARNING: ('export_objects: problem creating MESH [me_0-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_1-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_2-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_3-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_4-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_5-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_6-PIX_GEO-victor_head.002] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_2-PIX_GEO_watch] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_1-PIX_GEO_watch_ring] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_3-PIX_GEO_watch_ring] in memory.',)
WARNING: ('export_objects: problem creating MESH [me_4-PIX_GEO_watch_ring] in memory.',)

I think multi-material rib gen MAY be able to be done without creating new objects. This would improve ribgen times as well.

Support for bevelled Curve objects?

Firstly, super neat work :)

I get quite a few errors, suggesting that I should convert the bevelled curves in my model to a mesh, rather than saying 'object has no faces' perhaps it should enumerate the objects and tell the user to convert the curves to meshes before sending to prman, (or generate an intermediate .blend with Curves already converted to mesh?)

Spotlight

Sport light size, cone angle, and enabling halo for volumetric light doesn't work.

OBJ issue renderman

there an issue when you import an OBJ and the you want to shot the render it crash and say RPman exited

Metaballs/Blob support

Blender Metaballs are not currently exported, so I decided to try and implement this as a way for me to learn more about coding for Blender and Renderman. I figured I'd create a GitHub issue to track progress and be able to discuss metaball solutions with all of you experts.

I have a fork of the plugin with a modified export.py that outputs all Blender Metaballs to the primary RIB as a single Blobby/Implicit Surface definition. If you're curious, you can find the fork here:
https://github.com/rendermouse/PRMan-for-Blender

I am having trouble attaching shaders to these implicit surfaces, and could really use some suggestions. I tried using the mpoint method stated in this Pixar appnote, but have yet to produce results.

image

Connecting or disconnecting LMLayer node while IR is running causes Blender to crash

Log dump:

WM: failed to allocate texture for triple buffer drawing (out of memory).
Error: EXCEPTION_ACCESS_VIOLATION
R05004 {WARNING} RiEnd called before its proper nesting level.

C:\Program Files\Blender Foundation\Blender>An application exception has occurred in PRMAN.EXE.
Error codes: 0x000000006D756964 0xC0000005 0x00000000 (0x00000008) (0x6D756964
)
*** exception ***

Path problem on Windows 8.1

Blender 2.75a
Try to render a simple scene and get the following in the console:

ERROR: ('Export path [E:\RenderManTest\Scene_0001.exr] does not exist.',)
Error: PRMan: Exited

It looks to me like whatever is building the paths is adding extra backslashes.

F8 ( Blender's global addon reload shortcut ) : ValueError: register_class(....): already registered as subclass

Exception in module register(): '(....)/scripts/addons_contrib/PRMan/__init__.py'
Traceback (most recent call last):
  File "(....)/scripts/modules/addon_utils.py", line 328, in enable
    mod.register()
  File "(....)/scripts/addons_contrib/PRMan/__init__.py", line 90, in register
    properties.register()
  File "(....)/scripts/addons_contrib/PRMan/properties.py", line 1458, in register
    bpy.utils.register_class(cls)
ValueError: register_class(...): already registered as a subclass

Changing material selection results in odd render

In the hair.blend example, changing Suzanne's material selection from diffuse to harimat results in this render:

untitled

This didn't happen yesterday. Changing the selection back to diffuse gives a normal render. I'm not yet using IT.

BTW, the crash when rendering my Blender start-up file twice no longer happens, and never occurred with the Blender factory start-up file, only my simple file. My start-up file is from an old version of Blender and that might make a difference.

Textures with .tex are still trying to be txmake'd

txmake Error: Could not load input image [/home/patrinux/default.tex]
file: /home/patrinux/Documents/prman_for_blender/cornell-box Tutorial_2/textures/default.tex
txmake Error: Could not load input image [/home/patrinux]
file: /home/patrinux/Documents/prman_for_blender/cornell-box-Tutorial_2/textures/
txmake Error: Could not load input image [/home/patrinux/default.tex]
file: /home/patrinux/Documents/prman_for_blender/cornell-box-Tutorial_2/textures/default.tex
txmake Error: Could not load input image [/home/patrinux]
file: /home/patrinux/Documents/prman_for_blender/cornell-box-Tutorial_2/textures/

Interactive rendering issues

When Using an emissive geometry (not a lamp). The transform is not edited.

Complete shader nodetree replacement is not supported.

what is the problem

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender\2.74\scripts\modules\addon_utils.py", line 306, in enable
mod = import(module_name)
File "C:\Users\C. Jack Sparrow\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\addons\PRMan-for-Blender-master__init__.py", line 40, in
from . import engine
File "C:\Users\C. Jack Sparrow\AppData\Roaming\Blender Foundation\Blender\2.74\scripts\addons\PRMan-for-Blender-master\engine.py", line 35, in
import prman
ImportError: No module named 'prman'

Interactive Rendering crashes Blender

Windows 7, Blender 2.75a, Intel Graphics chipset (laptop, latest drivers)

Steps to reproduce:

  1. Load Blender 2.75a, open scene file.
  2. Click 'Start/Stop Interactive Rendering' in the 'Interactive and Preview Sampling' menu.

Blender locks up. Console output shows the following:

image

The scene renders fine via PRMan, just not with IR.

Blender crash when attempting to Interactive Render

Blender version: 2.75 (release)
PRMan addon: 9aecc8b
RenderMan version: 20.1 (non commercial)
Platform: Windows 7 x64

I am unable to use the Interactive Render mode, as one out of two things happen:

  • Blender crashes without any blender.crash.log file being produced (only an Error: EXCEPTION_ACCESS_VIOLATION being produced)
  • PRMan renders to It, but Blender crashes as above when I cancel said rendering

When running from the command line, these are the logs I get.

For the second error (crash after cancelling render):

d:\Program Files\Blender Foundation\Blender>blender -d
Switching to fully guarded memory allocator.
Blender 2.75 (sub 0)
Build: Wed 07/08/2015 10:38 AM Windows
argv[0] = blender-app.exe
argv[1] = -d

Note: No (valid) 'C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\start
up.blend' found, fall back to built-in default.

read file
  Version 272 sub 2 date unknown hash unknown

ordered
 OBCube
 OBLamp
 OBCamera
read file C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blen
d
  Version 275 sub 0 date 2015-07-07 14:56 hash c27589e
Read new prefs: C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpre
f.blend
found bundled python: d:\Program Files\Blender Foundation\Blender\2.75\python
read file
  Version 262 sub 3 date unknown hash
read file
  Version 268 sub 5 date unknown hash
read blend: C:\Users\Amy\Desktop\TPs\untitled.blend
read file C:\Users\Amy\Desktop\TPs\untitled.blend
  Version 275 sub 0 date 2015-07-07 14:56 hash c27589e

ordered
 OBLamp B
 OBLamp G
 OBLamp R
 OBBottom plane
 OBLamp
 OBTop plane
 OBLeft plane
 OBRight plane
 OBBack plane
 OBSphere
 OBCube
 OBCamera
Info: PRMan: Done Rendering. (elapsed time: 00:00:05)
Info: Packed 1 files

ED_undo_push: Pack All Into .blend
Evaluate all animation - 0.000000
        No Actions, so no animation needs to be evaluated...
R90007 {SEVERE}  DisplayWindow failed to send display data (System Error: Invalid argument)
R56005 {SEVERE}  Renderer completing shutdown request. (System Error: Invalid argument)
Error: EXCEPTION_ACCESS_VIOLATION

For the first error (straight crash):

d:\Program Files\Blender Foundation\Blender>blender -d
Switching to fully guarded memory allocator.
Blender 2.75 (sub 0)
Build: Wed 07/08/2015 10:38 AM Windows
argv[0] = blender-app.exe
argv[1] = -d

Note: No (valid) 'C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\start
up.blend' found, fall back to built-in default.

read file
  Version 272 sub 2 date unknown hash unknown

ordered
 OBCube
 OBLamp
 OBCamera
read file C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blen
d
  Version 275 sub 0 date 2015-07-07 14:56 hash c27589e
Read new prefs: C:\Users\Amy\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpre
f.blend
found bundled python: d:\Program Files\Blender Foundation\Blender\2.75\python
read file
  Version 262 sub 3 date unknown hash
read file
  Version 268 sub 5 date unknown hash
read blend: C:\Users\Amy\Desktop\TPs\untitled.blend
read file C:\Users\Amy\Desktop\TPs\untitled.blend
  Version 275 sub 0 date 2015-07-07 14:56 hash c27589e

ordered
 OBLamp B
 OBLamp G
 OBLamp R
 OBBottom plane
 OBLamp
 OBTop plane
 OBLeft plane
 OBRight plane
 OBBack plane
 OBSphere
 OBCube
 OBCamera
Error: EXCEPTION_ACCESS_VIOLATION

The scene I am using to test is this one: https://www.dropbox.com/s/o7xvd8snkd7jtuf/untitled.blend?dl=0

We need a set of simple test scenes/expected images

To make sure we don't break things with checkin (I'm the most guilty here.)

A start of list of scenes/features:
Hair
smoke
duplis
multi-material objects
motion blur - transform
motion blur - deform
dof
light emission
"standard" lights
some simple shader node tree
scene with all geometry types: poly, subdiv etc
particles

Ramp UI needs work

Unfortunately you can't use the Blender Ramp UI easily. We'll have to make our own.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.