//Basic Random Math . random ( ) ; //From 0 to specific number Math . random ( ) * 10 ; //Removing decimals Math . floor ( Math . random ( ) * 10 ) ; //Random between 5 and 10 Math . floor ( Math . random ( ) * 5 ) + 5 ; //Random between 5 and 10 (included 10) Math . floor ( Math . random ( ) * 5 ) + 6 ;
Depth of Field effect in 3D rendering adds realism to it. It’s easy how to create this effect in Blender.
To create DOF effect in Blender first we need to adjust our camera’s focus distance, then add defocus effect on render node as I’ll show you in this tutorial.
If you sell 3D models online, sometimes marketplaces require poly count or triangles count of your object. In 3Ds Max, it’s easy to show that statistics.
Press 7 and it will appear in your viewport. If you need more stat details, go to Views > Viewport Configuration > Statistics.
For us, working with database in web development is a mandatory task. Here in this post I’m going to list, as much as I know, PHP & MySQL snippets that I frequently use.
Continue reading PHP & MySQL useful snippets
We need to set the encoding of texts we store into database to
UTF-8 if we work with Arabic texts. Otherwise, Arabic texts appear like
?????????? in our database.
Continue reading Inserting Arabic text with PHP into MySQL Database