Seasons demo dev diary : Week 4
> PROGRAMMING
This week was a lot about writing scripts to integrate assets made by William (and William will talk about these assets). But some other few things were done. They’re listed below:
– Updating the particle system
I added some rough particle effects: rain (which was not implemented with snow) and smoke.
They are pretty nasty for now, but they will do the job for the demo.
I also updated the wind effect. Now a single wind effect instance can produce several lines, to increase the visibility of wind.
– Gameplay integration
I implemented scripts during most of the week. Now the file where I put all my inherited script classes is becoming huge since we reached 4000 lines. I should have made 1 file per script implementation but I was too lazy for that. There are about 20 generic scripts that are really used in the game right now.
The funniest thing I’ve done this week was to script some lights. I don’t want to reveal the utility of light (I let your imagination do the job). Instead, I would rather illustrate this with some animation on a scripted light.
– Funny bugs
The most fascinating bug we encountered this week was a texturing issue.
Here is the problem appearing on a wood texture on the right side of the image:
We use png fileformat for our textures. It’s maybe a mistake, but we chose it for the alpha support and the pretty light weight.
This was due to the fact that Photoshop Png Exporter was not taking our custom alpha channel into account and creating its own color definition for pixels with a transparent color (alpha equals 0).
Example with the entire texture of the tree. From left to right : the alpha mask, the color channels we want (rgb), the color channels written by Photosop Png Exporter (rgb), the masking result (pink is transparent).

Alpha mask / wanted color channels (rgb) / color channels by Photosop Png Exporter (rgb) / masking result
As you can see, the colors channels are not conserved by the export process. As a consequence, when we make a bilinear filtering on such a texture, some pixels become whiter than others because they are filtered with white pixels contained under the alpha mask (where the alpha is 0).
To solve this, we could have changed our fileformat (for tga, or even dds), but we have no time for this right now. The solution was to use an old version of the superpng exporter. This old version is not available on the editor website but found on Torque forums here http://www.torquepowered.com/community/forums/viewthread/37667 (direct link: http://fosters.realmwarsgame.com/tools/SuperPNG.zip).
> GD / LD / ART
– Art
Another week dedicated to animation, with a quite diversified tasks’ list : mushrooms, windmills, geyzers and pines. I also set ground and rough background in caves’ screens.
Each interactive object mentioned above has a specific behaviour linked to the seasons. It’s quite easy to find how the windmills work, but what about mushrooms and pines ? Have a guess.
A satisfying design for mushrooms was quite difficult to find. I hadn’t a clear idea of the shape I wanted.
My first thought was to make a single mushroom, big enough to allow the fox to jump on it, but it seemed a little bit too fantasy-like for me. And with his round head and colored points the mushroom was really grotesque.
I liked the idea of a flat mushroom head, like these ones.
But it still was a single big mushroom and I wanted more living stuff !
So I took a pencil and I drew, again and again, and I finally made…a lot of mushrooms. A bunch of mushrooms!
It seemed nice to me, so I made a blender version and animated the mushrooms. The big ones in the middle took 2 hours to animate, but it’s completely my fault. I was making too much details. When I began to realize that it wasn’t very effective, I chose to make the little ones the easy way and it worked! It’s good to know for the future, when I will make mushrooms again for the final version of the game.
Cause yes, all objects we are creating right now are made for the purpose of the demo. By making them, we are learning a lot so we’ll be more efficient later. As we say in France : “it is by forging that one becomes a blacksmith”. Practice makes perfect!
– LD
Not much to say about LD. I made some adjustments in order to have more space to put mills on screens 05, 10 and 11. Screen 11 is really problematic : I’ll have to think about it once more to make it more interesting…or remove it if necessary.
Thanks benualdo π
When the problem appeared, I remembered you talked me about this issue… but I guess it was around a tapas, and probably a Sangre de Toro too. So too much vine flushed my Ram and I couldn’t remember to take care about this a “what rgb is under a full transparent pixel” problem.
So big thanks to the one and unique Guru GPU Whisperer π
I must try your equation!
For the premultiplied alpha “bug”, you could replace your blending equation from:
src*src_alpha+ dst*(1-src_alpha)
by
src*1 + dst*(1-src_alpha)
Premultiplied alpha weirdness (I recently have had the same problem with DXT1 textures that were dark on the borders because DXT1 sets RGB of texel with an alpha of 0 to 0).
Hi Maxim!
Thanks for your feedback. We will think about mushroom details after the demo deadline, but we will think about what you said.
And for LGN, I noticed it, and I have to say that the new css style of the site is awesome!
Hello !
I actually liked the first Mushroom better, it’s more detailed and colorful π
If you make more details on the other mushrooms it would be cooler.
P.S
LGN moved to a new domain, now it’s http://LinuxGamingNews.org
Hey Lucyberad!
For now, we are making the game for PC (windows) target, then I will port it to MacOS, and then to Linux. If all goes right indeed!
(my dream will be to reach Steam or Steam like platform but for now it’s just a dream. And I will not speak about consoles).
Thanks for vitising us!
And BTW, I think Tga will be great too.
It’s always really interesting to know what’s behind the scenes. So, “Thanks for sharing your experience in producing this game !”.
This is the first time I heard about SuperPNG. Indeed: TGA is a really good choice (in my opinion, of course).
As shifty said, i’m really excited to play the demo.
On which platforms do you plan to retail the game? (Please respond: PC ^^)
Lucyberad.
Thanks for your support Shifty π We will need it.
One and half week remains π
It starts to get some shapes ! Really excited to play the demo ! Good works guys !