I am new to DBPro, but am an experienced hobbyist programmer (30+ years) and IT professional.
I am working on my first real DBPro program in 3D and need to reposition lighting from the default/no declared lighting to a lowered light source distributing the light centered evenly on a cylinder object rather than the top-down lighting that default settings give.
[code]` Project: Cylinder
` Created: Wednesday, May 19, 2010
` Author: dcpyatt
cls 0
CylObject=1
make object cylinder CylObject,10
scale object CylObject, 200,200,200
xrotate object CylObject, 0
zrotate object CylObject, 90
while mouseclick()=0
endwhile
wait key
delete object CylObject
end
[/code]
I have played a little with some of the snippets in the help sections for lighting, but would like to look at something a little more direct at showing what the lighting commands can do and how they are positioned in the overall scheme of things.
I will also be looking at possibly 'spotlighting' small rectangular sections of the cylinder either with 'positive' light or dimming larger areas to make certain areas appear lit while others appear unlit.
Thanks for any samples you might be able to offer.
Dave Pyatt
Alliance, Ohio USA
` Project: Cylinder
` Created: Wednesday, May 19, 2010
` Author: dcpyatt
cls 0
CylObject=1
make object cylinder CylObject,10
scale object CylObject, 200,200,200
xrotate object CylObject, 0
zrotate object CylObject, 90
while mouseclick()=0
endwhile
wait key
delete object CylObject
end [/code]