Criando
código para criar código - Gerando um site em asp.net em um clique
Alguma vez ja se sentiu como se fizesse várias vezes a mesma coisa ou escrevendo
código similar repetidas vezes? Por exemplo criando uma nova aplicação web usando
asp.net, criando um banco de dados, executando aspnet_regsql.exe, criando acessos,
configurando o web.config, criando novo formulário para acesso, codificando a autenticação...
[andalmeida]
Creating
code for coding - Generating a functional website in asp.net with one click
Have you ever felt like doing same tasks or writing similar code repetitive times?
For example creating a new web application, creating a database, running aspnet_regsql.exe,
creating roles, writing web.config, creating a new form for login, coding the login...
[andalmeida]
Simple
Ray Tracing in C# Part VII (Shadows)
In this article we will add shadows to our ray tracing. This will give a bit more
of a realistic appearance to our final images, and at this point in our implementation
if you have patience the results can be amazing... [andalmeida]
Simple
Ray Tracing in C# Part VI (Vertex Normal Interpolation)
In this new article in our ray-tracing series we will start handling more complex
objects. These objects are formed by points, vertices and polygons as we have seen
before. Polygons as flat surfaces have one normal vector, and this vector against
the light vectors and viewer vector gives us its color. So, working with one normal
per polygon face gives a non linear result as we see in fig. 1. ... [andalmeida]
Simple
Ray Tracing in C# Part V (Texture Mapping)
A new article of our ray-tracing series describes how to apply texture images on
triangles. The process is based on R2 and R3 points distance calculations and its
proportions, using again the method tAlgebra.GetCoord already known from the last
articles... [andalmeida]
Simple
Ray Tracing in C# Part IV (Anti-Aliasing)
Anti-aliasing is the name for techniques designed to reduce or eliminate the jagged
effect of square pixels attempting to approximate curved shapes... [andalmeida]
Simple
Ray Tracing in C# Part III (Reflection)
Previously we have seen ray tracing and mapping in spheres and triangles with simple
illumination model, now we will extend this with reflections and refractions. If
you need previous background please check it out on the last articles below... [andalmeida]
Simple
Ray Tracing in C# Part II (Triangles Intersection)
Previously we have seen ray tracing and mapping in spheres. Now I am extending the
algorithm to perform ray x triangles intersection calculation. This first approach
is very basic, where the face normals are not interpolated and there is no texture
mapping which will be shown in next articles... [andalmeida]
Simple
Ray Tracing in C#
This article demonstrates how to make a simple and very basic Ray Tracing with spheres;
it can serve you as a base for implementing more complex algorithms. In a future
article I will show how to improve this using image mapping... [andalmeida]
Basic
Illumination Model in C#
In my previous article Simple Ray Tracing in C#, we saw how to display spheres using
a simple ray tracing algorithm. Now, we will start from the last point and will
work with basic illumination models. By definition, we have three types of light:
Ambient Diffuse Specular... [andalmeida]
Simple
Ray Tracing with Texture Mapping in C#
In my previous articles Mapping Images on Spherical Surfaces Using C# and Simple
Ray Tracing in C# we have seen how to map textures onto spheres and as well as a
simple ray tracing algorithm. But what combining ray tracing and image mapping?...
[andalmeida]
Mapping
Images on Spherical Surfaces Using C#
This article describes how to map a flat 2D image (JPG, BMP, or GIF) on a sphere
by using basic algebra. The process is very simple where the x axis of the image
will be mapped on sphere longitudes and the y axis of the image will be mapped on
sphere latitudes... [andalmeida]
Plotting
User-Defined R2 in R Functions Using C#
Plotting User-Defined R2 in R Functions Using C# This article describes very briefly
(and on a basic level) how to plot user interactive 3D R2 in R surfaces using C#
ASP.NET. The example enables the user to interact with the drawing in 5 aspects
as below... [andalmeida]
Implementing
a Basic Camera Model (Pinhole II)
In my previous article at CodeProject: "Implementing a Basic Camera Model (Pinhole)",
we made a basic camera class that is able to display objects from R3. In order to
test the camera, we created a static cube. Now, the idea is to create new objects
such as spheres and grids, apply rotations and translations to them, and also apply
movement to the camera position between frames, giving us a basic animation. Background...
[andalmeida]
Implementing
a Basic Camera Model (Pinhole)
Extending our ray tracing algorithms now we will implement a camera class. The objective
is to render the images setting the viewer at any position without restrictions
since in our previous models, the viewer must be located at positive z axis, (0,0,z)
z>0... [andalmeida]