Thursday, 28 November 2019

Unity Asset Store Black Friday Deals

Use the following coupon code and link for an additional 10% off the Black Friday sales:

Coupon Code: BF2019AFF10

Sunday, 3 July 2016

The Nightwatchman Screenshot

Been working hard on the layout of the hotel for The Nightwatchman (Kickstarter: This is a screenshot of the foyer from the 2nd-floor balcony:

The statue was made in Daz and the main interior was bought from the Unity Asset Store (!/content/8429).

Monday, 13 June 2016

The Nightwatchman Teaser Trailer #2

Well Teaser Trailer #2 is finished and now available on YouTube, please check it out:

Monday, 30 May 2016

A little more on The Nightwatchman

Completed some more on the effects in The Nightwatchman, so here's a little sample:

Sunday, 1 May 2016

The Nightwatchman Teaser Trailer

So we have a teaser trailer ready for our game, hope you like it..

Kickstarter campaign will be launching soon...fingers crossed.

Wednesday, 24 February 2016

Fixing Daz Character Eyes in Unity

So one of the things you may have noticed when you imported your Daz character into Unity is that the eyes do not retain their colour. There's also the matter of the eyelashes, but let's address that in another post.

Anyway, back to the point: what's up with the eyes!

Well the problem is with the way they're exported from Daz as well as how they're imported into Unity. The texture for the eyes contains the texture for everything related to both eyes in the one file, and this is the first part of the problem.
The second part is when the model is actually in Unity. Part of the import process creates a "Materials" folder and uses the textures in the .fbm folder to create the materials.

Let's take a look inside the "Materials" folder:

If you click on the image above you'll see that there are 3 Materials associated with the eyes:


The Cornea material is what's causing us the issue because it is completely blank. What the cornea material is representing is the pupil and the iris, so this part:

Okay, so let's back up a second. I said that there were 3 materials, but don't we just need the cornea? Unfortunately not. The eye is actually split into 2 components:

1. The Sclera (more commonly known as the whites of the eye)
2. The cornea (comprising of the pupil and the iris)

The 2 RyBelle_eyes0x files are just two different eye colours, blue and the green for my character. But they are making up the Sclera portion of the eye even though the base texture contains all portions of the eye (including the tear ducts, etc.). So how do we fix this? Well, it's quite easy really. Let's start with the Sclera.

Go into the .fbm folder for your model and open up the eye texture you want (blue or green) with your favourite image editing software (I'm using PhotoShop as part of a Creative Cloud subscription). Select one of the Sclera and crop the image so it looks something like this:

Now clean it up so we only have the part we want:

Okay, so now that looks like something we want. Save the file with a different name (so that you keep the original just in case) and it should save into the textures folder.

Now go back into Unity and check inside the textures folder (the one ending .fbm) and make sure the Sclera is there:

Now the file is there it should have imported as a texture, but let's check. Click on the new image (I called min Sclera) and look in the Inspector and the Texture Type should be Texture. If not, click in the drop-down list and select Texture and click Done.

Now let's go into the Materials folder. The easiest way to tell which RyBelle_ material is being applied is to click on one and then go over to the inspector and change the color next to Albedo in the Main Maps section:

I changed the colour to Red to make it obvious. If I've changed the colour on the correct material, then I'll see this:

Now I know that I have the correct material selected I revert the colour change (Ctrl + Z or just use the colour picker to select white again) and click on the circle next to Albedo in the Inspector:

and select your Sclera texture by double-clicking it.

You may notice a slight colour change in the eyes now.

Okay, now let's finish. Go back to the original texture that contained all the parts of the eyes and select the cornea (pupil & iris), just like we did earlier for the Sclera, so you end up with the following:

Save it as a new file and make sure it shows as a texture in Unity once you're done (again, just as we did earlier).

Now go into the Material folder and select the Cornea material and select your new cornea texture. Now it looks like we're getting somewhere:

But where are the pupils? Well, that's because of the wrapping of the texture in the material, so it's a really easy fix. Select the Cornea material again, then change the Tiling X & Y values in the Main Maps section and change them from 1 to 10. 

I also adjusted the "Smoothness" and "Metallic" sliders to get a better effect and now the eyes look like this:

They actually look like eyes now! You can also play around with the "Eyes Reflection" material if you're not 100% happy, but this is the end result:

I guess all that's left is to address those pesky eyelashes, but I'll tackle that at another time and another blog post.

Monday, 22 February 2016

Using Daz Animations in Unity

In a previous post the steps for importing a Daz character in Unity palov vidaurrof asked if there was a way to export animations from Daz so that they can be utilized in Unity using the Mecanim animation system. This post answers that question.

Note: This tutorial uses Daz Pro Edition (64bit) (from Help > About Daz Studio) and Unity 5.2.0f3. My system is a first generation Wacom Cintiq Companion running Windows 10 and using an Intel 4600 Graphics Card.

So let's start in Daz. For this tutorial Victoria 6 is being used with Toulouse Hair, pink shorts and top so there's nothing getting in the way of you seeing what's going on with the model. Obviously, you can use whichever model you like.

Here's my Daz scene:

Now let's add some animation to this. We're going to use aniMate Lite here, but the steps should be the same if you have aniMate 2. aniMate Lite is already docked to the bottom of the workspace, but if you can't see it click on Window > aniMate Lite:

Here is the aniMate window:

Along the bottom of the aniMate window you can see some items in blue. These are complete animations ready to use that you can drag onto the timeline and if you hover your mouse over the animation, then it will run against the currently selected character in your scene.

For the purpose of this tutorial we are going to use the first animation: crouch and jump. Click on the "crouch and jump" animation and drag and drop it onto the Timeline.

Before we go further, let's take a quick look at the aniMate controls. They are described below:

Press Play and you will see the animation run and loop (unless you turned looping off by clicking on the "Loop animation" button). 

Note: if you leave the animation as looping, it will not import into Unity that way so you will have to set that within Unity.

When we dragged the animation on the timeline it did not line up with the start of the timeline, so we're going to drag that back to frame 0 of the timeline so that the animation plays straight away. You'll also notice that the animation will stop, or loop, at the end of the "crouch and jump" animation, this is because there's no other animation on the timeline, so that's really neat as it saves you trimming the animation.

OK, now we've dragged the animation to Frame 0 of the timeline just by clicking and dragging:

Now there's no gap when the animation is played. So now we have a character in Daz and it has an animation, but there's one more thing we need to do before we can export it. Right click in the blank space under the timeline and click "Bake to Studio Keyframes":

Click "Yes" to transfer the animation from the aniMate timeline to the Daz Studio timeline:

Now you are ready to export, so click "File > Export".

Type a name for your file and choose a location to store it in (making sure you've selected .fbx as the file type) and click "Save".

Make sure you select "Animations" and "Morphs" and click "Accept".

You'll see a progress bar while the export completes. Once complete, you now have a model with animations to import into Unity.