Solar potential analysis with shadowing effect. Illustrative examples of surfaces:

Slides:



Advertisements
Similar presentations
Section 4.1 – Vectors (in component form)
Advertisements

William Ribarsky (modified by Amos Johnson) 1 Ray Tracing.
CIRCLES.
MAT Math. Tools II Tangent Plane and Normal Suppose the scalar field  =  ( x, y, z, t) at time t o, the level surfaces are given by  ( x, y,
Geometry Primer Lines and rays Planes Spheres Frustums Triangles Polygon Polyhedron.
Shared Graphics Skills Cameras and Clipping Planes
Introduction to 3D Graphics Lecture 5: From Realism to Real-Time Anthony Steed University College London.
Parametric Surfaces.
1 Terrain Following & Collision Detection. 2 Both of topics are very game-type-oriented Both of topics are very game-type-oriented Terrain Terrain For.
Informationsteknologi Thursday, November 22, 2007Computer Graphics - Class 111 Today’s class Clipping Parametric and point-normal form of lines Intersecting.
1 Lecture 4 Coordinate Systems: Rectangular, Cylindrical, Spherical.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Vectors: planes. The plane Normal equation of the plane.
Vector calculus 1)Differential length, area and volume
Week 13 - Wednesday CS361.
Copyright © Cengage Learning. All rights reserved. 10 Analytic Geometry in Three Dimensions.
Vectors and the Geometry of Space
Eqaution of Lines and Planes.  Determine the vector and parametric equations of a line that contains the point (2,1) and (-3,5).
UNIVERSITI MALAYSIA PERLIS
Mathematical fundamentals of 3D computer graphics 1.1 Manipulating three-dimensional structures 1.2 Vectors and computer graphics 1.3 Rays and computer.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
1 Reflection and Mirrors. 2 The Law of Reflection “ The angle of incidence equals the angle of reflection.”
CS 325 Introduction to Computer Graphics 03 / 08 / 2010 Instructor: Michael Eckmann.
Vertex – A point at which two or more edges meet Edge – A line segment at which two faces intersect Face – A flat surface Vertices, Edges, Faces.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
CS 325 Introduction to Computer Graphics 02 / 17 / 2010 Instructor: Michael Eckmann.
Clipping Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006 (Slide set originally by David Luebke)
Properties of Vector Operations: u, v, w are vectors. a, b are scalars. 0 is the zero vector. 0 is a scalar zero. 1. u + v = v + u 2. (u + v) + w = u +
1.3 Lines and Planes. To determine a line L, we need a point P(x 1,y 1,z 1 ) on L and a direction vector for the line L. The parametric equations of a.
Chapter 2 Section 2.4 Lines and Planes in Space. x y z.
Vectors Addition is commutative (vi) If vector u is multiplied by a scalar k, then the product ku is a vector in the same direction as u but k times the.
1 Dr. Scott Schaefer Intersecting Simple Surfaces.
Calculus III Chapter 12 Br. Joel Baumeyer Christian Brothers University.
Vectors in Space. 1. Describe the set of points (x, y, z) defined by the equation (Similar to p.364 #7-14)
VECTORS AND THE GEOMETRY OF SPACE 12. PLANES Thus, a plane in space is determined by:  A point P 0 (x 0, y 0, z 0 ) in the plane  A vector n that is.
CSC418 Computer Graphics n Polygons –Triangulation –Scan conversion –Convex/Concave – clipping) n 2D affine transformations and properties, Homogeneous.
Further vectors. Vector line equation in three dimensions.
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
homogeneous coordinates equationmisc point(w ; x, y, z)r w = S 0 where S 0 = xi + yj + zk  3 points in 3D space.
Chapter 7 Graphing Linear Equations REVIEW. Section 7.1 Cartesian Coordinate System is formed by two axes drawn perpendicular to each other. Origin is.
CS 376 Introduction to Computer Graphics 02 / 14 / 2007 Instructor: Michael Eckmann.
Three-Dimensional Viewing Clipping Computer Graphics C Version (456p - 462p)
Parametric and general equation of a geometrical object O EQUATION INPUT t OUTPUT EQUATION INPUT OUTPUT (x, y, z)
SOLAR PANELS SELECTION IN BUILDING USING CITYGML FOR ENVIRONMENT PLANNING By A.Subathra.
ELECTROMAGNETICS THEORY (SEE 2523).  An orthogonal system is one in which the coordinates are mutually perpendicular.  Examples of orthogonal coordinate.
Extended Work on 3D Lines and Planes. Intersection of a Line and a Plane Find the point of intersection between the line and the plane Answer: (2, -3,
Visible Surface Detection
Rendering Pipeline Fall, 2015.
Computer Graphics Lecture 21 Triangles and Planes Taqdees A
University of North Carolina at Greensboro
Chapter 8 : Analytic Geometry
Lesson 3-6: Perpendicular & Distance
Contents 7.1 Vectors in 2-Space 7.2 Vectors in 3-Space 7.3 Dot Product
Ray Tracing Forward Ray Tracing
Planes in Space.
10. Planes
VECTORS APPLICATIONS NHAA/IMK/UNIMAP.
Edward C. Jordan Memorial Offering of the First Course under the Indo-US Inter-University Collaborative Initiative in Higher Education and Research: Electromagnetics.
3D Rendering Pipeline Hidden Surface Removal 3D Primitives
Clip against view volume Project onto projection plane
Objectives Graph ordered pairs in the coordinate plane.
Lesson 83 Equations of Planes.
Section 3.1 – Vectors in Component Form
6.4 Volumes by Cross Sections
Points, Lines, and Planes
Objectives Graph ordered pairs in the coordinate plane.
5 More!.
11 Vectors and the Geometry of Space
Polygons.
“Equations and Inequalities”
Presentation transcript:

Solar potential analysis with shadowing effect

Illustrative examples of surfaces:

1.Surfaces From CityGML Wall surface 1: Wall surface 2:

Wall surface 3: Wall surface 4: Wall surface 5:

2. Calculate Surface Normal Normal vector: cross product of distance vector of two edges of wall surfaces Vertices: (X 1,Y 1,Z 1 ); (X 2,Y 2,Z 2 ); (X 3,Y 3,Z 3 ); (X 4,Y 4,Z 4 ) Edges: (X 2 - X 1,Y 2 - Y 1,Z z - Z 1 ); (X 3 – X 2,Y 3 – Y 2,Z 3 – Z 2 ); Wall surface 1: ( 0, , 0 ) Wall surface 2: ( 0, , 0 ) Wall surface 3: ( 0, , 0 ) Wall surface 4: ( 0, , 0 ) Wall surface 5: ( , , 0 )

3. Calcualte Plane Equation Surface normal = ai + bj + ck Origin of points = (X 0,Y 0,Z 0 ) Equation of Plane = ax + by + cz - d Substitute I by (x - X 0 ) ; j by (y - y 0 ) ; k by (z- z 0 ) in surface normal D = a X 0 + bY 0 + cZ 0 Wall surface 1: Wall surface 2: Wall surface 3: Wall surface 4: Wall surface 5:

W RORO S N AZIMUTH ALTITUDE E RDRD l 4.Calculate Sun path

4.SunRay orientation and ray path Sun path find out by elevation and azimuth through cartesian coordinate system sun ray origin = (X 0, Y 0, Z 0 ) : a typical point (viewpoint) away from surfaces in the direction of sun l – length of sample vector sun ray direction = (X, Y, Z) : sample vector starting at sun ray origin Components of sample vector X = X 0 + dX Y = Y 0 + dY Z = Z 0 + dZ Dx = l *sin(azimuth)cos(elevation) Dy =l* cos(azimuth)cos(elevation) Dz = l*sin(elevation)

Dist'= Dist *cos(Elev ); z = Dist *sin(Elev ); x = Dist'*cos(Azimut); y =-Dist'*sin(Azimut);

Z sorting: constructing the view-port We need X,Y,Z axis vectors and O origin position 1. view.Z=Ray.Dir // ray direction 2. view.Y=NEH.Z // NEH up vector 3. view.X=view.Y x view.Z // cross product make view.X axis perpendicular to Y ansd Z 4. view.Y=view.Z x view.X // make all three axises perpendicular to each other 5. view.O=ground position - (distance*Ray.Dir);

5.Ray plane intersection WALL1 WALL2 R O (X 0, Y 0, Z 0 ) R D (X, Y, Z) t1t1 I 1 (X, Y, Z) I 2 (X, Y, Z) t t2t2 Pn Where, Pn – Plane normal t - Distance of the ray from origin R O (X 0, Y 0, Z 0 ) - Ray origin R D (X, Y, Z) – Ray direction I (X, Y, Z) – Intersection point = [X 0 + X * t, Y 0 + Y * t, Z 0 + Z * t] (R 0 + R D * t). Pn + D = 0

Bounding Volume hierarchy:

5.Ray plane intersection Ray: R 0 + R D * t = I Plane: aX + bY + cZ + D = 0 D = aX 0 + bY 0 + cZ 0 (R 0 + R D * t). Pn + D = 0 t = Vo/Vd Where t equals the distance of the ray from origin in World Coordinates First calculate Vd = Pn * R(d) Where, If Vd = 0, Ray is parallel to the plane and no intersection occurs If Vd > 0,normal of the plane is away from the ray and the plane is to be culled And then,calculate Vo = - (Pn * R(o) + D) and find t = Vo/Vd Where, t < 0.0: behind Ro(no intersection) t > 0.0: infront of Rd Intersection point: (X i, Y i, Z i ) = [X 0 + X * t, Y 0 + Y * t, Z 0 + Z * t] Sort the surfaces based on the intersection point

6.Clip shadows on surfaces It’s the process of finding the exact part of a polygon (shadow) lying inside the view volume by Sutherland–Hodgman algorithm. Input 1: Subject Polygon Input2:Clip polygon Output: Intersection Region ml