Tech Tip: The Golden Rule For Optimizing Image Resolutions in 3DXplorer Studio

Many users of 3DXplorer Studio need to be reminded of the recommended resolutions of JPEG files which are used as a picture or a painting or even a texture in 3DXplorer.

In general, like for any web development platform, you should keep your image resolutions as lowest as possible; an image should not exceed 512 pixels for the larger dimension. A dimension above 512 is considered as a high resolution and such images will be down scaled unless you specifically refuse it at upload time.

But there is also a rule which can help you optimize drastically: Make sure your JPEG file (or PNG file) has the smallest resolution possible while keeping the larger dimension of the image with a number of pixels which is a power of 2 (ie: 16, 32, 64, 128, 512, 1024 or 2048). This means that a 40 x 64 image is well optimized because the larger side (64) is a power of 2. Similarly, an image with a resolution of 40 x 32 is not optimized because the larger side (40) is not a power of 2.

What will happen if you don’t respect the above rule? Well, the real time rendering and the hardware acceleration algorithms used om most computers will be up to 3 times slower and require up to 300% more memory for providing the same visual quality. Same thing for the loading time of the scene which will be up to 3 or 4 times slower for equal visual quality.

Example: Let’s assume you have reached the resolution of 80 x 42 after having optimized your image. You should know that if you reduce it to a 64 x 34 image you may save up to 300% in performance.

Looking forward to your optimized scenes that your users will appreciate.

Using “render-to-texture” & “texture baking” techniques

 

In order to enhance the realism of a scene, very often, we just need to improve lighting conditions and add shadows and other lighting effects. Obviously, in this fiend, real time engines are not supposed to go as far as most off-line rendering calculations. But sometimes, we may be able to use a pre-rendered scene inside 3DXplorer for a real time visualization.

This type of scenes can simply be generated by using “render to texture” or “texture baking” features in 3DSMax or in Maya.

These features enable 3DXPlorer designers to integrate the lighting and the shadows directly into texture files. By leaving the texture files of such a scene in the same folder than the file to be imported, they will be imported inside 3DXplorer together with the scene.

Once the scene is in 3DXPlorer, the texture materials property has to be set to “self illumination” in order to avoid rendering them twice.

Example: The scene called “Show-room” under “buildings” in the 3DXplorer objects library has some pre-rendered textures.

%d bloggers like this: