Page 1 of 1

[Patch] Near-Far Planes

PostPosted: Sat Apr 15, 2017 1:38 pm
by HarryTuttle
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 :)

Re: [Patch] Near-Far Planes

PostPosted: Sat Apr 15, 2017 5:40 pm
by HarryTuttle
Updated the patch on first post.

In function "CNew3D::CalcViewport" clean only non-stub values passed, i.e. near = 1 and far = 1'000.

Re: [Patch] Near-Far Planes

PostPosted: Thu Apr 20, 2017 8:34 am
by MakutaMaster962
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.

Re: [Patch] Near-Far Planes

PostPosted: Sun Oct 22, 2017 3:15 am
by sonic32
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

Re: [Patch] Near-Far Planes

PostPosted: Sun Oct 22, 2017 4:34 am
by HarryTuttle
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.

Re: [Patch] Near-Far Planes

PostPosted: Sun Oct 22, 2017 5:19 am
by sonic32
Thank you, Harry, for your explanation, thank you for yours and Ian's work. :)