sPatch FAQ


Frequently Asked Questions regarding Mike Clifton's sPatch.

Q:How do I import DXF, 3DS, etc. format models into sPatch?

A: You have to use hamaPatch to import an Animation Master file and then export it as an sPatch file. The following are the instructions for getting the model into Animation Master format and the usage of hamaPatch afterwards: First use a program such as
Crossroads 3D, 3DWin or whatever graphic file format converter you prefer. Open the desired file and save it or export it as 3DS format. Then use IOB Object Browser to convert the 3DS file into Animation Master .mdl format. Animation Master .mdl objects can be imported into hamaPatch as spline patch models for you to edit. This is not a great way to do it though, if your file is large you may be waiting for quite some time while hamaPatch loads it and many times there are several holes in the model. I usualy only use this method to bring part of the object in and then build a totaly new identical object in another layer using the imported one as a guide.

Q:How do I create holes in my objects?

A: Holes are created in sPatch by an absence of information in the desired area. If four points are needed to make a patch, then five or more would create a hole. If you wanted a cylindrical hole through a box, follow these steps:
The absence of connections within the wi circles creates a hole. In a way we used the booleans idea to difference a cylinder with a box. Often times you must think ahead and create the shape around the hole.

Q:How do I turn off grid snap but leave on the grid?

A: You cannot directly do this. However, you can open some layer (I use layer 8) and turn on the grid of the desired setting. Zoom out and draw a vertical 2 point spline snapped to the grid (this spline should be as long as you wish the grid to appear). Now copy and paste or use the clone tool and translate that spline one grid space until the grid is as wide as you want it to appear. Repeat the process with a horizontal 2 point spline until the desired grid area is covered (do not connect any splines). Turn off the grid and switch back to the working layer. In the background the newly created grid will be visible, but no snapping will occur. Whenever you want snap turned on just turn the grid back on via the menu and it should line up well enough with the created grid to not matter if both grids are visible. If you find yourself creating the same grid often, save the grid all by itself, delete the spt extension, and move the file into the Clip Shapes directory of the sPatch directory.

Q:Where can I get the sPatch source code?

A: The following material was posted by the specified people at the specified times to the former sPatch message board (now closed). It basicaly says you cannot get the source, whyit is unavailable, and explains why you do not need it to learn how to make a similar program.

ddombrow
04/27/01 11:02 PM

RE: Open Sourcing sPatch?

Hey guys,

I've been following spatch/hamapatch for a while. In fact I maintain the english hamapatch mirror at www.hamapatch.t2u.com (though not very diligently).

Hamakazu could not have obtained the source, at least not legally. Mike Cliffton, who seems to have disappeared entirely from the net, couldn't release the source because he used code from the company he worked for. If he released it he could probably be sued/fired or something.

I don't know what the possibility of getting hamaPatch's source, or what difficulties there would be because of the english/japanese barrier.

rsanta74
05/04/01 1:41 PM

RE: Open Sourcing sPatch?

Hi people,
I contacted Mike Clifton about a year ago regarding any potential updates. He had stated that he was POSSIBLY considering taking up the sPatch project again, but that was a year ago. Basically, it's dead as a doornail. As for duplicating his work....easy as pie. Who needs his code anyway. The technique isn't proprietary or anything. The fact is that sPatch & Hamapatch are just Animation Master clones. As most people already know, that program uses so-called "Hash Patches". In reality, all they are are Coons patches. Coons Patches are bezier surfaces defined by 12 control points, which is 4 less than bicubic beziers which are 16. These 12 control points define the 4 perimeter curves that make up the patch. At runtime, the interior 4 control points that are missing are regenerated to form a 16 point bicubic bezier surface. In fact, sPatch exports to POVRAY in bicubic form, which is proof enough. I have an older document written by Martin Hash (AM creator) himself. It describes a technique for generating Coons/Hash patches used by Animation Master, Hamapatch, & sPatch. Anybody interested? Just e-mail me. I'll send the doc and the errata. I originally found it on Howard Trickey's homepage. From that point it's even easier. There's tons of docs on the net for rendering and optimizing bicubic patches. Hamakazu really never needed to get the sPatch source at all. Instead, he probably just researched the technique like I did.

Q:How do I contact Mike Clifton for sPatch questions or source information?

A: Sadly, I do not know. All of the email addresses credited to Mike Clifton to which I have mailed have either returned an invalid address message or no reply has been sent back at all. You can email
draven2561@hotmail.com you can also use the sPatch Message Board or the sPatch/hamaPatch Forum at Yahoo! groups for any questions regarding the usage of sPatch. The source issue has been addressed above.

Q:What is the sPatch file format specification?

A:
Anto Matkovic has written a good analysis at his site located here:
http://matkovic.com/anto/spatch_file_example.txt
Also Hamakazu has released the source code for a program he wrote which reads an sPatch file and displays it. Available here:
http://www.geocities.com/Tokyo/Ginza/6625/source.html

FAQ compiled by Jonathan Lee January 06, 2002.
Contact draven2561@hotmail.com for further questions or comments/suggestions.
BACK