How to set effects on scene creation...

131 views
Skip to first unread message

Rui Barbosa

unread,
Oct 15, 2017, 9:06:49 PM10/15/17
to marzipano
Hi good people,

I'm having a problem in figuring out how to set color effects on scene creation...
if using the following code the color matrix is not applied on the first render...

......
var view = new Marzipano.RectilinearView(sceneData.initialViewParameters, limiter);
var createSceneParams = {
source: source,
geometry: geometry,
view: view,
pinFirstLevel: true,
layerOpts: { effects: sceneEffects } // set color effects 
};
var mzScene = $scope.viewer.createScene(createSceneParams);
$scope.switchScene(mzScene , 0);
.......

but after the scene is first showed and visible, if i run:
..........
scene.layer().setEffects(sceneEffects);
..........
the problem if i use the second version there will be a "glitch" where you see the image without color matrix applied and then after a few millisenconds you see the effects kicking in....

How can i garantee that the first scene is already showed using the color matrix??  what i'm i missing?

Thanks Rui.

Manuel Cabral

unread,
Oct 16, 2017, 1:05:17 PM10/16/17
to Rui Barbosa, marzipano
Hi,

That should work. Can you check the contents of `sceneEffects` when `createSceneParams` is created or send a link to the application?

Manuel

--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/de4ac8c5-25b1-41ff-b1c3-dfc48d16ed73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rui Barbosa

unread,
Oct 16, 2017, 6:57:23 PM10/16/17
to marzipano
Hi Manuel,
I've managed to make it work....
And i can 100% say it works as is...my problem was after and not during or before the creation was on a transition....

Thank you....
For the record here it goes...

.....
var view = new Marzipano.RectilinearView(sceneData.initialViewParameters, limiter);
var createSceneParams = {
source: source,
geometry: geometry,
view: view,
pinFirstLevel: true,
layerOpts: { effects: sceneEffects } // set color effects 
};
var mzScene = $scope.viewer.createScene(createSceneParams);
mzScene.switchTo();
.......

To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages