In case you missed it Nvidia's GTX-680 with incredible specs is out... with the GTX-690 with double the specs on its way!
1536 cuda cores , 2GB VRAM and 1GHZ core frequency !
http://www.guru3d.com/article/geforce-gtx-680-review/2
And i thought that my rig was nice....
My trip into the photorealistic galaxy! Πως να γυρίσετε τον κόσμο των γραφικών με ωτοστόπ.! Ένα ταξίδι στα 3D γραφικά
Invitation
Whoever wants to contribute to this blog , posting his experiences on the same place, please send me a message !
Friday, March 30, 2012
Bidirectional Path Tracing using Nvidia Optix , Part 4 (Multiple lights and some bug fixes)
Hello again,
This time I have very little stuff to show couple of bugs , several performance issues and multiple lights :
With the help from the nvidia developers forum i corrected a bug in my random generator. I passed my random generator "seed" from hop to hop in the path by value, whereas by reference was the best solution to update the seed variable.
On top of that I have made several performance enhancements so the project in the simple cornel scene runs at about twice the speed(and some "change") at 33fps (512X512 scene with 4 hops at each path) instead of 13 at the same configuration Rendering is here
I have also made spherical lights and organized the Light Class so that the addition of new types will be quick and easy
Here is the rendering with the three lights at 1024X1024 resolution
Next step will be to correct my errors in the BRDFs of the reflective and refractive materials
This time I have very little stuff to show couple of bugs , several performance issues and multiple lights :
With the help from the nvidia developers forum i corrected a bug in my random generator. I passed my random generator "seed" from hop to hop in the path by value, whereas by reference was the best solution to update the seed variable.
On top of that I have made several performance enhancements so the project in the simple cornel scene runs at about twice the speed(and some "change") at 33fps (512X512 scene with 4 hops at each path) instead of 13 at the same configuration Rendering is here
I have also made spherical lights and organized the Light Class so that the addition of new types will be quick and easy
Here is the rendering with the three lights at 1024X1024 resolution
Next step will be to correct my errors in the BRDFs of the reflective and refractive materials
Monday, March 12, 2012
Bidirectional Path Tracing using Nvidia Optix , Part 3 (Simple Refractions)
Hello !
Today i managed to create the first simple refractions into my project.The refractions are far from finished yet but i think they are good enough to show them to you. As you can see i have also implemented spherical lights
The material has refractions only , without anything else and it is also simple ,without any tricks yet.
_____________________________________________________________________
SAMPLE CODE :
//refraction coefficient
current_prd.countEmitted = true;
float ior = 0.0;
if(!current_prd.inside)
ior=1.33;
else
ior=1/1.33;
if(refract(current_prd.direction, ray.direction, ffnormal, ior))
{
if(current_prd.inside)
{
current_prd.cos1 = dot( -ffnormal, -ray.direction );
current_prd.cos2 = dot( ffnormal, current_prd.direction );
}
else
{
current_prd.cos1 = dot( ffnormal, -ray.direction );
current_prd.cos2 = dot( -ffnormal, current_prd.direction );
}
}
else//internal reflection
{
current_prd.direction = reflect(ray.direction,- ffnormal);
current_prd.cos1 = dot( -ffnormal, -ray.direction );
current_prd.cos2 = dot(- ffnormal, current_prd.direction );
}
current_prd.attenuation = diffuse_color*Kt;
if(current_prd.inside)
{
//Compute Beer's law
current_prd.attenuation = current_prd.attenuation * powf( diffuse_color , t_hit);
}
current_prd.inside = !current_prd.inside;
current_prd.hitDistance = length(ray.origin - hitpoint);
current_prd.ffnormal = ffnormal;
_________________________________________
Please , i need your comments to make it better and find any mistakes that i make !
Render 2
Today i managed to create the first simple refractions into my project.The refractions are far from finished yet but i think they are good enough to show them to you. As you can see i have also implemented spherical lights
The material has refractions only , without anything else and it is also simple ,without any tricks yet.
SAMPLE CODE :
//refraction coefficient
current_prd.countEmitted = true;
float ior = 0.0;
if(!current_prd.inside)
ior=1.33;
else
ior=1/1.33;
if(refract(current_prd.direction, ray.direction, ffnormal, ior))
{
if(current_prd.inside)
{
current_prd.cos1 = dot( -ffnormal, -ray.direction );
current_prd.cos2 = dot( ffnormal, current_prd.direction );
}
else
{
current_prd.cos1 = dot( ffnormal, -ray.direction );
current_prd.cos2 = dot( -ffnormal, current_prd.direction );
}
}
else//internal reflection
{
current_prd.direction = reflect(ray.direction,- ffnormal);
current_prd.cos1 = dot( -ffnormal, -ray.direction );
current_prd.cos2 = dot(- ffnormal, current_prd.direction );
}
current_prd.attenuation = diffuse_color*Kt;
if(current_prd.inside)
{
//Compute Beer's law
current_prd.attenuation = current_prd.attenuation * powf( diffuse_color , t_hit);
}
current_prd.inside = !current_prd.inside;
current_prd.hitDistance = length(ray.origin - hitpoint);
current_prd.ffnormal = ffnormal;
_________________________________________
Please , i need your comments to make it better and find any mistakes that i make !
Render 2
Nvidia Optix 2.5 is out !
Two weeks ago , nvidia has updated Optix. The new version is way faster than 2.1 and has several bugfixes and new features ... Update your system as soon as possible!
It will speedup your applications by 40% to 3 times faster on the same hardware , depending on the code.
The 2 features that are still missing and would be useful to have in a future release are:
*Compatibility with Nvidia's Nsight debugging utility
* And mainly the ability to declare buffers within the optix code.
That would be very handy in my application!
It will speedup your applications by 40% to 3 times faster on the same hardware , depending on the code.
The 2 features that are still missing and would be useful to have in a future release are:
*Compatibility with Nvidia's Nsight debugging utility
* And mainly the ability to declare buffers within the optix code.
That would be very handy in my application!
Subscribe to:
Posts (Atom)