{"id":1340,"date":"2010-06-22T22:06:16","date_gmt":"2010-06-22T11:06:16","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=1340"},"modified":"2010-06-22T23:39:13","modified_gmt":"2010-06-22T12:39:13","slug":"status-of-win32-build","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2010\/06\/22\/status-of-win32-build\/","title":{"rendered":"Status of Win32 Build"},"content":{"rendered":"

\"\"<\/a>So VectorStorm isn’t really happy on Win32 right now.\u00a0 I’ve spent several hours, and finally have gotten it far enough to actually render.\u00a0 Well, sorta.<\/p>\n

First, I should note that my Win32 development machine is kind of old, and has a really slow 3D card.\u00a0 It doesn’t support multisampling\/antialiasing (which is a good thing;\u00a0 it showed me that I had a bug in my handling of rendering on machines which didn’t support multisampling).<\/p>\n

But there’s some worse stuff.<\/p>\n

First, as you can see from the screenshot above, it doesn’t seem to be drawing my textures — anything which ought to have a texture (clouds, grass, text) is instead being drawn as a flat solid rectangle.\u00a0 During game shutdown, it crashes when telling OpenGL to delete those textures.\u00a0 But so far as I can tell, the textures are<\/em> being created correctly.<\/p>\n

Second, the whole shader-based rendering scheme isn’t working properly.\u00a0 That is, my lighting shaders, which give nicer lighting (and particularly specular) on polygons.\u00a0 The shaders used in the bloom effect still work fine.\u00a0 No idea why that might be.\u00a0 Anyhow, for this screenshot, I had to disable the lighting shaders entirely, and just use the fixed-function OpenGL rendering path.\u00a0 I’ll start trying to figure out why my lighting shaders are failing once I get the textures working again — they did work for “Lord”!<\/p>\n

Third, interleaved VBOs don’t seem to be working properly, and I can’t seem to figure out why.\u00a0 It’s crashing deep inside OpenGL whenever I try to draw anything that uses an interleaved VBO.\u00a0 For now, I’ve disabled VBOs and am rendering using interleaved element arrays (which is what VectorStorm does anyway, for folks with video cards that don’t support VBOs).<\/p>\n

\"\"<\/a>Update:\u00a0 I now have the textures drawing correctly.\u00a0 For whatever reason, at some point I changed my textures from being created as GL_RGBA8 to GL_RGBA.\u00a0 And that was causing major problems under Win32, for reasons I don’t understand.\u00a0 Next on my list, getting VBOs and shaders working again.\u00a0 For your amusement, this is a screenshot of what it currently looks like running via my lighting shaders.\u00a0 It’s rendering at about one frame every 20 seconds.\u00a0 So not entirely playable, yet.
\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"

So VectorStorm isn’t really happy on Win32 right now.\u00a0 I’ve spent several hours, and finally have gotten it far enough to actually render.\u00a0 Well, sorta. First, I should note that my Win32 development machine is kind of old, and has a really slow 3D card.\u00a0 It doesn’t support multisampling\/antialiasing (which is a good thing;\u00a0 it…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[24,25],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-lC","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1340"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=1340"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1340\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}