From Day To Night ( Animation Idea )

From Day To Night ( Animation Idea )

Postby tuxkartdriver » 18 Oct 2014, 03:23

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:34, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby vlj » 18 Oct 2014, 05:16

This is more engine related that animation related and unfortunately the engine does not support such animation.
Since our shadows and our global illumination are dynamic it would be feasible but porting the static ibl to a dynamic step based one would require some non trivial work (except if you accept freezes for a couple of seconds when changing time of day...).
vlj
 
Posts: 58
Joined: 27 Dec 2013, 04:22

Re: From Day To Night ( Animation Idea )

Postby samuncle » 18 Oct 2014, 06:13

Hello :)

I have a good and a bad new :).

So let's begin with the bad one. It's not possible to make a day/night cycle currently :(.

However many good news. Since we changed the render engine, technically it's possible but not the way you might think.
1) In the new engine, lights and shadows are 100% dynamic. So if you change the color of the sun or its position it will change the shadows and the color of the track
2) The sky is used to make the ambient light. It's called Image Based Lighting. It means that if you have a blue sky, everything will have in the track a blue hue. If the sky is red, well the track will be reddish.
3) The sky is also used for the gloss/specular map. It means that if you put an object with 100% reflexion, it will become a mirror and reflect the surrounding sky.

So if you change, just the sky + the color of the sun, a track will switch from day to night. Damn, That's easy isn't it ? :P.

But, currently we can't change the sky dynamically. As vlj said, it would be feasible but that requires some changes.
Also there is a gameplay problem. One race takes ~3min. The player won't be able to see any change. It's way too fast :(.
If it was an open world like Skyrim it would make sense but for races that take only 3 min to finish I'm not sure if it's a good investment

However a static day/night cycle is easy. It would be only to add something in blender:
Night, Export sun A and sky A
Day, Export sun B and sky B

So when the player load the track, it would be day or night, but it won't change during the race.

That would be easier and better since the player will clearly notice the change.

Sam
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Postby tuxkartdriver » 18 Oct 2014, 08:04

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:34, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby samuncle » 18 Oct 2014, 19:16

Nope, blender materials and stk material are differents.

STK doesn't support advanced transparent material yet :(. So no gloss map for glass. It's unfortunate but that's the reality. For each solid texture you can specify a normal and a gloss map. To make a mirror, the specular map will at 100%.

Currently specular and gloss map are in the same texture. The Red channel is the glossiness and the Green one is the specularity.
Image
User avatar
samuncle
STK Moderator
 
Posts: 752
Joined: 16 Mar 2010, 21:28

Postby tuxkartdriver » 19 Oct 2014, 05:20

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:35, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby Anon » 20 Oct 2014, 02:37

@tuxkartdriver

Have you seen the Track Maker's Guide?

Specifically, the "Materials" section details how to set up how each texture is rendered in Supertuxkart. I think in previous versions, the bubble effect was created by setting one of the values to make it use a custom shader, but it seems to just use a generic transparent shader in the most recent svn/git.
Anon
 
Posts: 208
Joined: 03 Jul 2014, 16:30

Postby tuxkartdriver » 21 Oct 2014, 01:50

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:35, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby Anon » 21 Oct 2014, 04:33

What option did you change? Does it say "Compositing Type" or "Shader"?

"Compositing Type" is what it says with the stable release of the Blender STK scripts, and is meant for STK versions prior to 0.8.2. "Shader" what the option is called if the Blender scripts were recently downloaded from the media repository. It's meant to be used with the development version of STK.

It could be that you're using a version of the scripts that's incompatible with your STK version. It would explain why changing the settings doesn't do anything.
Anon
 
Posts: 208
Joined: 03 Jul 2014, 16:30

Postby tuxkartdriver » 22 Oct 2014, 07:29

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:36, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby Anon » 23 Oct 2014, 00:21

Huh, that's odd. The scripts have always worked fine for me.

Check your track.xml. It should say what version of the track format is used, along with the svn revision of your export script. I think 5 is 0.8.1, and 6 is > 0.8.1.
Anon
 
Posts: 208
Joined: 03 Jul 2014, 16:30

Postby tuxkartdriver » 01 Nov 2014, 01:49

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:36, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Postby tuxkartdriver » 01 Nov 2014, 02:00

-
Last edited by tuxkartdriver on 08 Jan 2016, 21:36, edited 1 time in total.
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Re: From Day To Night ( Animation Idea )

Postby hiker » 02 Nov 2014, 00:45

tuxkartdriver {l Wrote}:Even though, I think that the new ones will not help so much. Because, the developers didn't release the stk 0.8.2 with the new effects yet!

Correct, which is why on all official links we are still pointing to the old scripts. So either old scripts with 0.8.1, or new scripts, but then you need to build yourself (or wait for our beta/rc/release).

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: From Day To Night ( Animation Idea )

Postby Anon » 02 Nov 2014, 02:47

@tuxkartdriver I noticed that the link you posted goes to the blender_25/stkdata directory, instead of just going to blender_25. Just to be clear, you need to install pretty much all the scripts and folders from blender_25 into your Blender's addons directory for the exporters to work properly.

tuxkartdriver {l Wrote}:Even though, I think that the new ones will not help so much. Because, the developers didn't release the stk 0.8.2 with the new effects yet!

If you have enough time, I'd definitely recommend building STK 0.8.2 yourself so you can design and test your track for the latest and greatest version of the game. It's really not hard, you can literally just copy and paste the necessary commands from the wiki if you're running Linux. There's also instructions for Windows and OSX.

Seriously, the new version comes with a ton of effects and options that make it a lot easier to create attractive tracks and objects for the game. Get it if you want to see your track (or any track) in all of its glory.
Anon
 
Posts: 208
Joined: 03 Jul 2014, 16:30

Postby tuxkartdriver » 02 Nov 2014, 05:33

-
User avatar
tuxkartdriver
 
Posts: 71
Joined: 08 Jun 2013, 06:11

Who is online

Users browsing this forum: No registered users and 1 guest