begin process at 2012 05 24 22:22:31
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

3D

 > CUNE AMÉLIORÉ AVEC DES PROTOS

CUNE AMÉLIORÉ AVEC DES PROTOS


 Information sur la source

Note :
Aucune note
Catégorie :3D Classé sous :cube, amélioré Niveau :Débutant Date de création :06/12/2002 Date de mise à jour :06/12/2002 12:54:34 Vu :3 437

Auteur : TheSaib

Ecrire un message privé
Commentaire sur cette source (0)
Ajouter un commentaire et/ou une note

 Description


Source

  • #VRML V2.0 utf8
  • PROTO une_sphere
  • [
  • field SFFloat sradius .5
  • field SFColor couleurde 1 0 0
  • field SFFloat _height 0
  • field SFColor couleurun 1 0 0
  • field SFVec3f trans 0 0 0
  • field SFRotation rot 0 0 0 0
  • field SFFloat cradius .1
  • ]
  • {
  • Transform {
  • children [
  • Transform {
  • children Shape {
  • geometry Sphere { radius IS cradius }
  • appearance Appearance {
  • material Material {
  • diffuseColor IS couleurun
  • }
  • }
  • }
  • }
  • Transform {
  • children Shape {
  • geometry Cylinder { radius IS sradius height IS _height}
  • appearance Appearance {
  • material Material {
  • diffuseColor IS couleurde
  • }
  • }
  • }
  • translation 0 -1 0
  • }
  • ]
  • translation IS trans
  • rotation IS rot
  • }
  • }
  • #Face Avant
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 }
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 0 0 rot 0 0 1 -1.57}
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 -2 0 rot 1 0 0 3.14}
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 -2 0 rot 0 0 1 1.57}
  • #Face Ariere
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 0 -2}
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 0 -2 rot 0 0 1 -1.57}
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 -2 -2 rot 1 0 0 3.14}
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 -2 -2 rot 0 0 1 1.57}
  • #Arrete Gauche
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 }
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 0 -2 0 }
  • #Arrete Droite
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 2 0 0 }
  • une_sphere { sradius .1 cradius .3 _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 2 -2 0 }
 #VRML V2.0 utf8 

PROTO une_sphere 

[ 
field SFFloat sradius  .5
field SFColor couleurde 1 0 0
field SFFloat _height 0
field SFColor couleurun 1 0 0
field SFVec3f trans 0 0 0
field SFRotation rot 0 0 0 0
field SFFloat cradius .1
]

{ 
Transform { 
		children [ 
		Transform {
			children Shape { 
				geometry Sphere { radius IS cradius } 
				appearance Appearance { 
					material Material { 
					diffuseColor IS couleurun 
					}
				}
			}
		

		}

		Transform {
			children Shape {
				geometry Cylinder { radius IS sradius height IS _height}
				appearance Appearance { 
					material Material { 
					diffuseColor IS couleurde 
					}
				}
			}
		translation 0 -1 0
		}

		]
	translation IS trans
	rotation IS rot
	}

} 

#Face Avant
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 } 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 0 0 rot 0 0 1 -1.57} 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 -2 0 rot 1 0 0 3.14} 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 -2 0 rot 0 0 1 1.57} 

#Face Ariere
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 0 -2} 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 0 -2 rot 0 0 1 -1.57} 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 2 -2 -2 rot 1 0 0 3.14} 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 trans 0 -2 -2 rot 0 0 1 1.57} 


#Arrete Gauche
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 } 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 0 -2 0 } 
#Arrete Droite
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 2 0 0 } 
une_sphere { sradius .1 cradius .3  _height 2 couleurun 1 0 0 couleurde 0 1 0 rot 1 0 0 1.57 trans 2 -2 0 }  



 Sources du même auteur

EXEMPLES DE MAISONS BASIQUES
Source avec Zip UNE FORME SANS INTERET MAIS UTILISANT EXTERNPROTO
CUBE AMÉLIORÉ AVEC DEF ET USE
UNE CUBE AMÉLIORÉ AVEC QUE DES TRANSFORM
UN PROTO POUR DEBUTER , UNE SPHERE UN CYLINDRE

 Sources de la même categorie

Source avec Zip Source avec une capture MACRO 3DS_MAX BMP3D par artgile
Source avec Zip Source avec une capture VEHICLE : BASE DE JEU DE VOITURE par XelectroX
Source avec Zip CAUSTICS THROUGH MENTAL RAY par ahmedarous312
Source avec Zip EXPORT DE FICHIER AUTOCAD VERS WMF ET DXF (EN LOT) par angelonay
EXPORTER UN FICHIER DWG par abdou1950

 Sources en rapport avec celle ci

Source avec une capture TEXTE CUBIQUE par sol_badguy_77
CUBE AMÉLIORÉ AVEC DEF ET USE par TheSaib
UNE CUBE AMÉLIORÉ AVEC QUE DES TRANSFORM par TheSaib
UN CUBE EN VRML AVEC INDEXFACESET par TheSaib

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

sketchup [ par salyloo ] bonjour à tousvoila je suis nouvelle et je m'inscri ici juste pour avoir un peu d'aide ^^j'ai téléchargé sketchup pour mon projet d'arts plastique à p Construction de cube 3D [ par gochos ] Boujour,Je cherche les différentes technologies OLAP 3D (language ,logiciels,sociéte de création si possible)qui permettent la représentation graphiqu


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,591 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales