<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-38891054</id><updated>2011-04-21T17:57:01.421-07:00</updated><category term='xna quadtree height heightmap'/><category term='xna'/><category term='quadtree'/><title type='text'>XNA Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://teksquares.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://teksquares.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rey Jexter Bumalay</name><uri>http://www.blogger.com/profile/18369902492426908546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_rOrq2e7BqFI/R6sjJFXcMMI/AAAAAAAAAAQ/P75_PXRzsYY/S220/DSC01363.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-38891054.post-831258632270703612</id><published>2007-03-10T08:50:00.000-08:00</published><updated>2007-03-10T09:10:17.404-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='quadtree'/><category scheme='http://www.blogger.com/atom/ns#' term='xna'/><title type='text'>quadtree updated - 03112007</title><content type='html'>Here is my updated quadtree. This is only a very simple quadtree with the following features:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Able to create terrain from height map data.&lt;/li&gt;&lt;li&gt;Able to define the subdivision levels you want.&lt;/li&gt;&lt;li&gt;Able to draw only parts of the quadtree you want.&lt;/li&gt;&lt;li&gt;Only uses lines to draw the tree since adding texture will complicate things.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_whole_march112007.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[Entire part of the quadtree is drawn]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_part_march112007.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[Certain part of the quadtree is drawn]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You can download the full source code &lt;a href="http://www.wikiupload.com/download_page.php?id=100048"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next up, i'll add the following things on my quadtree:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Textured terrain&lt;/li&gt;&lt;li&gt;Be able to easily add models&lt;/li&gt;&lt;li&gt;Be able to cull the parts of the quadtree that is visible to the camera.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38891054-831258632270703612?l=teksquares.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teksquares.blogspot.com/feeds/831258632270703612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38891054&amp;postID=831258632270703612' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/831258632270703612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/831258632270703612'/><link rel='alternate' type='text/html' href='http://teksquares.blogspot.com/2007/03/quadtree-updated-03112007.html' title='quadtree updated - 03112007'/><author><name>Rey Jexter Bumalay</name><uri>http://www.blogger.com/profile/18369902492426908546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_rOrq2e7BqFI/R6sjJFXcMMI/AAAAAAAAAAQ/P75_PXRzsYY/S220/DSC01363.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38891054.post-3155277120041962603</id><published>2007-03-06T00:05:00.000-08:00</published><updated>2007-03-06T00:22:18.278-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xna quadtree height heightmap'/><title type='text'>Quadtree with height map data</title><content type='html'>I have finished my quadtree that is able to draw a terrain from an input height map image. Unfortunately, i still cannot post the code because I'm still working to associate each of the terrain's vertices to a the subdivision region on the the quadtree.&lt;br /&gt;&lt;br /&gt;here's the latest screenshot:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_with_terrain.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[quadtree with terrain from height map data]&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the terrain(green) and the quadtree(white) is the same in terms of width and height although they look as if the terrain is bigger than the quadtree. I think this is just normal because objects that are closer to the camera is projected bigger.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38891054-3155277120041962603?l=teksquares.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teksquares.blogspot.com/feeds/3155277120041962603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38891054&amp;postID=3155277120041962603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/3155277120041962603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/3155277120041962603'/><link rel='alternate' type='text/html' href='http://teksquares.blogspot.com/2007/03/quadtree-with-height-map-data.html' title='Quadtree with height map data'/><author><name>Rey Jexter Bumalay</name><uri>http://www.blogger.com/profile/18369902492426908546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_rOrq2e7BqFI/R6sjJFXcMMI/AAAAAAAAAAQ/P75_PXRzsYY/S220/DSC01363.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38891054.post-2507925299235104517</id><published>2007-03-03T21:11:00.000-08:00</published><updated>2007-03-06T00:18:49.013-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='quadtree'/><category scheme='http://www.blogger.com/atom/ns#' term='xna'/><title type='text'>My First Quadtree Prototype</title><content type='html'>After programming for a couple of hours, i have finished my prototype of a simple quadtree. Here are some questions noobs like me asked when i was trying to understand what a quadtree is like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. What is a quadtree ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- it is a space partitioning system/concept where a plane is divided into 4 parts. Each of this parts can in turn be divided into 4 parts and so on.&lt;br /&gt;&lt;br /&gt;Depending on the subdivision level you want.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Where do i use it?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- its main purpose is to speed up the process when rendering or calculating something.&lt;br /&gt;&lt;br /&gt;like for example when you are checking if your object collided with your terrain. instead of checking all the vertices of your terrain if it collided with your object which is obviously a very costly task, you can first check if your object in on a certain part of your plane before your check if it collided with your terrain's vertices.&lt;br /&gt;&lt;br /&gt;another use of a quadtree is when rendering your scene. imagine rendering the entire scene even if your camera is not looking at it. obviously it is too costly to do that especially if you have a very large map. rendering only what your camera sees will greatly improve your game's performance. this technique is also called as "frustum culling".&lt;br /&gt;&lt;br /&gt;you can also use your quadtree to easily place your object on your scene.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[helpful links]&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gamedev.net/reference/articles/article1303.asp"&gt;http://www.gamedev.net/reference/articles/article1303.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Quadtree"&gt;http://en.wikipedia.org/wiki/Quadtree&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are some screenshots of my quadtree:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_1level.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[Quadtree with 1 subdivision level]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_2levels.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[Quadtree with 2 subdivision levels]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i111.photobucket.com/albums/n129/reyjexter/xna/quadtree/quadtree_5levels.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;[Quadtree with 5 subdivision levels]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In a couple of days, I'll be posting my code since right now I only have finished the part where the tree is subdivided into different parts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38891054-2507925299235104517?l=teksquares.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teksquares.blogspot.com/feeds/2507925299235104517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38891054&amp;postID=2507925299235104517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/2507925299235104517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/2507925299235104517'/><link rel='alternate' type='text/html' href='http://teksquares.blogspot.com/2007/03/my-first-quadtree-prototype.html' title='My First Quadtree Prototype'/><author><name>Rey Jexter Bumalay</name><uri>http://www.blogger.com/profile/18369902492426908546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_rOrq2e7BqFI/R6sjJFXcMMI/AAAAAAAAAAQ/P75_PXRzsYY/S220/DSC01363.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-38891054.post-117285073206260932</id><published>2007-03-02T07:50:00.000-08:00</published><updated>2007-03-02T18:49:44.060-08:00</updated><title type='text'>Welcome!</title><content type='html'>I started yet another programming blog. This blog will cover topics about game development using&lt;a href="http://www.microsoft.com/xna"&gt; XNA Framework&lt;/a&gt; and 3D Game Development. This blog site will basically be used to document my progress and the things I'm learning.&lt;br /&gt;&lt;br /&gt;I wont be covering some elementary stuffs like drawing triangles, primitives, lines and etc instead I'll start with a more intermediate stuffs such as octree, terrain, lighting, shadow mapping and things that are mostly used in the scene.&lt;br /&gt;&lt;br /&gt;If you want to study the very basic of xna and 3d programming, you can use the following sites:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.riemers.net/eng/Tutorials/xnacsharp.php"&gt;Riemers XNA Tutorial &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gamedev.net/reference/articles/article673.asp"&gt;Basics of 3D&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.euclideanspace.com/"&gt;3D Math&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/38891054-117285073206260932?l=teksquares.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://teksquares.blogspot.com/feeds/117285073206260932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=38891054&amp;postID=117285073206260932' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/117285073206260932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/38891054/posts/default/117285073206260932'/><link rel='alternate' type='text/html' href='http://teksquares.blogspot.com/2007/03/welcome.html' title='Welcome!'/><author><name>Rey Jexter Bumalay</name><uri>http://www.blogger.com/profile/18369902492426908546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_rOrq2e7BqFI/R6sjJFXcMMI/AAAAAAAAAAQ/P75_PXRzsYY/S220/DSC01363.JPG'/></author><thr:total>0</thr:total></entry></feed>
