redmotion: Softimage > gile[s] lightmapper> ShiVa3d tutorial

23 November 2010

Softimage > gile[s] lightmapper> ShiVa3d tutorial

This is a basic tutorial on how to use gile[s] lightmapper with Shiva3d (as much for me as for anyone else).


Lightmaps are useful for getting static lighting onto scenery on low-end Android phones as some do not support per-pixel lighting and also suffer from artifacts when using ShiVa3d per-vertex lighting.

Anyway, this tutorial takes us through a very quick generation of a lightmap in gile[s] v2 (Version 2 is still in beta and will probably remain that way, however v1 seems to have issues in Windows 7 and lacks some v2's feature set):-

Tutorial


1. Build the model in Softimage and export as an obj with the UVs for the diffuse maps already done. Import into giles[s].


2. In gile[s], add a sky, by clicking on the create sky button under the create tab. Click somewhere near your imported model.


3. Pan the scene by see the sky, then select the sky under the model tab and tweak the settings so that the sky is high and bright in the sky (see image).


4. Low-end Android phones (like HTC Hero) can't handle any textures above 256x256 very well, performance is hit quite a bit. In the Top menu > Editors > Lighting Methods editor;  click on the add button at the bottom of the Lighting methods dialogue (icon with a green plus sign) to add a new Lightmap. If you want crisper shadows you will need to add a directional light to the scene also. I'm just going for a daylight ambience in this tutorial.

5. Again, from the editors menu, select Material Editor to call up the materials editor. Select the lightmap you just created under the Lighting Method area of the dialog.

6. In the Light Methods Editor you'll notice the material you added the new Lightmap to has now been placed under the light map in the tree on the left had side. This means that multiple materials can use the same lightmap or each material can have its own lightmap. It's all about finding the right compromise between performance and aesthetic quality.

7. Lastly, choose the GI renderer, you have options of Path Tracer, GPU Radiosity or Ambient Occlusion:-

8. From here on, tweak settings in all the various dialogs mentioned and re-render as you go, until you are satisfied with the results. 


9. Export should be done using *.obj (I've tried others but obj seems the most problem-free). Export will create 3 files: the original mesh, a 2nd mesh with the lightmap UV generated by gile[s] and the lightmap itself in bmp format. Bring all files back into Softimage (or your chosen 3d DCC app) and create a second UV set on the original mesh (property > Texture > Planar UV). Using the texture editor (F7), copy and paste the lightmap UV set from the lightmap UV mesh onto the second UV set of the original mesh. Finally, export the mesh as a DAE file. Import into ShiVa.


10. For the mesh's material, change the Material>Texturing effect to "Modulate", put the lightmap into Effect Map 1 and the Diffuse/Color map into Effect Map 0. Under the lighting tab set Emissive to black, Ambient and Diffuse to White.


Easy.

8 comments:

Anonymous said...

chanel outlet Nightfall chanel handbags 5359 Cheap is hot sale online,welcome to our store to buy Black [ URL=http://www.theychanel.com.com/ - chanel and totti [/URL uu8n75 ,we guarantee fast shipping,cheapest price and 100% high quality guaranteed

oakleyses said...

louis vuitton outlet stores, louis vuitton, prada handbags, louboutin, longchamp outlet, polo ralph lauren outlet, louis vuitton outlet, kate spade outlet, ray ban sunglasses, louboutin shoes, oakley sunglasses, michael kors outlet, louis vuitton outlet, michael kors outlet, kate spade handbags, coach outlet store online, michael kors outlet, louis vuitton handbags, burberry outlet, burberry outlet, oakley sunglasses, michael kors outlet, nike shoes, polo ralph lauren outlet, coach purses, oakley sunglasses cheap, jordan shoes, tiffany and co, air max, coach factory outlet, air max, chanel handbags, gucci outlet, michael kors outlet, tory burch outlet, coach outlet, nike free, christian louboutin shoes, tiffany and co, ray ban sunglasses, louboutin outlet, michael kors outlet, longchamp handbags, prada outlet, longchamp handbags

oakleyses said...

michael kors pas cher, nike roshe run, polo ralph lauren, michael kors, nike free pas cher, hollister, louis vuitton, air force, sac burberry, mulberry, nike roshe, ralph lauren, oakley pas cher, nike blazer, sac guess, abercrombie and fitch, longchamp, mac cosmetics, nike trainers, vans pas cher, ray ban pas cher, lululemon, hogan outlet, new balance pas cher, michael kors, timberland, sac longchamp, nike roshe run, sac hermes, air max, nike air max, north face, nike huarache, barbour, ray ban sunglasses, nike free, vans shoes, north face, louboutin, hollister, hollister, sac louis vuitton, nike tn, converse pas cher, sac louis vuitton, vanessa bruno, louis vuitton uk, air jordan, longchamp, polo lacoste

oakleyses said...

christian louboutin outlet, louis vuitton outlet, longchamp outlet, prada outlet, louis vuitton outlet, uggs outlet, christian louboutin, michael kors outlet online, ugg boots, replica watches, nike outlet, christian louboutin uk, chanel handbags, uggs on sale, tory burch outlet, longchamp outlet, cheap oakley sunglasses, michael kors outlet, burberry outlet, tiffany and co, tiffany jewelry, polo outlet, polo ralph lauren outlet online, ugg boots, nike free, oakley sunglasses, longchamp outlet, oakley sunglasses, ray ban sunglasses, prada handbags, uggs outlet, kate spade outlet, burberry handbags, oakley sunglasses wholesale, jordan shoes, ray ban sunglasses, louis vuitton, louis vuitton outlet, ray ban sunglasses, gucci handbags, michael kors outlet online, michael kors outlet online, louis vuitton, christian louboutin shoes, nike air max, nike air max, oakley sunglasses

oakleyses said...

ugg uk, pandora jewelry, ugg,uggs,uggs canada, pandora jewelry, moncler outlet, canada goose uk, moncler, louis vuitton, canada goose jackets, louis vuitton, replica watches, barbour, thomas sabo, converse, marc jacobs, moncler, canada goose, vans, canada goose, pandora uk, ugg pas cher, louis vuitton, ray ban, links of london, toms shoes, moncler outlet, louis vuitton, hollister, wedding dresses, canada goose outlet, barbour uk, lancel, louis vuitton, juicy couture outlet, canada goose outlet, moncler, moncler uk, swarovski, montre pas cher, swarovski crystal, canada goose, coach outlet, ugg, gucci, karen millen uk, nike air max, supra shoes, converse outlet, hollister, juicy couture outlet, moncler, doudoune moncler, pandora charms

Unknown said...

sabung ayam-pukul mati

yanmaneee said...

jordan shoes
kyrie irving shoes
christian louboutin outlet
converse outlet
yeezy shoes
adidas tubular
yeezy shoes
adidas zx flux
yeezy shoes
jordans

yanmaneee said...

bape hoodie
jordan 6
westbrook shoes
jordan shoes
air jordan
kyrie 6
yeezy shoes
bape clothing
kyrie 4
lebron shoes