loading

Archive for October, 2005

Tom Carden

3D Picking

Back to our regular scheduled programming.





I’ve just been experimenting with a couple of implementations of 3D picking for simple scenes composed of triangles.





Picking with buffer is really simple, and can be pixel-accurate (but isn’t in this case because I reduced the picking resolution for speed reasons). It requires you to draw your scene twice… once as you normally would, and once to an offscreen buffer using the triangle index as the fill colour. You then look at the colour of the object under mouseX/Y in the buffer to get the index of the picked object. It’s a bit slow, but it works accurately even in this random-triangle scene.





Picking with projection projects all the triangles to screen space, depth sorts them, and checks if any of the projected triangles contains the mouse point. It’s not 100% accurate, but for scenes without intersecting triangles it will be fine, and it’s faster than the buffer-based method.




There are much faster methods if you’re dealing with more geometry, but either of these methods should be fine for simple scenes. On the Processing board, cello points out this great tutorial for doing the same things in OpenGL. Marquee selection would be a simple extension of the pixel buffer method, and a ray-based tutorial is in the works (stay tuned).




It’s worth noting that the back-buffer method documented there works for P3D (so no need to create another graphics object) but that in OpenGL the get(mouseX,mouseY) method doesn’t work in the same way yet, so it requires different code (example here).





Apologies for delay with raycasting example. If anyone else wants to do it, please feel free and I’ll link to it from here. Otherwise, don’t hold your breath!
Tom Carden

Housekeeping

By popular request, I’ve tweaked the Processing Blogs templates so they make it obvious who is posting what. Suggestions welcome for further improvements.





If anyone has some time to spare, I could do with some help finding out which bit of the tool chain is failing when I post images to Blogger because Processing Blogs doesn’t pick them up properly. We’re running Wordpress 1.5.something and the FeedWordPress plug-in to do the aggregation. It looks like Blogger sometimes changes the way html is encoded in my atom feed - perhaps that’s it? I think Wordpress uses the Magpie RSS parser, but I couldn’t work out how to update it in my Wordpress installation.
020200 - analog digital design

The very german posting about music and all and city design

Hey, sorry for all the processing blog readers, because I will have in here some very german references in this posting. I start it all of with so sweet music. That is really what I love the most. Let there be grafics, art, theory and blogging. But I find myself always, always in music. I am really hooked at the music of Jamie Lidell and Wir sind Helden. I’ve seen Jamie last night, and that was real blast off! Hey, be kindful, but where does the postmodernism lead to, apart from very intelligent terms? Think about it. (Refers to vvvv).

Wir sind Helden have (in German) such a lovely diary about how their songs developed. No more words here, Wir sind Helden diary. Go, go, Helden go, go! Ich würde soo gerne mehr Gitarrenbands sehen, die auch diese Wärme in die Fußgängerzonen bringen. Hey, Judith, ich hab dich neulich im Fernsehen gesehen :)

I was lately much into city and urbanism theory. We have still to learn from America. As far as I can see it: much more flexible budged for useful research. But the city? We learn still more about massmedia-cultural signs of our time. But what is the price for that? (refers to Venturi) We can ask that questions in intellectual terms. New inventions are made. But: where is the human in that inventive marketing sujets? Where do we live in (thought in spatial design)? Where does the americans live in?! How do we exist? What when all that things goes down? Think about this: when everyone an this planet would live the “western standart”, well, then the whole planet would implode, because the recources won’t remain! Really a lot of the humanty live in slum-like “city parts” all over the world. The resources won’t last. Sustainable? I don’t think that it really is. (refer to Frithjof Bergmann)

And I often read that the American Society is based upon Puritanismus (in German language). Lidell (hey UK in here) refers to the Soul from the Blacks.

020200 - analog digital design

The very german posting about music and all and city design

Hey, sorry for all the processing blog readers, because I will have in here some very german references in this posting. I start it all of with so sweet music. That is really what I love the most. Let there be grafics, art, theory and blogging. But I find myself always, always in music. I am really hooked at the music of Jamie Lidell and Wir sind Helden. I’ve seen Jamie last night, and that was real blast off! Hey, be kindful, but where does the postmodernism lead to, apart from very intelligent terms? Think about it. (Refers to vvvv).

Wir sind Helden have (in German) such a lovely diary about how their songs developed. No more words here, Wir sind Helden diary. Go, go, Helden go, go! Ich würde soo gerne mehr Gitarrenbands sehen, die auch diese Wärme in die Fußgängerzonen bringen. Hey, Judith, ich hab dich neulich im Fernsehen gesehen :)

I was lately much into city and urbanism theory. We have still to learn from America. As far as I can see it: much more flexible budged for useful research. But the city? We learn still more about massmedia-cultural signs of our time. But what is the price for that? (refers to Venturi) We can ask that questions in intellectual terms. New inventions are made. But: where is the human in that inventive marketing sujets? Where do we live in (thought in spatial design)? Where does the americans live in?! How do we exist? What when all that things goes down? Think about this: when everyone an this planet would live the “western standart”, well, then the whole planet would implode, because the recources won’t remain! Really a lot of the humany live in slum-like “city parts” all over the world. The resources won’t last. Sustainable? I don’t think that it really is. (refer to Frithjof Bergmann)

And I often read that the American Society is based upon Puritanismus (in German language). Lidell (hey UK in here) refers to the Soul from the Blacks.

Andreas

Neues aus dem Podkasten

Es gibt ja viele Bands die ein paar mp3s auf ihre Seite stellen. Und es gibt Menschen die darüber schreiben. Allerdings ist es immer mühsam sich jeden Titel einzeln im Browser anzuhören. Aber in Zeiten von 2.0 gibts auch dafür eine Lösung. Hype Maschine erstellt aus einem Blog der MP3s postet einen podcast. Das ganze […]

Andreas

Neues aus dem Podkasten

Es gibt ja viele Bands die ein paar mp3s auf ihre Seite stellen. Und es gibt Menschen die darüber schreiben. Allerdings ist es immer mühsam sich jeden Titel einzeln im Browser anzuhören. Aber in Zeiten von 2.0 gibts auch dafür eine Lösung. Hype Maschine erstellt aus einem Blog der MP3s …

flight404

Oh, I almost forgot…

I am moving. Where, you ask? I will give you a couple hints. It rhymes with ‘man can disco’, and the city is know for the Golden Gate Bridge and quick afternoon showers.

Yes! You got it! San Francisco!!

I will be moving sometime in January, and I am rather looking forward to being in the land of Golden showers. Wait. Uh, that is something dirty isn’t it? Ignore that. If anyone knows of a nice apartment in Upper Market, Hayes, Castro or Lower Haight area, hook me up. I would consider Twin Peaks, but the view better be amazing. Doesn’t even have to be vacant. Just get the current tenants evicted and talk me up.

flight404

Even more magnetosphere…

I just cannot stop mucking around with this project. I was getting annoyed at the flatness of the project, namely, the solid fill background color. I wanted the piece to exist in a more robust environment. A few months back, I was playing around with reproducing cubic VR effects in Processing. It turned out to be quite easy… just map each of the 6 sides onto a cube and stick the camera inside.

Here is a quick test video. And I simply cannot stop gushing about the OPENGL render option in Processing. This project easily runs fullscreen (1680×1050) with audio analysis on my Mac G4 tower at a fast framerate. Hot damn!

I haven’t gotten around to making my own cubic VR source, so for this experiment I am using a fantastic QTVR showing the inside of a rather gargantuan wind tunnel in France. I will swap it out with something custom before posting it on flight404 proper.

On that note, does anyone want to take on this chore? Making an engaging cubic VR image that I can use? No takers? Nobody? Eh, you bunch of lazy slags… (update: I just looked up ’slag’ and it doesn’t mean what I thought it meant. But I aint gonna change it.)

The hard part was making the ribbon trails reflect the environment. So hard, in fact, that I gave up and am now just faking it. Pretty easy to tell, but also pretty easy to ignore. I am arbitrarily assigning an x/y position to the texture image based on the angle of the ribbon at each point along its length. This way, ripples in the ribbon show a change in the ‘reflection’ in a reasonably believable manner.

020200 - analog digital design

The freedom of choice for tools

I was lately much, much, much thinking about tools. We have so many tools! Now compare tools to instuments. In a very cheesy trailer about a DVD of Till Brönner he said a sentence that engraved into my brain. He said, that it can take quite a while to find the proper instrument, where you know: that is my instrument. I think the same applies to digital tools. I spent most of the time this year to get into new tools. Some of them I really love, others I don’t, although you can make theoretically the same things with them.

Freedom for Tools!

This is not only an artistically question. Even workers or researchers have to have their *own* tools fitting their workflow. Therefore we need flexible standarts and formats like xml, gif, midi or mp3. I think it is very irresponsible to force people to tools, even when they are “certified standarts”, like Microsoft Office or Apple iTunes. The freedom of choice for tools must be a basic right for people working with computers.

thinking on digital tools

The freedom of choice for tools

I was lately much, much, much thinking about tools. We have so many tools! Now compare tools to instuments. In a very cheesy trailer about a DVD of Till Brönner he said a sentence that engraved into my brain. He said, that it can take quite a while to find the proper instrument, where you know: that is my instrument. I think the same applies to digital tools. I spent most of the time this year to get into new tools. Some of them I really love, others I don’t, although you can make theoretically the same things with them.

Freedom for Tools!

This is not only an artistically question. Even workers or researchers have to have their *own* tools fitting their workflow. Therefore we need flexible standarts and formats like xml, gif, midi or mp3. I think it is very irresponsible to force people to tools, even when they are “certified standarts”, like Microsoft Office or Apple iTunes. The freedom of choice for tools must be a basic right for people working with computers.

Quasimondo

…and hello Seoul!

Undeniably November will become an intense month for me. And as if Singapore and Amsterdam aren’t enough my travel itinerary has just been extended by another destination: on November 15th I will be speaking on Macromedia MAX Korea. And even if I don’t understand what is written there I must say that I’m very proud to find my name (마리오 클링거만) among this list of amazing people whom I respect and admire.

020200 - analog digital design

2 links: better start doing things

Heho, I found two interesting articles that are somehow connected to each other. The first one was written on lifehack and deals with the golden rule to get into things: do the work! Quote: “As a college professor, I’ve long been giving my students (what I hope is) useful advice. Here’s one of the best pieces of advice I know for doing well in college: Rule 7 - The only rule is work. If you work, it will lead to something. It’s the people who do all of the work all the time who eventually catch on to things.”
Read: Rule 7 - Do the work.

The second article was written by flight404. Please read this, it is written so perfect funny! And download the amazing videos. It deals with the decision of the right tools and how to judge upon digital artwork. Quote: “So, when I see something that makes me say ‘wow’, I force myself to sit back and think. Is this actually something to ‘wow’ at or is this just a prepackaged effect that anyone in-the-know would realize took all of 2 minutes.”
Read: Holy freakin crap!

020200 - analog digital design

New thoughts upon Boredom (Boredom C)

Really, I figured out a new kind of boredom. It appears while beeing creative.

Elvis
Boredom C is a kind of “to be at a loss”. It appears while sketching, coding, doodling or whatever creative you do. When beeing creative you start out with fresh and powerful ideas. When they are done you go on a bit more. You do and do and do without much reflection. Suddently there is the point where you feel bored by the work you do, by the things you done. That boredom has its origin on the “beeing at a loss” (Nicht mehr weiter wissen). It is close to Boredom B. You have to take a step back, maybe sleep it over and collect new fresh and powerful new ideas.

In addition to this blog-entry.

thinking on digital tools

2 links: better start doing things

Heho, I found two interesting articles that are somehow connected to each other. The first one was written on lifehack and deals with the golden rule to get into things: do the work! Quote: “As a college professor, I’ve long been giving my students (what I hope is) useful advice. Here’s one of the best pieces of advice I know for doing well in college: Rule 7 - The only rule is work. If you work, it will lead to something. It’s the people who do all of the work all the time who eventually catch on to things.”
Read: Rule 7 - Do the work.

The second article was written by flight404. Please read this, it is written so perfect funny! And download the amazing videos. It deals with the decision of the right tools and how to judge upon digital artwork. Quote: “So, when I see something that makes me say ‘wow’, I force myself to sit back and think. Is this actually something to ‘wow’ at or is this just a prepackaged effect that anyone in-the-know would realize took all of 2 minutes.”
Read: Holy freakin crap!