Rosario 3D

My developer blog

Category Archives: General talk

Slide su aptica e fisica in real time

Qui potete trovare in allegato le slide su la lezione di giovedì

Qui potete trovate gli esempi e la libreria physX

esempi physX

Questo è un semplice esempio dell’algoritmo di virtual coupling

// VIRTUAL COUPLING
function FF(device, cursore, dt){
   var phPos = vector(3);
   var t = vector(1);                // tempo del grabber
   var objPos      = cursore.getPosition();
   var velocity    = cursore.getVelocity();
   var force;
   static var k = 15;   // guadagno
   static var d = 0.5;  // smorzamento

   device.getPosition(&phPos, &t);

   var kcomponent = (phPos-objPos)*k;
   var dcomponent = d * velocity;
   force =  kcomponent - dcomponent;

   cursore.addForceAbs(force.x, force.y, force.z);

   device.ApplyForce(force, t[0]);
   return force;
}

Earth day

Today is the earth day, I’ll save some watt turning off the server (no commit today).
See you tomorrow.

Let's do optimization

A lot of programmer start with the idea of optimizing everything, they want to save the last clock cycle to make their program faster even if this cost some readability of the code. Making optimized code make you feel smart and sometime you can say… “WOW!! These are the smartest five line of code I ever wrote”

Read more of this post

Another developement blog?

When you create something new you always must ask yourself “We really need that stuff? Is original? Why I can’t use $otherProduct instead?”

We really need another blog?

Well I think that the world can survive even without my effort but that will be less funny for me, and maybe someone can find this blog useful.

Is original?

No, there is a tons of developer blogs that speak about every part of programming, and a lot of them are much more expert than me. But sometime I found some hole in the Web knowledge, in that case I try to fill that hole. This blog is my 2 cent on computer graphics, I won’t try to be the new openGL guru that know everything about graphics, but just a place when I can share and discuss about my project and my ideas.

Why I can’t follow other blogs/web pages?

Yes you can.. no you must!! I’ll give reference when I extract some part of article from another site. Internet is for collaboration 😉

I only hope that if somebody use my stuff will give me a reference.

What will you talking about in this blog? And why in English?

About the development of my project hosted in my site, some basic tutorial and news about programming, graphics and maybe maths.

I choose English cause almost every programmer (can|should) read English even Italian one. Is also a good exercise for me.

What will you not talking about?

Obsolete stuff. The main reason I open this blog is cause on the Web you can find a lot of tutorial about openGL 1972 and very few tutorial about openGL 3.x. OpenGL will not evolve if users keep using the obsolete stuff.

Can I comment your post?

Yes, but I have to approve your comment before it’s show. Don’t worry I’ll approve every comment that don’t look like spam and is somewhat in topic.

Why you create your site in you living room server? Is full of free host out there.

Cause I’m a nerd… ehm… cause I already have a SVN server for my project, and I don’t want to use another server for the blog in this way I can install any plug-in I find useful.

Sometime you can find the server off-line (cause ADSL problem, power supply problem or hardware failure). Don’t panic!!