Aller au contenu

Photo

Lighting wackiness-SOLVED!


  • Veuillez vous connecter pour répondre
17 réponses à ce sujet

#1
errant_knight

errant_knight
  • Members
  • 8 256 messages
Is there something I need to know about lighting that I don't? At first, everything was going beautifully. I had some nice shadows cast by a couple of walls with rail tops, right where they should be, but I did something that I could swear was exactly the same, and now I have some really ugly stuff going on, and what seems to be shadows cast in impossible places. I have one ambient-baked, and one point static. What the heck is going on, anyone know?

Modifié par errant_knight, 11 août 2010 - 05:18 .


#2
Talisander

Talisander
  • Members
  • 173 messages
Is it possible you haven't redone the lightmapping after moving models around? The baked lighting won't change until you render lightmaps again, but you probably already know that. You might have two lightmaps displaying at the same time? I've heard this can happen... has something to do with posting to local, I think. Definitely fixable, but annoying. Hopefully someone who knows more will be able to help. Check out mikemike's lighting tutorial, which is on the builder wiki tutorial page.





Alex

#3
errant_knight

errant_knight
  • Members
  • 8 256 messages

Talisander wrote...

Is it possible you haven't redone the lightmapping after moving models around? The baked lighting won't change until you render lightmaps again, but you probably already know that. You might have two lightmaps displaying at the same time? I've heard this can happen... has something to do with posting to local, I think. Definitely fixable, but annoying. Hopefully someone who knows more will be able to help. Check out mikemike's lighting tutorial, which is on the builder wiki tutorial page.


Alex

Thanks! Yeah, I've redone the lightmaps multiple times.... I wish that was it! Multiple lightmaps would absolutely explain this. *flails* I'll check out the lighting tutorial and see if it says anything about that. If not, I'll probably learn something anyway. ;)

#4
errant_knight

errant_knight
  • Members
  • 8 256 messages
You totally rock, Alex! That was it. In case anyone else is having the same proble, here's the link to how to delete your lightmaps:
http://bg2redux.stud...ngLightmapFiles

For quick reference, here's the instructions to do it manually (the link also has how to set up a .bat to do it:

If your layout name is LAYOUT and your module is called MODULE, then delete the following folders:

My Documents\\\\BioWare\\\\Dragon Age\\\\Toolset\\\\LvlWorkspace\\\\lightmaps\\\\LAYOUT
My Documents\\\\BioWare\\\\Dragon Age\\\\Toolset\\\\ProbeLightMaps\\\\LAYOUT
My Documents\\\\BioWare\\\\Dragon Age\\\\Toolset\\\\resourcepostintermediatewin32\\\\processed\\\\addins\\\\MODULE\\\\layouts\\\\win32\\\\layouts\\\\LAYOUT
My Documents\\\\BioWare\\\\Dragon Age\\\\Toolset\\\\resourcepostintermediatewin32\\\\processed\\\\addins\\\\MODULE\\\\layouts\\\\win32\\\\modelhierarchies\\\\LAYOUT
My Documents\\\\BioWare\\\\Dragon Age\\\\Toolset\\\\resourcepostintermediatewin32\\\\processed\\\\addins\\\\MODULE\\\\layouts\\\\win32\\\\textures\\\\dds\\\\LAYOUT
(path of your level file)\\\\LAYOUT.erf
(path of your level file)\\\\LAYOUT.bak.erf
C:\\\\DOCUME~1\\\\Mike\\\\LOCALS~1\\\\Temp\\\\DALightmap\\\\LAYOUT (you can use Run... and type %TEMP% and hit OK)
(if you have posted to local) My Documents\\\\BioWare\\\\Dragon Age\\\\addins\\\\MODULE\\\\core\\\\override\\\\toolsetexport\\\\LAYOUT

Note: if you miss one of these, as I did the first time, it may not fix it completely.

Modifié par errant_knight, 11 août 2010 - 05:17 .


#5
Languard

Languard
  • Members
  • 126 messages
Writing a tool to help automate this. I'll post the beta version tonight.

#6
-Semper-

-Semper-
  • Members
  • 2 256 messages
you see us suffer, chewy? :innocent:

#7
Talisander

Talisander
  • Members
  • 173 messages
Every day I say a prayer in wookie.


EK:  glad that was it :)

Modifié par Talisander, 11 août 2010 - 10:16 .


#8
errant_knight

errant_knight
  • Members
  • 8 256 messages

Languard wrote...

Writing a tool to help automate this. I'll post the beta version tonight.

Yay!! I'm going to be using that a lot, I bet! :)

#9
ChewyGumball

ChewyGumball
  • Members
  • 282 messages
I see with no eyes. Hear with no ears. Create with no hands.

#10
errant_knight

errant_knight
  • Members
  • 8 256 messages
Uh....

#11
Languard

Languard
  • Members
  • 126 messages
social.bioware.com/project/3247/

As long as your Documents and Settings folder is on the C drive, it will nuke all lightmap files for all levels.  The exception is *.erf and *.erf.bak files generated in the same folder as the .lvl.  Let me know if it proves useful.

#12
errant_knight

errant_knight
  • Members
  • 8 256 messages
I already know it will! Thanks so much!!
Edit: I'm not seeing the file....

Modifié par errant_knight, 12 août 2010 - 03:11 .


#13
Languard

Languard
  • Members
  • 126 messages
Well look at that...I forgot to upload the file *thwaps self with a trout* Uploaded now

#14
Talisander

Talisander
  • Members
  • 173 messages
Languard, that's awesome. I think you have to set the files to be viewable by everyone (it's a setting under the project you created.) Otherwise the rest of us can't download it.



You should make an announcement on the projects page. Or maybe add a link to the wiki (there's a page for useful 3rd party applications).



Great work.

#15
errant_knight

errant_knight
  • Members
  • 8 256 messages

Languard wrote...

Well look at that...I forgot to upload the file *thwaps self with a trout* Uploaded now


Yay!  I try and transfer files with my mind more often than I like to admit. ;)

Modifié par errant_knight, 12 août 2010 - 05:09 .


#16
Languard

Languard
  • Members
  • 126 messages
*proceeds to duel-wield trouts and thwaps himself again* Yes indeed, need to change the file permissions as well.



Really, honestly, and truly, it should be visible now to download.

#17
Kilrogg_

Kilrogg_
  • Members
  • 296 messages
Lightmaps will always look screwed up if you render lightmaps on top of existing lightmaps, until you post the level. Once posted, things go back to normal. Or at least that is what happens to me consistently.

#18
errant_knight

errant_knight
  • Members
  • 8 256 messages
I'm trying the lightmap remover, and it has a problem when it tries to find the folder with the layout name. It gets to here: C:\\Documents and Settings\\\\\\MYNAME\\\\\\My Documents\\\\\\BioWare\\\\\\Dragon Age\\\\\\Toolset\\\\\\LvlWorkspace\\\\\\lightmaps, and then expects to find a lightmap, I think, rather that a folder.