Friday, 9 January 2015

Unity 3D FOVcalculator plugin

If you work with Unity3D and 3dsmax maybe you will need this.
FOVCalculator is a little plugin to calculate Unity camera field of view, based on a 3dsmax camera horizontal FOV.
Below you will see two screenshots.
On both you can see the view of a camera in 3dsmax and another in Unity.
The cameras are both in the same position and with the same rotation.

If the two camera have a FOV of 45.
Then if I use my plugin to calculate the right FOV in Unity.
16 in width and 9 in height with a FOV of 45 = 27.

You can download the Dll file here.
https://dl.dropboxusercontent.com/u/29714084/Blog/FOVCalculator/PolygonExperiment.dll

Installation instructions
You just have to create an "Editor" folder into Unity and put the dll in this folder.
You will find the plugin in the "PolygonExperiment" top bar tab.

If you have any questions,bugs, or ideas to improve the plugin,
don't be afraid to send me an email via the contact form of my portfolio.
http://jonathanlefebvre.carbonmade.com/contact


Custom Event Trigger development (Unity3D and C#)

Hello everybody,

actually, and for my personal game project purpose,
I develop a custom event manager with delegates and events.

There are 4 parts :
  • the events manager
  • the events listener
  • the events trigger
  • the events scripts who are called by the events listener.
For the event trigger script, the user can choose when an action must be trigger and the action type.
For example, here I chose Start (like Awake, Update, ...) and the action is "Show Cursor Action".

Then you press the button add, and you add the action to the list below.
When you press the button, a method will verify if the chosen action must use some data models or not with some reflexion.

It is the first time I use delegate and events, so it is not perfect yet and not finished.
I also put some code on the Unity community forum.
http://forum.unity3d.com/threads/custom-event-manager-how-can-i-trigger-events-base-on-a-list-of-actions.289894/
Saturday, 29 November 2014

Personal game project WIP

Hello everybody,

I hope you are well and that your weekend starts well.
Christmas celebrations are coming soon and I would like to show you some screenshot of my first game who is actually in progress.

Unfortunately because of a lack of time, I must put the PSVita and Mobile version in standby to concentrate myself on desktop version and I hope, finding a job before Christmas.

I would like to wish you (with a little advance) happy holidays.






Sunday, 12 October 2014

New Business Card

Here is my new Business Card.

Thursday, 9 October 2014

My first call to generic methods with Reflexion

Hello everybody,
hope your are well,

so this morning I just finished to implement my first method to call generic methods with Reflexion.
I'm still a junior C# developer so this is really cool.
(I'm almost done with my training in ASP .Net C#.)

This is a little soft in WinForms to encrypt text string with TripleDES, AESManaged and RijndaelManaged.


The generic methods to encrypt and decrypt :
And the method to call the generics methods :
Saturday, 30 August 2014

Sketches with my new Intuos Pro

Some sketches to try my new Wacom Intuos Pro.



Sunday, 17 August 2014

My Multi Devices Game (WIP)

Hi everybody,

after some time, working on my own multi devices little game,
I come back with good news.

The character controller now work on Mobile with virtual input on screen, on Desktop with Keybord and/or GamePad and recently on PSVita trough the PSM.
(PS3/4 and XBox360/One devices are planned but I don't have yet any licences so I cannot test on it for the moment.)

I am actually working on the UI and this is a little harder than I expected.
Update : A custom input manager is now implemented.


Thursday, 31 July 2014

Warrior WIP

Warrior women

Breakdown :
1. Sketch
 
2. Base colours
3. Lighting and shadows - First pass 
4. Lighting and shadows - Second pass (WIP)
5. Final version (cleaned and with some more little details)


Friday, 25 July 2014

Some sketches

Some sketches.



Monday, 31 March 2014

Another Maya Mel Script

This time it is a little Mel script to convert degrees to radians or radians to degrees.
Of course maya have a embed procedure for that but it is much more efficient to have a mini interface to do the math and past result in the clipboard.

[Download]


Monday, 17 March 2014

Third Player Controller Part02 (Unity) (Update 26/03)

Hi everybody,

Last few days I started to re-do some stuff on my TP Controller.

I entirely recode the camera occlusion/collision and lock system.
And add some improvement to the  rest of the code.

I also intend to redo the character rig and animation before coding the main part of the climbing system. (The main goal of this project.)

I really think it is my biggest coding experiment and I learned a lot of things about C#, about coding in general and about myself, improve my technical skills and makes me happy to do something functional .

I will record a little video like the others to show the system in action.


So to update this article, I post today an image of the new IKFK Rig in Maya 2012.
(IKFK Arms, IK Legs and FK Spine)
I tried many IK spine solutions, but the IK spine with the advanced twist control in Maya destroy my IKFK arms and I don't know why, so I will use FK spine who is not so bad.
There is also driven keys on IK foot and FK fingers.

The character mesh and skinning are in progress. I will use a proxy style with non attached parts to simplify skinning and because it is not my main goal to have a complex character mesh to skin.

Monday, 10 February 2014

Scifi Elysium thermal grenade

Science fiction thermal grenade from Elysium. (Movie)
Original concept from Ben Mauro.
http://www.artofben.com


Final texture



Monday, 27 January 2014

Two new Unity plugins (WIP)

Hi everybody,

last few days I've been busy on a vertex paint plugin for Unity.
The UI is now ready, and I actually work on the brush tool.

I really would like to do a vertex painter tool like the one in the UDK.
This is a first screenshot,and in extra, a little script I did to calculate FOV from 3dsmax to Unity.



Saturday, 16 November 2013

My first Mel (Maya) script UPDATE(2/1/2014)

Hello everybody,

since a few days I've started to learn mel script for Maya,
and I would like to share my work in progress from my first script with the interface.

This is a script for exporting FBX for Unity, with some little options.
1.1) Select All(Geom) = select all geometry in the scene.
1.2) Clear selection = clear all selection in the scene.
2.1 and 2.2) Export selected and export all, are working with the bottom list.
3.1) Export objects centred to 0,0,0.
3.2) Export objects in separate files.
4.0) Add or remove items to the list, and clear all the list.

the script is still wip but the main functions behind buttons are almost finished.
I also think it's a very good start to learn an unknown programming language.

thanks for your support.

Update with some more buttons.
One to select object(s) in the scene from a selection on the bottom list,
two prefix and suffix export name options, and a refresh button to refresh list if you delete an object in the scene.

First final version. [Download].
It must be place in "C:\Users\UserName\Documents\maya\scripts"
This version save FBX(s) on the C drive.
To change that, change the line 230 : FBXExport -f ("c:/" + $vPrefix + $o + $vSuffix + ".fbx") -s;

For any problem, bug report, or implementation ideas, contact me by mail or just leave a comment.
lefebvrejonathan.pro@gmail.com

Happy new years.
Sunday, 22 September 2013

ZBrush Seamless textures rendering method

Hi,

I post today a little method I wrote, for ZBrush seamless sculpting and rendering.

Sometimes a little seam can happen, depending on the ZBrush matcap.


ZBrush
-------
1. Create a square document. 1024, 2048, ... exp2
2. Create a 3d plane and convert it to "Polymesh3D".
3. Divide it without smoothing.
4. Press "F" to frame the plane on the canvas.
5. Sculpt it with "wrap mode 1" on brush curve options. (For seamless sculpt.)
6. After sculpt and maybe polypainting, you can now render your seamless maps. (Diffuse, normal, etc)
7. In Render DeActivate "Shadows" on "Render Properties".
8. Activate Best render mode in top of render panel.
9. Do a "Best Preview Render"(BPR)
10. Export canvas image with ZapLink. (In "Document" panel. Before configure target app.)
(Ex: Photoshop)
11. Press "Drop Now".

Photoshop
----------
1. Do a an "Offset" and clean if needed.
Wednesday, 5 June 2013
My Portfolio

www.jonathanlefebvre.carbonmade.com

My CV

3D CG Artist (FR)
.Net C# Developer (FR)
Tuesday, 23 April 2013

Third Player Controller Part 01 (Unity) Update 15/12/2013

To change of 3D modelling and increase my knowledge in C# for Unity,I started a new project of coding a Third Player Controller.
Of course the other projects are not cancelled but just in standby.
I must do other thing, and discover other things, than modelling and texturing.

I will detailed the project and the different steps to do or who are already done.

This is for now some ref I found on the internet.

Link to the section 4 of the Game Programming Gems 2 (Google Book)
Game Programming Gems 2

Some interesting books
Dev Books

An article on Stick Motion
Stick motion

An article on Third Person Camera Control
Third Person Cam Ctrl

And a first scheme of a Third Player Setup (Char and Cam)

  

Update 24/05/2013
I'm actually finish the first part of the rig of the character. (In Maya)
The leg and foots are in IK and the arms in FK.)
Good evening.

PS : The character controller code is almost done, but I have some problems with the camera rotation.
I will made a little video when the code will be ok.


Update 28/05/2013
My basic character is finally rigged and skinned.
And after some little tests of baking animation and export with FBX to unity,
it works fine. But one thing strange is that the FBX 2010 works better than 2012.
I can now re-open my animation book from Richard Williams.


Update 02/06/2013
This is the first video with basic animation and basic crossfade code.
I'm actually tweaking the movements speed and animation cross fading between idle, walk and run.
(Idle , Walk speed 1, Walk speed 2, Run speed 1 and Run speed 2)


Some interesting links :
http://www.gameanim.com/2005/06/19/blending-the-future-of-non-linear-animation/
http://aztez.com/blog/2013/03/14/walking-and-running-implementation/

Update 03/06/2013
Second video of this project, with new floor :-), and the three animations. (Idle, Walk and Run)
The animations are, like I said quickly made, and I'm going to restart from the beginning with good timing and other animations for a good smooth blending between each anim.

Idle - Trot - Walk - Jog - Run - Sprint (Optional)


Some interesting links :
http://www.awn.com/articles/gaming/animating-games-naughty-dog-style/page/1%2C1
http://www.peachpit.com/articles/article.aspx?p=22801

Update 05/06/2013
Hi everybody,
after some code revision for camera follow, the camera rotation around player works fine.
(With the right pad stick when the player don't move.)
So this is the 3rd video.


Update 06/06/2013
The code for the camera rotation up/down is now functional.
But it will be for the next video.
And this is a part of the code I use to rotate the camera around the center of the character.

The main function for rotations.(Changing world position of the camera.)




And to aim the good axis of the camera to the character, it is just a custom LookAt.

Update 15/06/2013
New updates for the next days.

- Improve movements with faked physics. (For falling and jumping) OK
- Camera collisions/occlusion WIP
- Camera movements Up/Down lock.



Some interesting links :
http://www.kotaku.com.au/2013/04/why-lara-croft-nathan-drake-and-ezio-completely-suck-at-climbing/
http://www.gamasutra.com/view/news/192538/Video_GDCs_weird_and_wild_Experimental_Gameplay_Workshop.php

Update 17/06/2013
After some search and some headaches about camera collision detection and occlusion,the system I made, with five Raycasts from player head to the camera, work but there are still some problems that I really don't know how to fix.

After reading a chapter from Game Programming Gems book on camera occlusion,
I don't know if my system is the best I can use for this purpose.

In this book they talk about a sphere casting.
Theoretically, it's more easy with sphere.
So I will try with this system.

Update 15/12/2013
After six month doing other things, work among other things,
this is a little update of this project with working moving platforms.
And  I began to work on the climbing system like Uncharted and other 3rd person games like that.

And merry Christmas celebration soon.


Friday, 12 October 2012

Napoleon Gun HighPoly (Update 12/07/2013)

Napoleon Gun project

ZBrush sculpt



Base high poly



Thursday, 7 June 2012

Unity Shader 03

Today an update of my Unity Shader. (Made with Strumpy Shader Editor.)

Two version are available for now.

The first one without alpha, and the second with alpha. (Double sided for the alpha.)
The alpha must be in the alpha channel of the diffuse map.
Here are the options available for now.

Diff,Normal,Spec and Glow maps, flip green for the normal, specular strength and colour,
Specular power/Gloss, Glow strength, and clip alpha for the alpha version.

Maybe a gradient map will be available, but I don't really know how to do that. :(

Good afternoon.

PS: Some things are not working properly, so I will must re-work this sometime in the future, or try to redo the same things only in Cg script when I my knowledges in Cg will be better.




Sunday, 13 May 2012

Unity Shader 02

Hi everybody,

Yesterday, I've made a additional option for my simple NormalMap/Diff/Spec shader in Unity.
This is just a switch (-1 or 1) to can invert the green channel of the normal map.
(On case you don't want to invert channel on Photoshop. :) )
And I think, I'll make an option to increase or decrease the power of the normal map.

 
Copyright 2014 Polygon Experiment