Recherche-Search

RTF-ATOM-RSS

  • Flux RSS des articles

Gallerie - Gallery

Finished Comics

Catégories

Calendrier-Calendar

Février 2012
L M M J V S D
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        
<< < > >>
Jeudi 14 mai 2009 4 14 /05 /Mai /2009 20:21
L'avenir est ici :

orfvz-jywa.com

Par orfvz - Publié dans : Diary
Ecrire un commentaire - Voir les 1 commentaires
Samedi 3 janvier 2009 6 03 /01 /Jan /2009 10:53
Voici un script que j'ai fait pour Blender qui permet de lancer des rendus en arrière plan.
Il utilise le gnome-terminal pour rendre une image ou une animation.
Ceci permet de :
  • continuer à travailler sur Blender lorsque l'on fait ses rendus.
  • faire des rendus plus rapidement (ça 'devrait' aller plus rapidement, je n'ai pas fait de test...)
  • ne pas se prendre la tête et à chercher sur le net pour savoir les commandes et les arguments à mettre dans la console pour lancer un rendu en arrière plan (c'est pourquoi j'ai fait ce script)
Blender peut-être fermé, du moment que le gnome-terminal reste ouvert, le rendu continuera.
Donc pour cette version du script, le gnome-terminal doit être installé.
Je n'ai testé ce script que sur Ubuntu 8.10 Intrepid Ibex 64 bits, je ne sais absolument pas s'il marchera sur d'autres OS.
(Séléctionnez le script et 'ctrl+c' pour copier le script)

This is a script made for Blender. It opens a the gnome-terminal for render an image or an animation in background.
This allow you to :
    - continue work in Blender when you render.
    - rendering more fast (it should rendering more fast, i didn't do any test...)
    - don't think and search the commands and arguments to put in the terminal for launch a render in background (it why i made that script)
 
Blender can be closed, since the gnome-terminal is still open the render will continue.
So for this version of this script, gnome-terminal must be installed.
The script work on my Ubuntu Intrepid Ibex 64 bits, i don't know at all if it will work on other OS.

(select the script and make ctrl+c for copy it)

#!BPY
"""
Name: 'Render in Background'
Blender: 248
Group: 'Render'
Tooltip: 'Make render in background (work with gnome-terminal)'
"""
 
__author__ = "Orfvz"
__url__ = ['http://www.orfvz.com', 'http://blenderclan.tuxfamily.org', 'blenderartists.org']
__version__ = "0.1"
 
__bpydoc__ = """\
 
This script open a the gnome-terminal for render an image or an animation in background.
This allow you to :
    - continue work in Blender when you render.
    - rendering more fast (it should rendering more fast, i didn't do any test...)
    - don't think and search the commands and arguments to put in the terminal for launch a render in background (it why i made that script)
 
Blender can be closed, since the gnome-terminal is still open the render will continue.
 
So for this version of this script, gnome-terminal must be installed.
Can you help me make it work on any terminal ?
 
The script work on my Ubuntu Intrepid Ibex 64 bits, i don't know at all if it will work on other os.
Can you help me make it work on any os ?
 
If your can improve it, dont hesitate.
 
To do :
 - Universal terminal
 - Make it work on all OS
 - Auto-center gui
 
 
 
"""
# Created with The_Nerd's GUI creator V2.500000
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# --------------------------------------------------------------------------

# RENDER BACKGROUND v 0.1 by Orfvz (http://www.orfvz.com, orfvz@orfvz.com)
# --------------------------------------------------------------------------
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# ***** END GPL LICENCE BLOCK *****
# --------------------------------------------------------------------------
 
# To Do
#---------------------------------------------
# - Universal terminal
# - Make it work on all OS
# - Auto-center gui
 
######################################################
# Importing modules
######################################################
 
import Blender, os
from Blender import *
from Blender.BGL import *
 
 
######################################################
# GUI - Made with The_Nerd's GUI creator V2.500000
######################################################
 
EVENT_render_b = 10
EVENT_anim_b = 11
Object_render_b = Draw.Create(0.0)
Object_anim_b = Draw.Create(0.0)
 
 
def draw():
    global EVENT_render_b
    global EVENT_anim_b
    global Object_render_b
    global Object_anim_b
 
    BGL.glClearColor(0.500000, 0.500000, 0.500000, 0.0)
    BGL.glClear(GL_COLOR_BUFFER_BIT)
 
    BGL.glColor3f(0.000000, 0.000000, 0.000000)
    Object_render_b = Draw.Button("RENDER", EVENT_render_b, 8, 8, 76, 36, "Render the current frame in background.")
    Object_anim_b = Draw.Button("ANIM", EVENT_anim_b, 96, 8, 76, 36, "Render the animation in background.")
 
 
def event(event, value):
    _Input_Events_Callback(event, value)
 
def b_event(event):
    global EVENT_render_b
    global EVENT_anim_b
    global Object_render_b
    global Object_anim_b
 
    if event == 0: pass
    elif event == EVENT_render_b:
        render_b_Callback()
    elif event == EVENT_anim_b:
        anim_b_Callback()
    Draw.Draw()
 
Draw.Register(draw, event, b_event)
 
##---Begin user code---
 
def _Input_Events_Callback(Event, Value):
    if Event == Draw.ESCKEY and not Value: Draw.Exit()
 
# Render an image
def render_b_Callback():
    lance_commande(0)
 
# Render an animation
def anim_b_Callback():
    lance_commande(1)
 
# Send the command to the gnome terminal
def lance_commande(anim):
    # Create a .blend file with your current work in your Temporary directory
    B_BLEND = str(Get('tempdir'))+'/backgroundrender.blend'
    Save(B_BLEND, 1)
     
    # Create the command for send to the gnome-terminal.
    # First case for the command for an animation, second for a simple frame.
    # The command finish by a 'rm' for delete the .blend file created before.
    if (anim):
        START_FRAME = str(Get('staframe'))
        END_FRAME = str(Get('endframe'))
        commande = 'setsid gnome-terminal -e "blender -b '+B_BLEND+' -s '+START_FRAME+' -e '+END_FRAME+' -a" && rm '+B_BLEND+' &'
        # I have tried replace gnome-terminal by $TERM. It opens xterm on my computer, but xterm open a new instance of Blender...so the command cant work
        # commande = 'setsid $TERM -e "blender -b '+B_BLEND+' -s '+START_FRAME+' -e '+END_FRAME+' -a" && rm '+B_BLEND+' &'
    else :
        CURENT_IMAGE= str(Get('curframe'))
        commande = 'setsid gnome-terminal -e "blender -b '+B_BLEND+' -f '+CURENT_IMAGE+'" && rm '+B_BLEND+' &'
        # commande = 'setsid $TERM -e "blender -b '+B_BLEND+' -f '+CURENT_IMAGE+'" && rm '+B_BLEND+' &'
 
    # Send the command to the os
    os.system(commande)

Par orfvz - Publié dans : 3D - Communauté : video arts visuels Visual arts
Ecrire un commentaire - Voir les 0 commentaires
Samedi 27 décembre 2008 6 27 /12 /Déc /2008 13:09

Un petit petit speed painting pas terrible...les yeux, le nez, les cheveux sont à revoir; par contre j'aime bien les couleurs. Fait sous Gimp à la palette graphique.

A little speed painting not very good...the eyes, the nose, the hair need to be redone; but i like the colors. Made on Gimp with a graphic tablet.
Par orfvz - Publié dans : Painting - Communauté : illustrateur
Ecrire un commentaire - Voir les 0 commentaires
Jeudi 25 décembre 2008 4 25 /12 /Déc /2008 18:10


Après presque 10 jours, voici mon modèle fini. Au finat ça ne me ressemble pas vraiment mais au moins je suis allé jusqu'au bout. Je vais pouvoir commencé à bosser sur la vidéo que je voulais faire avec ce visage 3D. Dossier à suivre.

After 10 days, this is the finish model. At the end, it doesnt look exactly me but for one time i go until the end. I will be able to begin work on the video i wanted to do with that 3d face. To be continue...


 

Par orfvz - Publié dans : 3D - Communauté : Infographie
Ecrire un commentaire - Voir les 0 commentaires
Dimanche 21 décembre 2008 7 21 /12 /Déc /2008 12:48


Gros gros problème de topologie sur mon modèle. J'ai essayé d'arranger ça mais je crois que j'ai encore beaucoup à apprendre. Sinon, j'ai commencé les oreilles....y a encore du boulot !!

Big big topology problem on my model. I tried put it some better but maybe i put it worse !! I need to practice more on that. I have also began  the ear...on that too, there is a lot of work to do.

Front View
I work on Blender.

  Vue de coté.
J'effectue ma modélisation sur Blender.


 

Par orfvz - Publié dans : 3D - Communauté : Infographie
Ecrire un commentaire - Voir les 1 commentaires
Contact - C.G.U. - Rémunération en droits d'auteur - Signaler un abus