Toolset lightmapper project
#51
Geschrieben 26 November 2009 - 05:16
#52
Geschrieben 26 November 2009 - 05:16
dorotea wrote...
"That should get rid of the errors regarding engine.dll registration. See what happens after that."
I know how to register a dll manually. My problem is that when I try to do it -- ie try to run
regsvr32 "%root%\\\\\\\\Dragon Age\\\\\\\\tools\\\\\\\\Engine.dll" from either command prompt or Start -> Run I get absolutely nothing - ie no confirmation message and no error message either. Just 30 sec or so of hourglass cursor. When I try to run
regsvr32 \\\\\\\\u "%root%:\\\\\\\\Dragon Age\\\\\\\\tools\\\\\\\\Engine.dll"
- to unregister - I get :
LoadLibrary ("\\\\\\\\u") failed - The specified module could not be found
My install is at E: \\\\\\\\ drive btw so my location is at "E:\\\\\\\\Dragon Age\\\\\\\\tools\\\\\\\\Engine.dll" -- should I try to reinstall the game into C:\\\\\\\\Program Files? Maybe it is my Engine.dll that is corrupted? I reinstalled toolset 3 times and I always end up with the same problem - not being able to register the Engine.dll either during the install or manually.
When I try to have a look at Engine.dll in my install with Dependency Walker I get :
IESHIMS.DLL -- the system cannot find the file specified.
MSS32.DLL -- the system cannot find the file specified.
PHYSXLOADER.DLL -- the system cannot find the file specified.
WER.DLL -- the system cannot find the file specified.
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
I had the same problem. The only way I was able to register the dll was to start up in safe mode and log in as administrator. Doing that, I was able to register it. I am using vista by the way.
#53
Geschrieben 26 November 2009 - 07:30
Failed to find lightmap-atlas info for model 'fhi_wallbasic_0', part '_1k5' type errors .
And no, they don't go away after first, or second, or third, or fourth, etc attempt to render a ligtmap for a simple tiny room with 3 walls, a barrel and two lights. Will try to roll back to lightmapper 1.0 tomorrow and use the safety mode trick to reg the Engine.dll. As Alice used to say - this is getting curiouser and curiouser. ( All of the above is happening on Win xp 64 bit system)
Bearbeitet von dorotea, 26 November 2009 - 07:34 .
#54
Geschrieben 26 November 2009 - 01:14
Did you find out anything about shadow casting and sunlight? I don't seem to get shadows for any level geometry when i only use sunlight. Ambient Occlusion works however (even on trees). For now I'm not sure what a basic light setup for an exterior level should be, and the WIKI doesn't mention sunlight on the page about lighting.akaliel wrote...
Quick question James, now that we're getting sunlight, i noticed that there's no shadows from the trees. Do trees generate shadows, or is it only from landscape?
#55
Geschrieben 26 November 2009 - 03:57
dorotea: Those messages can be ignored. I have suppressed them for the next release of the toolset.
oni_step: I have heard that regsvr32 hanging is a general problem with the installer with some versions of XP. My understanding was that the library does actually get registered, but regsrv just hangs in memory until reboot. Interesting about the safe mode, I'll have to let them know. It's a clue at any rate.
#56
Geschrieben 26 November 2009 - 04:00
#57
Geschrieben 26 November 2009 - 04:02
dorotea wrote...
grr - oni -- thanks for the advice! I was finally able to register Engine.dll from the safe mode - maybe this bit should be added to the wiki. But now I cannot even get the lightmapper to submit lightmaps for rendering anymore - all I get is continuous :
Failed to find lightmap-atlas info for model 'fhi_wallbasic_0', part '_1k5' type errors .
And no, they don't go away after first, or second, or third, or fourth, etc attempt to render a ligtmap for a simple tiny room with 3 walls, a barrel and two lights. Will try to roll back to lightmapper 1.0 tomorrow and use the safety mode trick to reg the Engine.dll. As Alice used to say - this is getting curiouser and curiouser. ( All of the above is happening on Win xp 64 bit system)
I will put this info on the wiki. As for your other errors, can you verify which version of Python you have? If your are using ActiveState Python 64 bit edition, it is does not have all of the things necessary for the lightmapper. The 32 bit version does work on a 64 bit machine though.
#58
Geschrieben 26 November 2009 - 05:37
#59
Geschrieben 26 November 2009 - 07:01
Otherwise, akaliel, the answer is "yes".
#60
Geschrieben 26 November 2009 - 07:09
James Goldman wrote...
What the ...?? OK, sunlight does not appear to be showing up in the shadow maps. I'll be looking into that. Static lights are working fine for shadows.
Cool, for me is the only thing that isn't working.
#61
Geschrieben 26 November 2009 - 08:27
Bearbeitet von Allan Smith, 26 November 2009 - 08:27 .
#62
Geschrieben 26 November 2009 - 09:00
I too though am having the exact same issue as Dorotea. I have a created two levels. One is a basic room and another is a basic 64x64 exterior level. Everytime I try to render lightmaps, it just hangs and does nothing. Who knows. Maybe it has something to do with registering the dll in safe mode. Got me.
As for python version, I have tried the activestate version and the regular python version and both do the same thing of just waiting and doing nothing. And no, they are not both installed at the same time. I would uninstall python, then the toolset and then install the other python and then the toolset. All the python installs are coming from the links on the wiki site. I did find something that might be helpful or not. When I tried the regular python install (not activestate), I started the toolset up with no extensions installed for test purposes. When I ran rendered the lightmaps, it would not just hang but would actually go through the process only to give me a missing file error. Then I installed the extensions for python and that's where is would just hang and do nothing. All this by the way is as administrator and not a user account with administrator rights. Hope this helps cause i am so wanting to create some levels for this game. Kudos on a great game.
Bearbeitet von oni_step, 26 November 2009 - 09:01 .
#63
Geschrieben 27 November 2009 - 12:12
#64
Geschrieben 27 November 2009 - 12:18
#65
Geschrieben 27 November 2009 - 03:18
#66
Geschrieben 27 November 2009 - 05:11
I am glad I did not get into reinstalling the tooset before reading the forum - as indeed if the Engine.dll is the same than it won't make any difference. So, yes, oni and I have the exact same problems - after forcing Engine.dll to register via using the safe mode. But I have Win XP 64 and I think hers is vista. ( I am now considering to switch to Win 7 64 - if that would fix my toolset, lol, but then I want to keep replaying my Baldurs Gate games, and was not sure if Win 7 would allow me to.
I installed ActivePython-2.5.4.4-win32-x86.msi - it is 32 bit version and I think wiki mentioned that this is the version that works.
What is most interesting, I think that before my Engine.dll was actually forced-registered through using the safe mode I was getting this far ( citing from my log)
Wed Nov 25 00:01:42 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Processing shadow map job C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\DALightmap\\lay0011\\9A49EF20-0914-49FB-8BB9-D256ADEB5D25\\job_sm0.xml ..."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Lightmapper script completed successfully."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Submiting jobs to lightmapper took 2 seconds."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Successfully submitted lightmap job."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Running lightmapper script."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Could not get a GFF reader object. Make sure Engine.dll is registered."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Could not get a GFF reader object. Make sure Engine.dll is registered."
Wed Nov 25 00:01:43 2009, INFO, ".\\LvlEditorWnd.cpp", 5209, "Could not get a GFF reader object. Make sure Engine.dll is registered."
ETC ETC
After I forced Engine.dll to register it now fails before actually submitting the lightmap job at this stage :
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "No lightmap atlas found. Falling back to display legacy lightmaps in editor."
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "Failed to find lightmap-atlas info for model 'fhi_floorwood_0', part '_38d'"
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "Failed to find lightmap-atlas info for model 'fhi_wallbasic_0', part '_1k5'"
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "Failed to find lightmap-atlas info for model 'fhi_pillarwood_0', part '_1k7'"
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "Failed to find lightmap-atlas info for model 'fhi_wallbasic_0', part '_1k5'"
Fri Nov 27 00:09:04 2009, WARNING, ".\\LvlEditorWnd.cpp", 5201, "Failed to find lightmap-atlas info for model 'fhi_wallbasic_0', part '_1k5'"
and that' s it
I am using the same version of python - before and after 2.5.4.4
I can dig into more log files if you like but I bet the issue is in Engine.dll
#67
Geschrieben 27 November 2009 - 09:14
Edit: Oh and I also modified the lightmapper.py file to have the aergia import not load. ( Put a "#" in front of aergia ). I ran the toolset and it didn't hang. Of course it did error out on me but it actually said in the log that it was running the script. Below is what the log said.
14:17:13 - Failed to submit lightmap layout [onitest]
14:17:13 - Job submission process failed with a return code of '1'.
14:17:13 - EclipseRay 1.1
14:17:13 - Lightmapper script failed. See errlog.txt for details.
14:17:13 - Running lightmapper script.
14:17:13 - Failed to find lightmap-atlas info for model 'chi_chafloor01', part '_iy'
Before i changed anything, the last thing the log would say was the lightmap-atlas issue and then just hang. I can give you what the error log says if you want, but I am sure it is pointless because it would have to do something with aergia not being imported.
Bearbeitet von oni_step, 27 November 2009 - 09:22 .
#68
Geschrieben 29 November 2009 - 05:00
Aergia is the wrapper library around Yafray that exposes its objects to Python. If you comment out that import, then you are commenting out the raytracer. Needless to say, that won`t work.
These kind of errors are difficult to track down because unfortunately everyone`s system is a bit different. That`s the big challenge of developing for the PC!
#69
Geschrieben 29 November 2009 - 06:43
Edit: Oh wait. I read your post again and it looks like the aergia file is not a python file? Well when I open up the lightmapper file in the python editor and debug it, it errors out on the aergia import line. That's why I am wondering if it is the aergia file.
Bearbeitet von oni_step, 29 November 2009 - 06:50 .
#70
Geschrieben 30 November 2009 - 01:31
#71
Geschrieben 01 Dezember 2009 - 04:27
E: 16:57:44 - Failed to run 'C:\\\\Program Files (x86)\\\\Dragon Age\\\\tools\\\\Lightmapper\\\\EclipseRay.exe LightMapper.py --terse -cpus=2 --numSubJobs 1 --inputDir ...etc
i have python 2.544 installed an reinstalled, toolset also reinstalled, and tried with eclisperay 1.1 and without... but always the same error.
If someone can help me please.
Bearbeitet von Sharpaz, 01 Dezember 2009 - 04:29 .
#72
Geschrieben 01 Dezember 2009 - 10:25
#73
Geschrieben 01 Dezember 2009 - 10:29
#74
Geschrieben 01 Dezember 2009 - 11:37
I have the latest lightmapper. I have a level with 1 very dim ambient light and the sunlight is configured to be bright red and pointing down. When I export and run I see bright red lighting on the character, but the level is only lit by the dim baked ambient that I created.
#75
Geschrieben 02 Dezember 2009 - 12:41





Nach oben






