Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 12:46

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 26.07.2010, 15:07 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Hi again, just noticed that there is a few problems with deferred pipeline when using more than one light source. In Chicago sample when I'm adding another light to scene :
Code:
   // Add light source
   H3DNode light = h3dAddLightNode( H3DRootNode, "Light1", lightMatRes, "LIGHTING", "SHADOWMAP" );
   h3dSetNodeTransform( light, 0, 10, 0, -30, 0, 0, 1, 1, 1 );
   h3dSetNodeParamF( light, H3DLight::RadiusF, 0, 50 );
   h3dSetNodeParamF( light, H3DLight::FovF, 0, 90 );
   h3dSetNodeParamI( light, H3DLight::ShadowMapCountI, 4 );
   h3dSetNodeParamF( light, H3DLight::ShadowSplitLambdaF, 0, 0.9f );
   h3dSetNodeParamF( light, H3DLight::ShadowMapBiasF, 0, 0.001f );
   h3dSetNodeParamF( light, H3DLight::ColorF3, 0, 0.8f );
   h3dSetNodeParamF( light, H3DLight::ColorF3, 1, 0.2f );
   h3dSetNodeParamF( light, H3DLight::ColorF3, 2, 0.2f );

   H3DNode light2 = h3dAddLightNode( H3DRootNode, "Light2", lightMatRes, "LIGHTING", "SHADOWMAP" );
   h3dSetNodeTransform( light2, 0, 10, 0, -30, 180, 0, 1, 1, 1 );
   h3dSetNodeParamF( light2, H3DLight::RadiusF, 0, 50 );
   h3dSetNodeParamF( light2, H3DLight::FovF, 0, 90 );
   h3dSetNodeParamI( light2, H3DLight::ShadowMapCountI, 4 );
   h3dSetNodeParamF( light2, H3DLight::ShadowSplitLambdaF, 0, 0.9f );
   h3dSetNodeParamF( light2, H3DLight::ShadowMapBiasF, 0, 0.001f );
   h3dSetNodeParamF( light2, H3DLight::ColorF3, 0, 0.2f );
   h3dSetNodeParamF( light2, H3DLight::ColorF3, 1, 0.2f );
   h3dSetNodeParamF( light2, H3DLight::ColorF3, 2, 0.8f );
it looks like this with Forward pipeline enabled :
Image

But when I'm enabling the Deferred pipeline, one of the light sources disappears :
Image

and Chicago sample crashes after flying a few seconds around the scene.
test system : Windows 7 + ATI RadeonHD 4890 + 10.6 drivers + Horde3D Beta4 r251

Best Regards, Siavash.


Top
 Profile  
Reply with quote  
PostPosted: 27.07.2010, 15:58 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks for the hint. I will check that once I'm back from siggraph next week.


Top
 Profile  
Reply with quote  
PostPosted: 27.07.2010, 22:22 
Offline

Joined: 27.07.2010, 22:18
Posts: 1
Well, I've tried this myself, with MinGW and an nVidia card, and here are my findings:
- also dissapears when the deferred pipeline is used
- the program crashes the moment the blue light (or where it should have been) goes out of sight -- so it works fine until it no longer has to render the blue light projected onto the floor (note that the program does NOT crash if the forward pipeline is used!)

Compiler: gcc (GCC) 3.4.5 (mingw-vista special r3)
System info:
Code:
NVIDIA System Information report created on: 07/27/2010 23:17:01
System name: TSI

[Display]
Processor:      AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ (2110 MHz)
Operating System:   Microsoft Windows XP, 32-bit (Service Pack 2)
DirectX version:   9.0
GPU processor:      GeForce 8800 GTS
Driver version:      197.45
CUDA Cores:      96
Core clock:      550 MHz
Shader clock:      1300 MHz
Memory clock:      792 MHz (1584 MHz data rate)
Memory interface:   320-bit
Memory:         320 MB
Video BIOS version:   60.80.0D.00.04
IRQ:         18
Bus:         PCI Express x16

[Components]

nvCplUIR.dll      2.8.313.10      NVIDIA Control Panel
nvCplUI.exe      2.8.313.10      NVIDIA Control Panel
nvWSSR.dll      6.14.11.9745      NVIDIA Workstation Server
nvWSS.dll      6.14.11.9745      NVIDIA Workstation Server
nvViTvSR.dll      6.14.11.9745      NVIDIA Video Server
nvViTvS.dll      6.14.11.9745      NVIDIA Video Server
nvMoblSR.dll      6.14.11.9745      NVIDIA Mobile Server
nvMoblS.dll      6.14.11.9745      NVIDIA Mobile Server
nvDispSR.dll      6.14.11.9745      NVIDIA Display Server
NVMCTRAY.DLL      6.14.11.9745      NVIDIA Media Center Library
NVOGLNT.DLL      6.14.11.9745      NVIDIA Compatible OpenGL ICD
nvDispS.dll      6.14.11.9745      NVIDIA Display Server
NVCPL.DLL      6.14.11.9745      NVIDIA Compatible Windows 2000 Display driver, Version 197.45
NV4_MINI.SYS      6.14.11.9745      NVIDIA Compatible Windows 2000 Miniport Driver, Version 197.45
NV4_DISP.DLL      6.14.11.9745      NVIDIA Compatible Windows 2000 Display driver, Version 197.45
PhysX      09.10.0129      NVIDIA PhysX
NVCUDA.DLL      6.14.11.9745      NVIDIA CUDA 3.0.1 driver
nvGameSR.dll      6.14.11.9745      NVIDIA 3D Settings Server
nvGameS.dll      6.14.11.9745      NVIDIA 3D Settings Server


Top
 Profile  
Reply with quote  
PostPosted: 28.07.2010, 04:34 
Offline

Joined: 15.02.2009, 02:13
Posts: 161
Location: Sydney Australia
I'll try to also look into it when I have time. The renderbuffer code has been changed a fair bit from beta4, and this also might explain why my color buffer shadowmaps are crashing my poor N900 phone in the ES branch...

_________________
-Alex
Website


Top
 Profile  
Reply with quote  
PostPosted: 02.08.2010, 00:16 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
The problem should be fixed now. Thanks again for the reports.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group