Spelkontroll  ::  Emulation64  ::  DCEmu.co.ukNetwork Sites:    About  ::  Hosting  ::  Donate 
Home Files Forums Reviews Guides Articles Interviews



Welcome to EmuTalk.net

Go Back   EmuTalk.net > General Discussion > Programming

Welcome to EmuTalk

Closed Thread
 
Thread Tools Display Modes
Old March 3rd, 2002, 07:07   #241
Ogy
3Dfx Fanatic.
 
Ogy's Avatar
 
Join Date: Dec 2001
Location: israel
Posts: 511
Ogy is a glorious beacon of light
thanks, maybe i will in the next release.
--------------------
/ ----------------- \
| /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp\ |
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp/-------\&nbsp&nbsp&nbsp\-\&nbsp&nbsp&nbsp&nbsp/-/
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp| /----\ |&nbsp&nbsp&nbsp&nbsp\ \&nbsp&nbsp/ /
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp| \----/ |&nbsp&nbsp&nbsp&nbsp&nbsp\ \/ /
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp\------| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp\/ /
| \&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp/ |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/ /
\ ----------------- /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp_____ | |&nbsp&nbsp&nbsp&nbsp&nbsp/ /
--------------------- &nbsp&nbsp&nbsp&nbsp|______/&nbsp&nbsp&nbsp&nbsp/_/
Ogy is offline  
Old March 4th, 2002, 06:21   #242
gokuss4
Meh...
 
Join Date: Dec 2001
Posts: 1,515
gokuss4 is just really nice
is there anyway dave could fix a certain problem with his plug-in? it has to do with lighting and how accurate it is (e.g marios big face in the beginning)
--------------------
The only forum I have more than 1,000 posts on! weeeeeeee bleep.
gokuss4 is offline  
Old March 4th, 2002, 07:22   #243
Reznor007
EmuTalk Member
 
Reznor007's Avatar
 
Join Date: Nov 2001
Location: Norman, OK, USA
Posts: 653
Reznor007 is just really nice
Send a message via ICQ to Reznor007 Send a message via AIM to Reznor007 Send a message via Yahoo to Reznor007
I noticed that too. Mario has a hint of red on his face, this does not happen in Jabo's plugin(or UltraHLE).
--------------------
Nothing can stop me now.
Reznor007 is offline  
Old March 4th, 2002, 08:15   #244
Dave2001
Moderator
 
Dave2001's Avatar
 
Join Date: Dec 2001
Location: USA
Posts: 310
Dave2001 is just really nice
I'm not an expert on lighting math, so I'm having a little trouble figuring out what's wrong with my lighting calculations. Can someone download the sources and check the lighting code in 3dmath.cpp calclights() to see if it's correct? light_vector[l] is the direction towards the light, and v->vec is the normal. I think that the problem is that I need a min() or max() somewhere, but I'm not sure where. (see starfox intro to find real problem, something goes negative and it dies as you move the 64 to the left of the characters)
Dave2001 is offline  
Old March 5th, 2002, 02:17   #245
Ogy
3Dfx Fanatic.
 
Ogy's Avatar
 
Join Date: Dec 2001
Location: israel
Posts: 511
Ogy is a glorious beacon of light
Dave we have a problem:
when you use the plugin, the plugin searches for the INI and if it can't find it, it creates a new one. the problem is that the INI must be the same name as the DLL and if someone want's to change Glide64.dll to something else the INI will not work anymore.
--------------------
/ ----------------- \
| /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp\ |
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp/-------\&nbsp&nbsp&nbsp\-\&nbsp&nbsp&nbsp&nbsp/-/
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp| /----\ |&nbsp&nbsp&nbsp&nbsp\ \&nbsp&nbsp/ /
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp| \----/ |&nbsp&nbsp&nbsp&nbsp&nbsp\ \/ /
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp\------| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp\/ /
| \&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp/ |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/ /
\ ----------------- /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp_____ | |&nbsp&nbsp&nbsp&nbsp&nbsp/ /
--------------------- &nbsp&nbsp&nbsp&nbsp|______/&nbsp&nbsp&nbsp&nbsp/_/
Ogy is offline  
Old March 5th, 2002, 02:24   #246
Ogy
3Dfx Fanatic.
 
Ogy's Avatar
 
Join Date: Dec 2001
Location: israel
Posts: 511
Ogy is a glorious beacon of light
i'm sorry for posting these things here but due to time differences it's really hard for me to talk to you on IRC.


anyway, when using RSP: interpreter on some games Glide64 gives this error (but keeps working well) :
Attached Thumbnails
Click image for larger version

Name:	g64err1.jpg
Views:	76
Size:	14.4 KB
ID:	1672  
--------------------
/ ----------------- \
| /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp\ |
| |&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs p&nbs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--------------------- &nbsp&nbsp&nbsp&nbsp|______/&nbsp&nbsp&nbsp&nbsp/_/
Ogy is offline  
Old March 5th, 2002, 05:34   #247
Dave2001
Moderator
 
Dave2001's Avatar
 
Join Date: Dec 2001
Location: USA
Posts: 310
Dave2001 is just really nice
well, that's not Glide64 giving that error, Project64 may be doing it because of an invalid memory access in Glide64 though.

Also, RSP interpreter when I''ve tried it also had problems, make sure that the problem you're giving me does not occur with all plugins.

Anyway, about the Glide64.ini name, I meant for it to be like that. Would you rather me _REQUIRE_ that the name be Glide64.ini, because I can do that too. I did it so that you might be able to have different settings for different games. (of course I will still need to add an INI title to the plugin string for that)

Last edited by Dave2001 : March 5th, 2002 at 05:38.
Dave2001 is offline  
Old March 5th, 2002, 12:43   #248
Quvack
Moderator
 
Quvack's Avatar
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 561
Quvack is just really nice
Regarding the ini:

I'd keep it the same, because usually people wont need to rename the dll anyway, and having the ability to have different settings could be usefull... Maybe an option in the plugin itself to name the ini or select a different may be of use, i dunno
Quvack is offline  
Old March 5th, 2002, 14:12   #249
crhylove
Banned
 
crhylove's Avatar
 
Join Date: Nov 2001
Location: Planet Claire
Posts: 678
crhylove is just really nice
Send a message via ICQ to crhylove Send a message via AIM to crhylove Send a message via Yahoo to crhylove
just for the record....
Quote:
Originally posted by Ogy
i'm sorry for posting these things here but due to time differences it's really hard for me to talk to you on IRC.


anyway, when using RSP: interpreter on some games Glide64 gives this error (but keeps working well) :
and because i'm a total idiot with no real input....

that color scheme is horrible!


krhydaddy
crhylove is offline  
Old March 5th, 2002, 17:56   #250
icepir8
Moderator
 
icepir8's Avatar
 
Join Date: Nov 2001
Location: Everywhere
Posts: 918
icepir8 is just really nice
Cool
Quote:
Originally posted by Dave2001
I'm not an expert on lighting math, so I'm having a little trouble figuring out what's wrong with my lighting calculations. Can someone download the sources and check the lighting code in 3dmath.cpp calclights() to see if it's correct? light_vector[l] is the direction towards the light, and v->vec is the normal. I think that the problem is that I need a min() or max() somewhere, but I'm not sure where. (see starfox intro to find real problem, something goes negative and it dies as you move the 64 to the left of the characters)
I think I found the mistake.

in rsp_uc00_movemem change:

rdp.light[i].dir_x = (float)(((BYTE*)gfx.RDRAM)[(a+8)^3]) / 255.0f;
rdp.light[i].dir_y = (float)(((BYTE*)gfx.RDRAM)[(a+9)^3]) / 255.0f;
rdp.light[i].dir_z = (float)(((BYTE*)gfx.RDRAM)[(a+10)^3]) / 255.0f;

to:

rdp.light[i].dir_x = (float)(((signed BYTE*)gfx.RDRAM)[(a+8)^3]) / 127.0f;
rdp.light[i].dir_y = (float)(((signed BYTE*)gfx.RDRAM)[(a+9)^3]) / 127.0f;
rdp.light[i].dir_z = (float)(((signed BYTE*)gfx.RDRAM)[(a+10)^3]) / 127.0f;

the light directions are signed byte values ranging from -127 to 127. This is the same mistake I made when I started doing the lighting.

Cya L8r,
Icepir8
icepir8 is offline  
Old March 5th, 2002, 20:56   #251
Ogy
3Dfx Fanatic.
 
Ogy's Avatar
 
Join Date: Dec 2001
Location: israel
Posts: 511
Ogy is a glorious beacon of light
Quote:
Originally posted by Dave2001
well, that's not Glide64 giving that error, Project64 may be doing it because of an invalid memory access in Glide64 though.

Also, RSP interpreter when I''ve tried it also had problems, make sure that the problem you're giving me does not occur with all plugins.

Anyway, about the Glide64.ini name, I meant for it to be like that. Would you rather me _REQUIRE_ that the name be Glide64.ini, because I can do that too. I did it so that you might be able to have different settings for different games. (of course I will still need to add an INI title to the plugin string for that)
firstly, about the error: i'm sorry it was my mistake... it is caused by PJ64.
secondly, about the name:i believe people will change the name as a result of wanting (like me)to have 2 or more versions of Glide64, but i didn't understand your meaning "have different settings for different games" could you or someone please elaborate.



Quote:
that color scheme is horrible!

what? it's the default color scheme for win98!
--------------------
/ ----------------- \
| /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbs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&nbsp&nbsp/ /
\ ----------------- /&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp_____ | |&nbsp&nbsp&nbsp&nbsp&nbsp/ /
--------------------- &nbsp&nbsp&nbsp&nbsp|______/&nbsp&nbsp&nbsp&nbsp/_/
Ogy is offline  
Old March 6th, 2002, 05:28   #252
Dave2001
Moderator
 
Dave2001's Avatar
 
Join Date: Dec 2001
Location: USA
Posts: 310
Dave2001 is just really nice
Ah, beautiful! Thanks Icepir8! Such a simple error... I remember having an error like this somewhere else too earlier on.
Dave2001 is offline  
Old March 6th, 2002, 08:01   #253
Dave2001
Moderator
 
Dave2001's Avatar
 
Join Date: Dec 2001
Location: USA
Posts: 310
Dave2001 is just really nice
Like my layered fog? I CANNOT get it to interpolate right!!! I've tried EVERYTHING. I was considering switching to fog coords instead of a fog table, but I can't get anything to show up when I add the fogcoord parameter. Any ideas why the fog might layer like this instead of interpolating?

(yes, I know the colors are wrong, and it's the wrong distance, these were all test values)
Attached Thumbnails
Click image for larger version

Name:	ss28.jpg
Views:	68
Size:	28.5 KB
ID:	1692  
Dave2001 is offline  
Old March 6th, 2002, 11:07   #254
Dave2001
Moderator
 
Dave2001's Avatar
 
Join Date: Dec 2001
Location: USA
Posts: 310
Dave2001 is just really nice
... and after a gazillion years of working on it, the flames FINALLY work.
Attached Thumbnails
Click image for larger version

Name:	ss29.jpg
Views:	72
Size:	86.4 KB
ID:	1694  
Dave2001 is offline  
Old March 6th, 2002, 11:30   #255
Teamz
J'aime tes seins
 
Teamz's Avatar
 
Join Date: Nov 2001
Location: Montreal (Quebec)
Posts: 385
Teamz is just really nice
Send a message via ICQ to Teamz Send a message via MSN to Teamz
wo great job man
--------------------
Knowledge is power
Teamz is offline  
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:50.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.