John DeleD PRO user
Joined: 22 Dec 2008 Posts: 182 Location: Houston, TX
|
Posted: Tue May 17, 2011 2:32 am Post subject: Issue with Edges and Light |
|
|
I've been trying to make the geometry and apply textures in DeleD, import into Ultimate Unwrap in MS3D, then export to B3D for use in Blitz 3D. I'm not really sure where the problem is, but it seems whenever I use a spotlight on an area where a lot of edges meet I get this problem:
http://i295.photobucket.com/albums/mm151/coffeeaddict21/testshot.jpg
Any ideas? I made this post here because I'm not sure where in the tool chain things are getting screwed up.
Here is the B3D code I'm using for those who are familiar with it:
Code: |
Include "key_scancodes.bb"
If GfxMode3DExists(800,600,32)=False
RuntimeError "Error: Unable to launch graphics at 800x600x32."
End
End If
Graphics3D 800,600,32
SetBuffer BackBuffer()
AppTitle "Render To Texture Tool"
camera=CreateCamera()
PositionEntity camera,0,125,125
CameraRange camera,1,3000
CameraClsColor camera,255,255,255
rendermesh=LoadMesh("controlroom.b3d")
AmbientLight 0,0,0
light = CreateLight(3,camera)
LightRange light,400
LightColor light,250,250,210
LightConeAngles light,0,90
While(KeyDown(key_esc)<>True)
If KeyDown(key_P) Then SaveBuffer(FrontBuffer(),"sshot.bmp")
If KeyDown(key_up)
If KeyDown(key_leftshift)=False Then TurnEntity camera,1,0,0 Else MoveEntity camera,0,0,1
End If
If KeyDown(key_down)
If KeyDown(key_leftshift)=False Then TurnEntity camera,-1,0,0 Else MoveEntity camera,0,0,-1
End If
If KeyDown(key_left) Then TurnEntity camera,0,1,0
If KeyDown(key_right) Then TurnEntity camera,0,-1,0
UpdateWorld
RenderWorld
Text 300,300,EntityX(camera)+", "+EntityY(camera)+", "+EntityZ(camera),True,True
Flip
Wend
End |
I would appreciate any help. |
|