tag:blogger.com,1999:blog-6042417775578107106.post3881549886195142725..comments2023-08-05T11:30:32.754-04:00Comments on The Hacks of Life: Immediate Mode InstancingChrishttp://www.blogger.com/profile/14648675681957285299noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6042417775578107106.post-90989261415226241462010-02-02T19:19:39.659-05:002010-02-02T19:19:39.659-05:00Did you try shader (constant) instancing?Did you try shader (constant) instancing?Anonymoushttps://www.blogger.com/profile/03508732924253831851noreply@blogger.comtag:blogger.com,1999:blog-6042417775578107106.post-64768258141963252982010-01-27T11:20:53.845-05:002010-01-27T11:20:53.845-05:00Lindsay - that is precisely what is happening - th...Lindsay - that is precisely what is happening - the "instance" VBO (the one that says where the instances go) is simply the top 3 rows of a model view matrix, 12 floats each. (Since the instance model view transform is always a combination of rotate and translate, the bottom row is 0 0 0 1 and thus doesn't have to be stored.)<br /><br />Sorry, no code sample - my implementation is part of proprietary code. :-(Benjamin Supnikhttps://www.blogger.com/profile/04886313844644521178noreply@blogger.comtag:blogger.com,1999:blog-6042417775578107106.post-25480062853132140122010-01-17T22:02:05.914-05:002010-01-17T22:02:05.914-05:00Hi,
I haven't been using GLSL for long, so f...Hi, <br /><br />I haven't been using GLSL for long, so forgive my naivety here, - what I would love to do with GLSL is load a matrix stack into VRAM (say, a VBO) and switch between the matrices without reloading, <br /><br />I soon realised that you probably cant so that...but then I saw your example here where you are talking about loading a matrix as a glVertexAttrib and my ears pricked up.<br /><br />Can you point me to an source code example?<br /><br />cheers,<br />LindsayLindsay Kayhttps://www.blogger.com/profile/15789881798223137425noreply@blogger.comtag:blogger.com,1999:blog-6042417775578107106.post-48336779229858463832009-11-30T08:15:25.881-05:002009-11-30T08:15:25.881-05:00Thanks!Thanks!Vitalyhttps://www.blogger.com/profile/02074743767951430055noreply@blogger.com