Light mapping.
Here is my code to light map a scene, it works, however; I can't seem to get the normal texture maps in as well.
Shaders are beyond me, is there a simple 'plug & play' solution?
I am using gile[s] as a light mapper. (2004 Very old but simple to use)
PS: How do I add an image or a video to this post?
SetWindowTitle( "Simple 3D Light map" )
SetWindowSize( 700, 700, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
// set background color
setclearcolor (0,0,0)
// load images and set UV
imageWood = loadImage("room8.jpg")
setimagewrapU(imagewood,1)
setimagewrapV(imagewood,1)
// load a 3d mesh from /media folder
mesh1 = LoadObject("room8_lmap.obj")
setobjectimage (mesh1,imageWood,0)
//SetObjectLightMap( objID, imageID )
//SetObjectLightMap(mesh1,imageWood)
//SetObjectImage( objID, imageID, 0 )
//SetObjectImage( objID, imageID, 1 )
//SetObjectImage( objID, imageID, 2 )
setobjectposition ( mesh1,0,0,0)
//SetCameraPosition( cameraID, x, y, z )
SetCameraPosition( 1, 150, 150, 0 )
//SetCameraLookAt( cameraID, x, y, z, roll )
SetCameraLookAt( 1, 0, 0, 0, 0 )
do
Sync()
loop
Asus T100. Win 8.1 CPU Z3775. AppGameKit V2 2.0.16
HD Graphics (Bay Trail)