![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#211 |
Planesman
![]() Join Date: Mar 2007
Posts: 197
Downloads: 22
Uploads: 0
|
![]()
This is a fairly intriguing discussion.
And as a 3d illustrator it's very interesting to me. I've been trying to mod the lighting in SH4, but it has eluded me...need to figure out what does what. But, I think I can help with some of the theory behind lighting, mainly the self shadowing of the turms. What I think the problem is, is the ambient lighting. It's too bright and it's blowing out the self shadowing. I've been doing some testing in Cinema4D and have gotten similar results to what you have there. I'm not one to know how to code much of anything, I just try to make things look good ![]() If there's a way to change the ambient lighting throughout the day, that might fix the muted self shadows. Have the ambient light strong during noon and gradually decrease it throughout the day. But, that's for way way in the future. Just me throwing out ideas. Keep up the good work ![]() Edit: Just reinstalled SH3, stock 1.0, enabled shadows. In awe. And I think I figured out what the problem is with the multicolored crew. It's the UV mapping, or some part of it, on the crew that is conflicting with the shadows. That's why it didn't show up on the modded crewmen. (a few pages back) However it did show up on the binoculars, which I think are a seperate .obj. If the crew were "fixed" by applying an exterior texture mod, can't the same be done with the binoculars? And if Shadows can be implimented in SH3, it can be done in SH4. Don't say it's impossible. Just look at Freespace 2 and what has been done with the Source Code Project. If one thing can be done in SH3. Since SH4 is a modified SH3 engine, it should be possible. Last edited by fair_weather; 03-08-09 at 08:35 AM. |
![]() |
![]() |
![]() |
#212 |
Engineer
![]() Join Date: Jul 2006
Location: By the Nordsee
Posts: 200
Downloads: 374
Uploads: 0
|
![]()
[quote=Graf Paper]In perusing some of these files, I just wonder if that fix might be as simple as using the v1.0 crew textures for the uv mapping?
I'm affraid not, as enabling shadows in the original version 1 game, the crew also glowed the same! ok Rick |
![]() |
![]() |
![]() |
#213 | |
Admiral
![]() Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
|
![]() Quote:
![]()
__________________
What we do in life echoes in Eternity |
|
![]() |
![]() |
![]() |
#214 |
Planesman
![]() Join Date: Mar 2007
Posts: 197
Downloads: 22
Uploads: 0
|
![]()
If you have SH4, you can check this out for yourself.
Go to Documents>SH4>data>cfg>main.cfg It'll look almost the same compared to SH3, including the line under [VIDEO] DynamicShadows=No You can change it to yes, but like later versions of SH3 it won't work. ...actually... That'd be something to test. If SH3 had dynamic shadows in the stock version, but just had them line disabled. ...Could the same be in SH4? ![]() ...I have to try this... |
![]() |
![]() |
![]() |
#215 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#217 | |
Black Magic
![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#218 |
Ace of the Deep
![]() Join Date: Jan 2008
Location: Pacific Northwest United States
Posts: 1,146
Downloads: 41
Uploads: 2
|
![]()
So far as I can decipher so far, the ACT files seem to have a C++ executable wrapper with the line numbers stripped out, using MS Visual C++ 7.0. Find out what that wrapper hides and you'll know what ACT files are at their heart. Could be they're simple DLL files or maybe some sort of scripting language.
I've been experimenting with the settings for the Shadows test mod and it seems every experiment I've tried had yielded unremarkable results. Still no shadows just beneat the waves. I suppose I need to Google for information on exactly how translation and rotation work with light sources in DirectX 9. If I still canoot get some worthy results, it would seem that editing other files may be called for.
__________________
Still sailing the high seas, hunting convoys with those who join me. |
![]() |
![]() |
![]() |
#219 | |
Black Magic
![]() |
![]() Quote:
text....;.......@.................. ..`.rdata..d....P.......P..............@..@.data.. .............................@....reloc it appears there is a text segment, rdata segment, data segment, and reloc segment. |
|
![]() |
![]() |
![]() |
#220 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
They act in several different ways.
They have a table that directs each block much as standard files. But they are also designed to interact with Kashmir. Kashmir, as we know, can edit the act files, and other files in Sh3 and SH4. So if you have Kashmir? You fire it up, it reads all the SH? files and you go on your merry way. Much of the code in the ACT files is interface stuff. It tells Kashmir how to display the key information. (Can you say interface?) What more do you need to know? ![]() |
![]() |
![]() |
#221 | |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,723
Downloads: 171
Uploads: 0
|
![]() Quote:
![]() Sorry I couldn't help myself! ![]() ![]()
__________________
Sub captains go down with their ship! |
|
![]() |
![]() |
![]() |
#222 |
Planesman
![]() Join Date: Jun 2006
Location: Southern California
Posts: 194
Downloads: 78
Uploads: 0
|
![]()
Ouote:
"So if you have Kashmir? You fire it up..." Ahhh, yes. Best Led Zeppelin song ever :rotfl: |
![]() |
![]() |
![]() |
#223 | |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]() Quote:
I'm glad to see you! ... This thread still ruminates about problem of past years (2005... 2006) ...? Modders of past years have not wanted to expend time for this bug of Dev's ... "Овчинка выделки не стоит ..." - russian saying ... *.act - dynamic library ... If it's interestingly possible to look import\export of executed files using the native Widows tool ... "Dependency Walker" (depends.exe) ... For the best presentation it is necessary to use "Undecorate C++ functions" ... You must use "Application Profiling to Detect Dynamic Dependencies" for more detailed review (for dynamic libraries) ... Simply load sh3.exe, run application profiling and play in game some time ... and then look functions ... As example: fragment (kernel.dll - one of the main files): ... void cEngAnswer::CreateClones(struct sObject *) void sAssocTable::Set(unsigned int,unsigned int) void sCamera::EnableSpecular(bool,float) sOcclusionQuery::sOcclusionQuery(void) Transform3D::Transform3D(bool) cEngAnswer::cEngAnswer(int) sAutoList::sAutoList(struct sAutoList * *) sAutoPointer::sAutoPointer(void) sCamera::sCamera(struct sObject *,struct sGeometry *,float,float,float,float,float,float,float,float) sController::sController(struct sController &) sController::sController(struct sRuntimeInstance * *) sGeometry::sGeometry(struct sRuntimeInstance * *) sMaterial::sMaterial(struct sMaterial &) void EngFree(void *) int sTextureManager::Eval(void) void FastNormalize(float (&)[3],float (&)[3]) struct sRuntimeInstance * sRuntimeInstance::FindByID(unsigned int,unsigned int,unsigned char) struct sRefTarget * sRefTarget::FindByName(char *) void GetBezierCoefs(struct Quat &,float,float,float,float) unsigned int sAutoList::GetClassID(void) unsigned int sController::GetClassID(void) unsigned int sGeometry::GetClassID(void) unsigned int sMaterial::GetClassID(void) unsigned int sObject::GetClassID(void) unsigned int sOcclusionQuery::GetClassID(void) unsigned int sRefTarget::GetClassID(void) unsigned int sRuntimeInstance::GetClassID(void) unsigned int sSectorAlignedBox::GetClassID(void) unsigned int sVectorController::GetClassID(void) unsigned int sVertexProgram::GetClassID(void) unsigned int sVirtual::GetClassID(void) void Transform3D::GetColumn(float (&)[3],int) char * sRuntimeClass::GetData(struct sRuntimeInstance *,int,int *) char * sRuntimeClass::GetData(struct sRuntimeInstance *,int,int *) char * sRuntimeClass::GetData(struct sRuntimeInstance *,int,int *) char * sRuntimeInstance::GetData(int,int *) float GetDefBezierTangents(float *,int,int,int,float *) struct sRuntimeClass * sRuntimeClass::GetRuntimeClass(char *) void GetScreenPixels(int,int,int,int,void *,enum PixelFormat *,enum DataType *) struct sTexture * sTextureManager::GetTexture(char *) void GetViewport(int &,int &) struct sRuntimeInstance * GlobalFind(unsigned int *) struct sAssocTable sAssocTable::GlobalRepository struct sRuntimeInstance * sObject::HFindByID(unsigned int,unsigned int,unsigned char,int) struct sObject * sObject::HierarchySweep(struct sVirtual *,unsigned int,int) struct sObject * sObject::globallist struct sRuntimeInstance * sRuntimeInstance::globallist struct sRuntimeClass * sRuntimeClass::list struct sPixelShader * sMaterial::pGlobalPixelShader unsigned int sObject::sFrame :rotfl: P.S. It's not exact tool, but the general (or common?) kind of functions you will see ... Besides using this method ("Application Profiling") you can see errors in work of sh3 on your machine (as example, your video don't work correctly with game shaders) and also absence (loss) of some files (textures, for example) ... P.P.S. Very long post therefore has reduced in 2 times ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-02-09 at 04:19 PM. |
|
![]() |
![]() |
![]() |
#224 |
Black Magic
![]() |
![]()
@Anvart:
Ever seen this before: 00:00:00.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsAlloc") called from "c:\program files\ubisoft\silenthunteriii\MSVCR71.DLL" at address 0x7C341950 and returned NULL by thread 1. Error: The specified procedure could not be found (127). 00:00:00.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsGetValue") called from "c:\program files\ubisoft\silenthunteriii\MSVCR71.DLL" at address 0x7C34195D and returned NULL by thread 1. Error: The specified procedure could not be found (127). 00:00:00.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsSetValue") called from "c:\program files\ubisoft\silenthunteriii\MSVCR71.DLL" at address 0x7C34196A and returned NULL by thread 1. Error: The specified procedure could not be found (127). 00:00:00.203: GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "FlsFree") called from "c:\program files\ubisoft\silenthunteriii\MSVCR71.DLL" at address 0x7C341977 and returned NULL by thread 1. Error: The specified procedure could not be found (127). Is there something wrong with my c:\windows\system32\KERNEL32.DLL? Nice little tool you have shown also ![]() It's also interesting what happens with you try to run a 'modified' SH3.EXE with this tool. It terminates the application saying that a debugger is in use and for you to shut it down and then retry ![]() |
![]() |
![]() |
![]() |
#225 |
Sea Lord
![]() Join Date: Mar 2007
Location: La Paz, Bolivia
Posts: 1,965
Downloads: 276
Uploads: 51
|
![]()
Anvart:
What prog are u using? Could you please provide more details on how to use it? Thank you ![]() CapZap
__________________
![]() |
![]() |
![]() |
![]() |
|
|