Friday, September 4, 2009

Althea Pills Brisbane Australia

Silverlight 3D

Often, by raising new reporting models, and even new models of interaction, display the need for 3D objects or components in our interfaces.

Speaking of 3D, it is necessary to clarify what we mean kind of 3D. Hereinafter referred to as "simulated 3D" the set of visual techniques to simulate three dimensions, and "real 3D" the set of tools / techniques that support for:

- Management of space in three dimensions (x, y , z)

- Creating and editing three-dimensional models

- Application of 3D transformations (motion, scaling, rotation)

- Provision

camera - 3D Lighting

Silverlight, in the absence of, for example, the library System.Windows.Media3D WPF does not support 3D. Nevertheless, there are several ways to dispose of 3D elements in our interfaces.



Parallax (3D simulation)
The Parallax is a 3D simulation based on two aspects: the relative difference in size and the relative difference in movement between the elements that are near and those far away.




Car.cs





public class Car {

private int xPosition;

private int yPosition;

private int zPosition;

}



CarCollection.cs



public class CarCollection

{

private List cars = null;



public List Cars

{

get { return cars; }

set { cars = value; }

}

}



CarShow.xaml







CarShow.xaml.cs

private void FillCanvasWithCars()



{Random rand = new Random ();



/ / For every car we will create an image of the car and placed it on the Canvas 'cnvCars'



for (int i = 0; i < Carcollection.Cars.Count; i++)

{



/ / Create the image


car
Image = new Image ();
BitmapImage
car.Source = new (new Uri ("../ images / car.png "UriKind.Relative)) ;



/ / calculate, depending on how far you are, how we need to reduce



double scalefactor = 1;

if (Carcollection.Cars [i]. Zposition> 0)

scalefactor = carOriginalSize / Carcollection.Cars [i]. Zposition;



/ / Create the transformation of scaling



ScaleTransform ScaleTransform scaleCar = new () ;

scaleCar.ScaleX = scalefactor;

scaleCar.ScaleY = scalefactor;



/ / Create a translation transformation



TranslateTransform TranslateTransform translateCar = new ();
rand.NextDouble
translateCar.X = ( ) * this.cnvCars.ActualWidth;

rand.NextDouble translateCar.Y = () * this.cnvCars.ActualHeight;



/ / apply transformations from object center



car.RenderTransformOrigin = new Point (0.5, 0.5);



/ / apply transformations in order



transformations = new TransformGroup TransformGroup ();

/ / First
scaling always
transformaciones.Children.Add (scaleCar)

/ / And finally always Travel the

transformaciones.Children.Add (translateCar)



car.RenderTransform = transformations





}}




2.5D (Hybrid)
commonly known as 2.5D to applications that do not support real 3D, but allow projection of components / elements on any level. That is, allow perspective effects on its components.

Silverlight 2 does not allow projection effects to be applied in any of its components. Although you can get to emulate in the case of images.

The technique to achieve this is to create a 2D mesh using triangles - triangular paths - and develop behavior manually manage the movement of each of the points apply for projection.




completed this first step, it is necessary to decompose the image according to the positions of the vertices of the mesh, so that will be N images we will use as of each of the paths of the 2D mesh.




One of the interesting points of Silverlight 3 (and which is now available in version 3 Beta Silverlight) is the ability to make projections of on any 3D plane through the property. Projection.

Or in other words, the ability to perform any kind of perspective on any object (images, video, buttons, text boxes, etc.).. This allows, for example, create whole pages as a 3D component.






MainPage.xaml








CenterOfRotationX = "0"

CenterOfRotationY = "0.5"

CenterOfRotationZ = "0"

RotationY = "45" />


















































































Margin = "40,0,0, 0 "MaxWidth =" 250 "Stretch =" Uniform "/>








Swift3D (3D simulation)
Swift 3D is a 3D editing software created by ElectricRain (http://www.erain . com /) which, although not comparable - in terms of possibilities - with none of the major applications currently on the market (for 3D Studio MAX, Maya, etc.) does have a very interesting tool. Swift3D to export to XAML (2D) any scene and animation that is created inside.











Until version 4, the exported XAML Swift3D was only valid for WPF, but as of version 5 provides the ability to choose who "play "animation, if WPF or Silverlight, and code XAML generated depends on this.

Kit3D (real 3D)
Kit3D is a 3D graphics engine developed specifically for Silverlight by Mark Dawson (http://www.markdawson.org/Kit3D/), and aims to provide this tool offers the same capabilities System.Windows.Media.Media3D to WPF, so that the result of Silverlight applications developed with Kit3D are comparable to those produced by WPF3D.

would be, comparatively, the equivalent of Papervision3D (http://www.papervision3d.org/) or Astro (http://labs.adobe.com/technologies/flashplayer10/) in the case of Flash.

Kit3D allows, like WPF, defining and arranging objects Viewports3D (Even with color or texture), cameras and lights inside, apply 3D transformations of objects, or define and manage the 3D space.







But unlike WPF, not possible using XAML code, but everything must be generated using code behind. So the XAML code only house the container (usually a Canvas).

dynamically create a grid, however, can be a complex process. A mesh is formed from a set of 3D points, and how to relate to each other, so to define a 3D mesh is necessary to know (or estimate):

- the position (in 3D) of each of the vertices that make up the mesh.

- what are the two vertices with each vertex which is related to form a triangle (in any editing system 3D mesh is defined using polygons. Kit3D For, these are triangles).

- the normal vector to the visible surface of the triangle (to determine which side is the "up" and what is "down").







MainPage.xaml










MainPage.cs (Part 1 - add a reference to Kit3d.dll and we include in the code)



using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using Kit3D.Windows.Controls;
using Kit3D.Windows.Media;
using Kit3D.Windows.Media.Media3D;



EjemploCubo.Controles3D
namespace {public partial class
OurCube:
UserControl {



MainPage.cs (Part 2 - define the viewport, create the object, and add a perspective camera)



private Viewport3D viewport;
RotateTransform3D Rotate;



public OurCube()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(Our_Cube_Loaded);
}

void Our_Cube_Loaded(object sender, RoutedEventArgs e)
{
ModelVisual3D Visual = new ModelVisual3D();
GeometryModel3D MyCube = new GeometryModel3D();
MyCube.Geometry = CreateCubeMesh();
MyCube.Material = new DiffuseMaterial(new

Kit3DBrush(new SolidColorBrush(Colors.Gray)));

Visual.Content = MyCube;

Transform3DGroup Transform = new Transform3DGroup();
Transform.Children.Add(new ScaleTransform3D(3, 3, 3));

Rotate = new RotateTransform3D();
Rotate.Rotation = new AxisAngleRotation3D();
Transform.Children.Add(Rotate);
MyCube.Transform = Transform;

viewport = new Viewport3D();

viewport.Camera = new PerspectiveCamera(

new Point3D(-5, 15, 25),
new Vector3D(5, -15, -25),
new Vector3D(0, 1, 0),
45);
viewport.Children.Add (Visual);
viewport.HorizontalAlignment = HorizontalAlignment.Stretch;
viewport.VerticalAlignment = VerticalAlignment.Stretch;



this.LayoutRoot.Children.Add (viewport);}





MainPage.cs (Part 3 - the function that creates the 3D mesh of the cube)
private
MeshGeometry3D CreateCubeMesh () {

MeshGeometry3D MeshGeometry3D mesh = new ();



/ / define the position of each of 3D points
mesh.Positions = new Point3DCollection

new Point3D {(-0.5,0.5,0.5)
new Point3D(0.5,0.5,0.5),
new Point3D(-0.5,-0.5,0.5),
new Point3D(0.5,-0.5,0.5),
new Point3D(0.5,0.5,-0.5),
new Point3D(-0.5, 0.5, -0.5),
new Point3D(0.5,-0.5,-0.5),
new Point3D(-0.5,-0.5,-0.5),

new Point3D(-0.5,0.5,-0.5),
new Point3D(-0.5,0.5,0.5),
new Point3D(-0.5,-0.5,-0.5),
new Point3D(-0.5,-0.5,0.5),
new Point3D(0.5,0.5,0.5),
new Point3D(0.5,0.5,-0.5),
new Point3D(0.5,-0.5,0.5),
new Point3D(0.5,-0.5,-0.5),

new Point3D (-0.5,0.5, -0.5),
new Point3D (0.5,0.5, -0.5), new Point3D
(-0.5,0.5,0.5)
new Point3D (0.5,0.5,0.5),
new Point3D (0.5, -0.5, -0.5),
new Point3D (-0.5, -0.5, -0.5),
new Point3D (0.5, -0.5,0.5),
new Point3D (-0.5, -0.5,0.5)
};



/ / define the association of 3D points including

mesh.TriangleIndices = new Int32Collection

{0, 2, 1, 1, 2, 3,
4, 6, 5, 5, 6, 7,
8, 10, 9, 9, 10, 11,
12, 14, 13, 13, 14, 15,
16, 18, 17, 17, 18, 19,
20, 22, 21, 21, 22, 23
};

return mesh;}







Theoretically, using this system, the representation of any mesh is possible, the complexity of its creation in code grows exponentially as the mesh away from a primitive (cubes, spheres, torus, etc.) or a simple object, so it is difficult to conceive of 3D meshes representing, for example, figures or real people.

Kit3D performance, as happens with Papervision3D in the case of Flash, is not noticeable. So far it is not feasible to raise interfaces with over 40,000 polygons, lighting and camera movement, because all processing is done by CPU (Kit3D as Silverlight 2, no GPU advantage), so its utility is limited to scenes with timely presence of 3D objects. Conclusions




During these past years we have seen the interaction between user and machine has changed dramatically with the advent of so-called NUI (Natural User Interface).

The advent of devices like the iPhone or Microsoft Surface, and systems that manage and tactile interactions, such as Windows 7, responds to the need to interact interfaces with a different way. A mode of interaction, object-based, not graphics, or text.

is why the 3D object begins to become relevant in reporting systems, it is the most common presentation in the real world, and everything suggests that it will soon also in new models of presentation and interaction .

methods, techniques and technologies described above do not cease to be a first approximation to this approach. A first step that will undoubtedly be followed by many




Vista Media Center Pctv 150e

Importing Adobe Illustrator files in Expression Blend 3 application development

Previously I wrote A Few blog posts about importing Adobe Photoshop files into Expression Blend 3. This post focuses on the ability to import an Adobe Illustrator .ai file and converting the content to Silverlight 3 or WPF objects. You can also use this import feature to bring in wireframes or comps created in Illustrator to use in a SketchFlow application.

The Illustrator import feature in Blend 3 has the equivalent functionality to the Illustrator import feature in Microsoft Expression Design 3. Let’s use the following file as an example and open it in Illustrator to explore its contents:



The Illustrator file above displays a complex illustration that is composed of an image, a text control, as well as a variety of vectors.

In order to be able to import .ai files into Blend you must ensure that the “Create PDF Compatible file” checkbox is checked when the file is saved otherwise the file will not import.




Once saved with the “Create a PDF Compatible file” setting enabled you can import the .ai file into Blend by selecting the “Import Adobe Illustrator File…” entry in the File menu. You can then select an .ai file and see the following results on the artboard:



The Illustrator layers are converted into equivalent Silverlight 3 and WPF objects and displayed on the Objects and Timeline panel. Many features from Illustrator files are imported and others are not supported. You’ll notice some of the following behavior:

◦Images: Images are imported as PNGs and automatically added to a <.ai file name> _images folder in the project.
◦Text & Vectors: Text and vector artwork are all converted to editable paths on import.
◦Visibility toggle & lock states: These properties are preserved for the imported objects.
◦Gradients: Midpoint stops and gradient stops are imported and editable.
◦Layer Structure & Groups: Only the top groups are preserved in the file structure.
◦Layer Names: These are only persisted only for the top level groups in the file. Object names Blend in dog Contain only alphanumeric character [AZ] [az] [0-9] and underscores. Keep this in mind when to naming objects in Illustrator.

Tuesday, September 1, 2009

Thank You Letter For Destination



revolving door. Rafael Flores
Gazga
.* * Collaborating Facdearq: Facdearq no., 1PAGE 05, 2004.

photos: juan carlos Ilescas

Philosophy is a way of approaching things: a kind of riding on something that has no rhyme or reason, but that the same is no less disturbing, disturbing, but also joy, a joy, life and discovery, perpetual motion. A variation of ideas that come and go, no longer entangled. The rising of the sun, its structure, its functioning, its expiration, their impoverishment, their fragility, the contrast with other distant stars, distances, cosmic dust, medicine, science of chemistry, the science of mathematics, its proceed, the way in which we reason, the chains of reasons, axioms and ideas. Trying to understand how we move forward in the everyday things, the coming and going, emotions and sometimes violent crimes, evictions, the bureaucracy, the state offices and our enrollment institutional masks for many years, children use crayons, our most immediate experience, the clarity that we offer other to go to work, the right to demand and protest ... in short, things happen everyday and we go through the door of our office or our home, we turn on the fan, we do things already known, we undertake a task, and we see the TV peered into world events to events that take place smoothly, but hinder our ability to think, the planet rotates, the stars are still alive, the plants will stay there. The sea appears as always, are still made discoveries, they invest huge amounts of money to fight guerrillas, is surprised by such unrest. The city is such a hold of tools to discover through what others say or think, what they do, what not do. His phlegmatic state, its ability to approach emotionally eaten less violently. The city is a place where we live in a certain way. We got used to distances, we have to. We got used to the insults mother, we got used to look at us with stalking, suspiciously, like fighting with anger, wanting to violate something that is transparent and follows us, like an animal, everywhere.

Philosophy is thus a kind of sleight of knowing that what you are doing is an activity that has no monetary remuneration. It is an activity that is distinguished by things that others consider take for granted, is a disunited world and homogeneity, catch an idea and keep thinking to its logical conclusion. A wetting of intellectual contagion, a subsumed, a way of going about the world. Philosophy as such, represents an individual activity, where one who tries to investigate some causes or explanations of the diverse nature that gives us common sense, the dilemma is always open to leave things as they are and not return to touch the subject other than as provided daily dogmatic tradition suggests. It is a way to get involved with things of this world, with emotions, with the individual and collective histories, with diseases and conditions unpredictable, with altered states of consciousness, intellectual avidly with boredom waiting for a door ajar. The file a different relationship with things is not easy, we are accustomed to see them to perpetrate in a trivial or common. Philosophy is an encounter with primordial images, understood this as a highlight images that we regularly and ask about its nature, the way how come the senses to give me all the stuff that I can grasp phenomenal through this. A full take the path where the images we have before us have meaning beyond the usual, a look sometimes occur as some things to others, ways of behaving human beings, their poor ability to communicate with so many books, many publishers, many writers, many children begin to say to utter his first words. Philosophy discussed mainly because it is the only science that has at hand the ability to tackle all without restrictions. It is an activity carried out through reflection and occurs when we need to address the problems otherwise, is to transgress the things already known, speculate, retract a bit and drop the question, let it be asking, inviting our own understanding to find the questions and try to ignore the importance of our life as human beings. So philosophy has been commissioned to reveal that there is a sense other than to contemplate such things. Contemplation suggests a different state of our consciousness to record interference that are a daily occurrence, is to contemplate our own course in the past. I would like to deepen the reflective activity that has the philosophical work in our lives. Dealing with conflicts that occur daily in the world allows us to ask what it is trying to reach humans. It is worth to get it, how it behaves with other human beings and as solo acts. What he fears most. A different way of using time, blended, take this into account but we are not slip through our fingers. The world sometimes looks like hell but above all there is a slight hesitation of being human. Philosophy is an ability we have to wallow in our own concepts, you see things and understand a meaning still hidden, is turning to see how things were, how they succeeded one and others such as language represents the most versatile and fruitful of human achievements and yet turns out to be so stereotyped and so schematic, so sterile, so fragile in their projections. It's an ability that we all human beings to reflect on how the need for Vulnerable to the expectations of others, but it is not vulneralización means loss of autonomy of the individual, but rather allows you to rediscover a sense that has been given from birth, as a faculty of discernment and lucidity that allows you to approach things differently, to give them a different meaning consumed ... in them.