tag:blogger.com,1999:blog-5504649.post110861258829433288..comments2023-11-03T13:13:49.769+00:00Comments on Godpatterns: Stage I - II: Tiles!balaamhttp://www.blogger.com/profile/12534212423013377083noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-5504649.post-65029051919301179232009-03-22T10:26:00.000+00:002009-03-22T10:26:00.000+00:00When im adding the:vertexBuffer.Created += new Sys...When im adding the:<BR/>vertexBuffer.Created += new System.EventHandler(this.OnCreateVertexBuffer);<BR/> this.OnCreateVertexBuffer(vertexBuffer, null);<BR/><BR/>In my OnCreatevertexBuffer. I get an error, it says something about "Unable to transfer type Microsoft.DirectX.VertexBuffer to Microsoft.DirectX.Direct3D<BR/><BR/>Help please.Daniel Fahlhttps://www.blogger.com/profile/08815082476332021530noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-46764378937768889632009-02-11T06:15:00.000+00:002009-02-11T06:15:00.000+00:00Forgotten a step back in previous post: Please, ch...Forgotten a step back in previous post: Please, change<BR/><B>PositionColored</B><BR/>to<BR/><B>TransformedColored</B>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-62388398719843368202009-02-11T06:10:00.000+00:002009-02-11T06:10:00.000+00:001. Links doesn't workpublic void OnResetDevice(obj...1. Links doesn't work<BR/><BR/>public void OnResetDevice(object sender, EventArgs e)<BR/> {<BR/> //Device dev = (Device)sender;<BR/> vertexBuffer = new VertexBuffer(typeof(CustomVertex.PositionColored), 4, (Device)sender, 0, CustomVertex.PositionColored.Format, Pool.Default);<BR/> vertexBuffer.Created += new System.EventHandler(this.OnCreateVertexBuffer);<Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-74441356935796405822008-03-16T20:02:00.000+00:002008-03-16T20:02:00.000+00:00Is there any way to stop the tiles stretching them...Is there any way to stop the tiles stretching themselves on form resize? I just want to keep them 32x32 and not have to set the form to a fixed size :( Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-37724726964481108652008-03-04T17:51:00.000+00:002008-03-04T17:51:00.000+00:00Hey guys, could somebody help me out by showing me...Hey guys, could somebody help me out by showing me how, where and why I need to insert the OnCreateVertexBuffer?<BR/>I can't find where it is explained, and now I can't turn off lighting cause that has to be done in this method.<BR/>Thanks in advance!<BR/><BR/>PS: source code links on this page don't work for me :|Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-79548824362553194122007-08-12T20:15:00.000+00:002007-08-12T20:15:00.000+00:00if anyone is stuck wondering why you cant access T...if anyone is stuck wondering why you cant access Tu and Tv you need to change the coloured to textured when configuring ur verticestensihttps://www.blogger.com/profile/13629351063366668011noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-25351294574479776862007-08-12T19:16:00.000+00:002007-08-12T19:16:00.000+00:00someoen reallllly ought to fix the links here... s...someoen reallllly ought to fix the links here... some of the pictures are really important and the sourcecode is missing....tensihttps://www.blogger.com/profile/13629351063366668011noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-90908889647990407082007-08-01T00:31:00.000+00:002007-08-01T00:31:00.000+00:00The link to the source code doesn't work.The link to the source code doesn't work.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-79357098448454728612007-05-06T21:48:00.000+00:002007-05-06T21:48:00.000+00:00I figured out my problem! I forgot to change the T...I figured out my problem! I forgot to change the TranformedColored to PositionColored in the VertexBuffer constructor call. Hmm... I would have expected an error. Anyway, no need to reply to my above post.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-42920308464586135412007-05-06T09:55:00.000+00:002007-05-06T09:55:00.000+00:00Gah, I got the the point where you changed to from...Gah, I got the the point where you changed to from PositionColored to TransformedColored and I get this really weird triangle, instead of a square.<BR/><BR/>Here's the code I have; I am trying to figure out what's wrong with it...<BR/><BR/>public void OnResetDevice(object sender, EventArgs e)<BR/> {<BR/> Device dev = (Device)sender;<BR/> vertexBuffer = new Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-34552460324020274602007-01-06T18:20:00.000+00:002007-01-06T18:20:00.000+00:00Thanks for the tutorials I think they are great.
...Thanks for the tutorials I think they are great.<br /><br />However perhaps you could elaborate a little bit more on model space VS world space when it comes down to tiling the world (that's where I had to find another resource to understand). Else than that it's perfect.<br /><br />(Oh by the way, just wanted to mention that your "Taking Advantage" section you mention that a change needs to be Gazillionhttps://www.blogger.com/profile/09710252377636771404noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1152085486096655352006-07-05T07:44:00.000+00:002006-07-05T07:44:00.000+00:00Have you got the latest version of DirectX. The ea...Have you got the latest version of DirectX. <BR/><BR/>The earlier versions of managed directX had a SetPosition method rather than a setter for the position varaible.balaamhttps://www.blogger.com/profile/12534212423013377083noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1152077804108463352006-07-05T05:36:00.001+00:002006-07-05T05:36:00.001+00:00When I try compiling your code I get 3 compile err...When I try compiling your code I get 3 compile errors.<BR/><BR/>Error 1 'Microsoft.DirectX.Direct3D.CustomVertex.PositionTextured' does not contain a definition for 'Position' C:\Documents and Settings\Danikar PN\Desktop\DirectX Tutorial\DirectX Tutorial\DirectX Tutorial\AForm.cs 165 22 DirectX Tutorial<BR/><BR/>That are like that....<BR/><BR/>I have all my references set up correctly, anything Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1152077784082464972006-07-05T05:36:00.000+00:002006-07-05T05:36:00.000+00:00When I try compiling your code I get 3 compile err...When I try compiling your code I get 3 compile errors.<BR/><BR/>Error 1 'Microsoft.DirectX.Direct3D.CustomVertex.PositionTextured' does not contain a definition for 'Position' C:\Documents and Settings\Danikar PN\Desktop\DirectX Tutorial\DirectX Tutorial\DirectX Tutorial\AForm.cs 165 22 DirectX Tutorial<BR/><BR/>That are like that....<BR/><BR/>I have all my references set up correctly, anything Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1146343918679291882006-04-29T20:51:00.000+00:002006-04-29T20:51:00.000+00:00As I see, you forgot to mention that you'll need a...As I see, you forgot to mention that you'll need an addition/modification of a Delegate: OnCreateVertexBuffer at the start of the tutorial. Of course it is shown on the source code, but it's better to mention it.Head Honchohttps://www.blogger.com/profile/18346513989115666822noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1114379206103416172005-04-24T21:46:00.000+00:002005-04-24T21:46:00.000+00:00Gah, thank you. I'll fix this tonight!Gah, thank you. I'll fix this tonight!balaamhttps://www.blogger.com/profile/12534212423013377083noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1114363842257077382005-04-24T17:30:00.000+00:002005-04-24T17:30:00.000+00:00(Note: To run this code both stone.bmp and grass.b...<I>(Note: To run this code both stone.bmp and grass.bmp must be in the root of your C: drive!)</I><BR/>The stone.bmp portion here links to Grass.bmp. However, the earlier link to Stone.bmp is correct, FYI.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1112565830585771432005-04-03T22:03:00.000+00:002005-04-03T22:03:00.000+00:00This comment has been removed by a blog administrator.balaamhttps://www.blogger.com/profile/12534212423013377083noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1112534478890818752005-04-03T13:21:00.000+00:002005-04-03T13:21:00.000+00:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1111542554832567622005-03-23T01:49:00.000+00:002005-03-23T01:49:00.000+00:00This comment has been removed by a blog administrator.balaamhttps://www.blogger.com/profile/12534212423013377083noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1111542116334666482005-03-23T01:41:00.000+00:002005-03-23T01:41:00.000+00:00This comment has been removed by a blog administrator.balaamhttps://www.blogger.com/profile/12534212423013377083noreply@blogger.comtag:blogger.com,1999:blog-5504649.post-1111539013089435392005-03-23T00:50:00.000+00:002005-03-23T00:50:00.000+00:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.com