premunge_scene doesn't have effect with shader generator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
Observed on Panda3D 1.9.4, Xenial 64 bits. In the following example, premunge_scene haven't an observable effect i.e. the first time a model is rendered there is a rendering hiccup. The rendering is smooth without the shader generator.
from panda3d.core import *
loadPrcFileData('', 'basic-shaders-only 0')
from direct.
import direct.
base.disableMouse()
base.camera.
base.camera.
render.
cm = CardMaker('card')
card = render.
card.set_
card.set_pos(-50, -50, 0)
card.set_p(-90)
card.set_scale(100)
models = ['panda', 'smiley', 'box', 'frowney', 'jack', 'teapot']
textures = ['', '', 'maps/envir-
for i, model_info in enumerate(
model = loader.
model.
model.set_x(i * 8)
if model_info[1]:
tex = loader.
model.
render.
render.
LerpFunc(lambda x: base.camera.
base.run()
description: | updated |
summary: |
- premunge_scene doesn't work with shader generator + prepare_scene doesn't work with shader generator |
summary: |
- prepare_scene doesn't work with shader generator + premunge_scene doesn't work with shader generator |
description: | updated |
summary: |
- premunge_scene doesn't work with shader generator + premunge_scene haven't effects with shader generator |
description: | updated |
summary: |
- premunge_scene haven't effects with shader generator + premunge_scene doesn't have effect with shader generator |
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
This is now fixed in the following two changes. /github. com/panda3d/ panda3d/ commit/ b781995
* prepare_scene now properly calls the shader generator:
https:/
premunge_scene is not necessary.
* Reduce the amount of shaders that need to be generated: /github. com/panda3d/ panda3d/ commit/ af57c82
https:/
This should additionally benefit your game's load and run performance. Let me know how it works out.