creazione siti web adria

3DS MAX – Rigging – CAT – Skin

3DS MAX – Rigging – CAT – Skin

Rigging a character using CAT and Skin in 3DS Max.

Scene Setup

1. Setup the units using the parameters in the link below:

http://www.lucedigitale.com/blog/3ds-max-micro-reference-manual-unit-setup-interiors/

Create Mesh

2. Create the mesh of the character, and Freeze it.

Create CAT skeleton

3. RIGHT COLUMN> Create> Helpers> CATParent> CATRig Load Save> Bip01 (or ather skeleton)> CLICK AND DRAG to create the skeleton

4. CATRig Parameters>
– Name: give it a name
– CATUnits Ratio: give the height of the character

5. Select a CAT object> RIGHT COLUMN> Motion> modify the skeleton to fit it inside the mesh

a. Move the helper (the tringle with arrow)
b. Move the foot IKTarget (the rectangle under the foot)
c. Move the PelvisBone (the cube inside the pelvis character)
d. Move-Scale-Rotate joints of others body parts etc…

Mirror body parts:

e. Select the right Arm> RIGHT COLUMN> Copy Limb Setting> select the left Arm> Paste/Mirror Limb Settings

Skin

6. Select the mesh> MAIN TOP MENU> Modifiers> Animation> Skin

7. Skin> Parameters> Bones: ‘Add’, add all bones, NOt ADD the helpers!

8. Setup Skin Envelopes and Vertex Weigths, see the lesson:

http://www.lucedigitale.com/blog/3ds-max-skin/

Animate

9. Select a CAT object> RIGHT COLUMN> Motion> Layer Manager> Abs, select the icon with a little green running man

10. Layer Manager> click Setup/Animation Mode Toggle, the icon change to a ‘Green Play’ button

11. Timeline> Play the animation

By |3D Graphic, 3DS Max|Commenti disabilitati su 3DS MAX – Rigging – CAT – Skin

WordPress – MySQL Snippets – Super Utili

WordPress – MySQL Snippets – Super Utili

Una pratica molto professionale consiste nell’accedere e modificare direttamente i dati nel Database di WordPress utilizzando i comandi di MySQL.
Il modo più facile per utilizzare i comandi MySQL è farlo da phpMyAdmin.


# Change Siteurl & Homeurl
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';

# Change GUID
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');

# Change URL in Content
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');

# Change Image Path Only
UPDATE wp_posts SET post_content = REPLACE (post_content, 'src="http://www.oldsiteurl.com', 'src="http://yourcdn.newsiteurl.com');
UPDATE wp_posts SET  guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://yourcdn.newsiteurl.com') WHERE post_type = 'attachment';

# Update Post Meta
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.oldsiteurl.com','http://www.newsiteurl.com');

# Change Default "Admin" Username
UPDATE wp_users SET user_login = 'Your New Username' WHERE user_login = 'Admin';

# Reset Password
UPDATE wp_users SET user_pass = MD5( 'new_password' ) WHERE user_login = 'your-username';

# Assign all articles by Author B to Author A
UPDATE wp_posts SET post_author = 'new-author-id' WHERE post_author = 'old-author-id';

# Delete Revision
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision'

# Delete Post Meta
DELETE FROM wp_postmeta WHERE meta_key = 'your-meta-key';

# Export all Comment Emails with no Duplicate
SELECT DISTINCT comment_author_email FROM wp_comments;

# Delete all Pingbacks
DELETE FROM wp_comments WHERE comment_type = 'pingback';

# Delete all Spam Comments
DELETE FROM wp_comments WHERE comment_approved = 'spam';
#     * 0 = Comment Awaiting Moderation
#     * 1 = Approved Comment
#     * spam = Comment marked as Spam

# Identify Unused Tags
SELECT * From wp_terms wt INNER JOIN wp_term_taxonomy wtt ON wt.term_id=wtt.term_id WHERE wtt.taxonomy='post_tag' AND wtt.count=0;

By |MySQL, Web Design, WordPress|Commenti disabilitati su WordPress – MySQL Snippets – Super Utili

PHP – My SQL – Login

PHP – My SQL – Login

DOWNLOAD

 

Creazione database

Entriamo in phpMyAdmin

In alto posizioniamoci su localhost> mydatabase

Selezioniamo linguetta “SQL”, nell’area di input copiamo i comandi SQL:

CREATE TABLE IF NOT EXISTS `members` (
 `id` int(4) NOT NULL AUTO_INCREMENT,
 `username` varchar(65) NOT NULL DEFAULT '',
 `password` varchar(65) NOT NULL DEFAULT '',
 `email` varchar(255) NOT NULL DEFAULT '',
 `attivazione` varchar(255) NOT NULL DEFAULT '',
 PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

Clicchiamo sul bottone a destra ‘Esegui’

mysql-0008

Creazione Form Login

main_login.php

Invierà i dati a “checklogin.php”, in particolare:
– name=”myusername”
– name=”mypassword”

<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Login</strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="text" id="mypassword"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Login"></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</form>
</tr>
</table>

Check Login

checklogin.php

Interroga il database se
– login corretto -> login_success.php
– login errato -> checklogin.php restituisce un messaggio di errore

<?php

$host="localhost"; //lasciare com'è se utilizzate bluehost
$username="lucedigi_user"; 
$password="mypassword"; 
$db_name="lucedigi_testphp"; // database name
$tbl_name="members"; //Indicate la tabella presente nel database a cui si deve collegare 

// Connetti al server e seleziona il database
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("DB non connesso");

// ricevo username e password dal form HTML
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];

//Protezione da MySQL injection
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

// Invio una query di ricerca nella tabella, all'interno campi username e password
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);

//
$count=mysql_num_rows($result);

//
if($count==1){

// Verifica dati e reindirizza a  "login_success.php"
session_register("myusername");
session_register("mypassword");
header("location:login_success.php");
}
else {
echo "Username o Password errati!";
}
?>

Login Success

login_success.php

<?php
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?>

<html>
<body>
Correttamente Loggato!
</body>
</html>
By |MySQL, PHP|Commenti disabilitati su PHP – My SQL – Login

Corso Base JQuery OnLine – Metodo – getJSON()

Lezione #id-jd-2013-0011#

Il parsing o analisi sintattica è la capacità di analizzare una data grammatica formale di una struttura di dati.
JQuery tramite il metodo getJSON() esegue automaticamente il parsing delle informazioni JSON. Questo ci permette di caricare con una sola istruzione i dati JSON ed utilizzarli nella nostra pagina web.

By |JQuery, JSON, Web Design|Commenti disabilitati su Corso Base JQuery OnLine – Metodo – getJSON()

HTML Corso Base OnLine – Hyperlink – a

HTML permette di definire dei collegamenti di ipertesto, detti hyperlink, che una volta cliccati ci rimandano ad un collegamento ipertestuale esterno alla pagina corrente.

By |HTML, Web Design|Commenti disabilitati su HTML Corso Base OnLine – Hyperlink – a