Jump to content

engine.projection.setMaterials doesn't work


photo

Recommended Posts

Hi.

I just simpy want to use AppProjection with different post materials on its "screens" (implementing bezel_x analog right way), and it seems like  engine.projection.setMaterials is a thing that i need. Trying to call this in world.init or even world.update does nothing. And even calling this function with wrong material name doesn't make an error (unlike engine.render.setPostMaterials), so, it isn't trying to do anything?

It's a bug or i'm doing it wrong? Thank you!

Edited by dmitry.vavilov
Link to comment

Hi Dmitry,

There is script logic (in core package: core/scripts/system/wall.h : set_projection function) where post materials from active player is applied to all projection displays. You can disable it and set engine.projection.setMaterials by your own.

I attached modified file from core package (from sdk version 2.5). You need to create core folder near core.ung package, and add this file by path: "core/scripts/system/wall.h".

wall.h

Link to comment
×
×
  • Create New...