[Patch] Near-Far Planes

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

[Patch] Near-Far Planes

Postby HarryTuttle » Sat Apr 15, 2017 1:38 pm

The real issue is described here: http://www.supermodel3.com/Forum/viewtopic.php?f=2&t=1338#p12488 or here: http://www.supermodel3.com/Forum/viewtopic.php?f=2&t=1338&start=50#p11621.

The following patch (against r601) is a temporary but good workaround to "sanitize" those junk near/far values. I just pass the values as they are to the "CNew3D::CalcViewport" function, the sanitization process take place inside it. I've taken extra care to avoid any strange corner case, but as always, testing is encouraged.

This fixes the issues in Ocean Hunter described in the above links, plus many other little ones in Star Wars Trilogy, Skichamp intro, and maybe others I'm not aware of.

Good testing :)
Attachments
diff.zip
(1.01 KiB) Downloaded 50 times
Last edited by HarryTuttle on Sat Apr 15, 2017 5:42 pm, edited 1 time in total.
User avatar
HarryTuttle
 
Posts: 558
Joined: Thu Mar 09, 2017 8:57 am

Re: [Patch] Near-Far Planes

Postby HarryTuttle » Sat Apr 15, 2017 5:40 pm

Updated the patch on first post.

In function "CNew3D::CalcViewport" clean only non-stub values passed, i.e. near = 1 and far = 1'000.
User avatar
HarryTuttle
 
Posts: 558
Joined: Thu Mar 09, 2017 8:57 am

Re: [Patch] Near-Far Planes

Postby MakutaMaster962 » Thu Apr 20, 2017 8:34 am

I was able to test out the patch yesterday, and I am pleased to report that the patch does indeed fix the issue in Ocean Hunter that I had reported last month. :) Another thing I noticed was that the messed-up fin textures on a few of the enemies have also been fixed as well. Examples include the barracudas in Level 1, the lanternfish in Level 3, and the piranhas in Level 4. Only one slight issue remains to be fixed in Ocean Hunter which I shall address in another new topic.
MakutaMaster962
 
Posts: 14
Joined: Wed Mar 08, 2017 7:50 am

Re: [Patch] Near-Far Planes

Postby sonic32 » Sun Oct 22, 2017 3:15 am

hi,

Scud race does not show smoke for the car in a change of looks (in car).

When looking at the car, the smoke looks good.
---------------------------------------------------------------------
In Daytona 2, smoke always appears when changing the look.

Is it possible to do Hack for the Scud race game?

Japan Version is ok

It's a very old mistake
Attachments
2.jpg
Australian version
2.jpg (215.85 KiB) Viewed 281 times
1.jpg
Japan version
1.jpg (192.36 KiB) Viewed 281 times
User avatar
sonic32
 
Posts: 95
Joined: Tue Dec 20, 2011 11:43 am
Location: Slovakia

Re: [Patch] Near-Far Planes

Postby HarryTuttle » Sun Oct 22, 2017 4:34 am

Confirmed. When opponents car emits smoke, changing point of view makes it disappear.

Don't know why it happens, maybe it's a design choice for that particular version. I don't think it's an emulator bug.
User avatar
HarryTuttle
 
Posts: 558
Joined: Thu Mar 09, 2017 8:57 am

Re: [Patch] Near-Far Planes

Postby sonic32 » Sun Oct 22, 2017 5:19 am

Thank you, Harry, for your explanation, thank you for yours and Ian's work. :)
User avatar
sonic32
 
Posts: 95
Joined: Tue Dec 20, 2011 11:43 am
Location: Slovakia


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest