Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader input scatteringOptions is not present #26

Closed
michaeladams opened this issue Nov 5, 2015 · 3 comments
Closed

Shader input scatteringOptions is not present #26

michaeladams opened this issue Nov 5, 2015 · 3 comments

Comments

@michaeladams
Copy link

Hi,

I ran the sample and received the following issues:

  File "F:\dev\Work\tobspr\main.py", line 43, in __init__
    self.skybox = self.renderPipeline.getDefaultSkybox()
AttributeError: RenderingPipeline instance has no attribute 'getDefaultSkybox'

So I commented out the skybox code.

Traceback (most recent call last):
  File "F:\dev\Work\tobspr\main.py", line 61, in <module>
    app = App()
  File "F:\dev\Work\tobspr\main.py", line 49, in __init__
    self.controller.setInitialPositionHpr(
AttributeError: MovementController instance has no attribute 'setInitialPositionHpr'

Commented out the controller code

  File "F:\dev\Work\tobspr\main.py", line 61, in <module>
    app = App()
  File "F:\dev\Work\tobspr\main.py", line 58, in __init__
    self.renderPipeline.onSceneInitialized()
AttributeError: RenderingPipeline instance has no attribute 'onSceneInitialized'

Commented out the onSceneInitialized...

  File "F:\dev\Work\tobspr\main.py", line 62, in <module>
    app.run()
  File "F:\dev\Panda3D-1.10.0\direct\showbase\ShowBase.py", line 2979, in run
    self.taskMgr.run()
  File "F:\dev\Panda3D-1.10.0\direct\task\Task.py", line 508, in run
    self.step()
  File "F:\dev\Panda3D-1.10.0\direct\task\Task.py", line 465, in step
    self.mgr.poll()
  File "F:\dev\Panda3D-1.10.0\direct\showbase\ShowBase.py", line 1886, in __igLoop
    self.graphicsEngine.renderFrame()
AssertionError: Shader input scatteringOptions.transmittanceNonLinear is not present.
 at line 412 of c:\buildslave\sdk-windows-amd64\build\panda\src\pgraph\shaderAttrib.cxx

And - I couldn't get past this issue. I initially tried setting up the render pipeline in my existing project, and got the same issue, but I thought it might be because I'm using some custom shaders. So I setup a clean project, and get the same problem. Any ideas? Do I need to throw render some default shader inputs?

@tobspr
Copy link
Owner

tobspr commented Nov 6, 2015

Hi, this is a strange issue, usually you should not have to comment out anything, the errors you get are because you commented out those lines.
I will investigate into this this afternoon, I believe the sample might be outdated.

Cheers,
tobspr

@tobspr
Copy link
Owner

tobspr commented Nov 6, 2015

Hm, can you make sure you checked out the master and not the refactoring_beta branch? In the master branch the functions are named different than in the refactoring branch, so thats what could cause your issue

@michaeladams
Copy link
Author

Gah - sometimes I'm such an idiot. I'm not sure what happened there, but yeah - I didn't grab the correct version. After replacing the lightingModels.include, I'm now running the sample.

I did have to disable GI - as it kept displaying the 'computing gi - be patient', and wouldn't continue. But I'm mainly looking to use the awesome lighting / shadowing - so thats not an issue for me.

Thanks for the help anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants