Hello
@frankiezafe and I are also continuing the monthly workshop sessions in 2014. We are also very pleased to host “Introduction to python in Blender” with @collignon_david on the 8th of February. But with an impulse from @ofersmi, we were keen to explore shaders in Blender. Since it’s going to take a while to go through the subject, we thought we were going to have at least two sessions around this. And since we were impatient to start working on it, we’ve set up the earliest possible Blender workshop of the year on the 3rd of January, at Variable.
So, if you don’t have anything to do on that day. If you’re still on vacation and bored. Come and join us for a whole day of “discovering shaders” in Blender. We’ll start at 10:00 and finish at 18:00, as always.
Please, just announce yourself on this forum, so we know who to expect. Any left over drinks or food from the Saint-Sylvester is also welcome.
Hope to see you there.
Hi,
Good idea, tnx.
When you talk about shader you mean coding GLSL shader in python and not OSL, I suppose ?
Anyway, I’ll be there.
Live & Learn
sorte de modèle événementiel dans le game engine, idée:
print( “—STARTING SCRIPT—” )
def funcA():
print(“funcA called”)
def funcB():
print(“funcB called”)
def funcBB():
print(“funcBB called”)
def autoExec( arg ):
if arg not in eventstrigger:
return
for f in eventstrigger[arg]:
eval( f )
eventstrigger = {}
eventstrigger[“A”] = [ “funcA()”, “funcB()” ]
eventstrigger[“B”] = [ “funcB()” ]
eventstrigger[“B”].append( “funcBB()” )
autoExec( “B” )
print( “—” )
eventstrigger[“B”].remove( “funcBB()” )
autoExec( “B” )
print( “—STOPING SCRIPT—” )
”’
if keypressed == “X”:
if “funcBB()” not in eventstrigger[“A”]:
eventstrigger[“A”].append( “funcBB()” )
else:
eventstrigger[“A”].remove( “funcBB()” )
”’
Merci @frankiezafe pour le workshop, on a appris deux, trois trucs sympas.
Et comme eval() c’est le mal incarné, tu peux remplacer des lignes comme
eventstrigger[“A”] = [ “funcA()”, “funcB()” ]
par
eventstrigger[“A”] = [ funcA, funcB ]
et
eval( f )
par
f()
Ce qui te permettrait surtout, en retouchant un peu le code, de passer des arguments dans tes fonctions.
Live & Learn
Shaders investigation, based on the researches made at the workshop.
A bit of explanations, the code of the shaders and the python script that control them here >> http://frankiezafe.org/index.php?id=243
The blender project >> http://frankiezafe.org/fileadmin/sites/frankiezafe/labo/tanukis/shader/my_first_shader.zip
@juego tested it, it requires a not too old computer, apparently 🙂
Do not hesitate if you have questions about it.
Look nice 🙂
Tnx
Live & Learn
You must be logged in to reply to this topic.