You are not logged in.

1

Sunday, June 17th 2018, 10:27am

Fade-In effect at the first scene

Hi,

Using blend, the 4th argument of loadscene function, it can give effect between scene transition, but not seems to be applied at the start scene.
I'd like to have a fade-in effect from black screen at the start scene.
How can I achieve this?

Thanks in advance.

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Sunday, June 17th 2018, 10:45am

Hi,

2 simple options to start.
- make a black layer that has 100% width and height and let it tween to alpha 0 on command.
or
- make a black first scene, as a dummy, and load the next scene on command.
for example.

Source code

1
2
3
4
	<scene name="scene_intro" title="intro" onstart=""  >
		<preview type="grid(cube,64,64,512,0x000000,0x000000,0x000000);" details="16"/>
		<view hlookat="0" />
	</scene>


or have some fun with the zfilter of course.
https://krpano.com/plugins/userplugins/zfilter/#top

Hope it helps.
Tuur
*thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Jun 17th 2018, 3:51pm)