Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Vertex blend patch wine help... :(


  • Please log in to reply
40 replies to this topic

#1 Kenneth Lee

Kenneth Lee

    Lurker

  • Members
  • 4 posts
  • Graphics Card:ATI Radeon HD 4850
  • Operating System:Mac OS X 10.7 (Lion)

Posted 19 May 2012 - 02:05 PM

Hi guys, I've just start to use this program for two days and thought that this is amazing, although i am really stuck with patching wine builds.
so guys can you help me to patch the code in here http://pastebin.com/p0AS9NMg to a wine 1.3.18 engine please :D

thank you very much guys and if you can, can you send me a link to how to patch stuff so I can contribute next time!

#2 ValkTuna

ValkTuna

    Imitator, Intimidator, Stimulator, Simulator of Data, Eliminator

  • Members
  • 770 posts
  • LocationIn the deep dark depths of the earth... :P
  • Graphics Card:nVidia GeForce 320M 256MB.
  • Operating System:OS X 10.9 (Mavericks)
  • I like to play:SMITE, LoL, and other games that catch my attention. Usually a wide range of genres.

Posted 19 May 2012 - 02:48 PM

Aha... I had that question once, but that was solved.
Read the topic here:
http://portingteam.c...-apply-patches/

So basically you want to download the source code for wine 1.3.18 from WineHQ, and copy the code from your pastebin link.
Then you open the README document in the extracted source code, and paste the code in the README. Then save your updated README as a .patch file. You can name it whatever you want, such as vertexblendpatch.patch. You need to put the .patch extension in the name.

Once that's done, open Terminal, and type in:
cd ~/directory of your source code (select the folder, not the inside of the folder)
That'll navigate Terminal to the source code folder.
Then type in:
patch -p1 < vertexblendpatch.patch
Then Terminal will patch the source code.

After that, head on over to Wineskin Winery and build your engine.

Alternatively, I could help build it for you-- but I can only do it tomorrow, because I have to sleep now.
Posted Image
Main banner thanks to RazorPro
Avatar thanks to adini

I don't have anything else to say, I guess.

#3 Kenneth Lee

Kenneth Lee

    Lurker

  • Members
  • 4 posts
  • Graphics Card:ATI Radeon HD 4850
  • Operating System:Mac OS X 10.7 (Lion)

Posted 19 May 2012 - 07:53 PM

It looks complicated but I will give it a try first, I'll post any other problems later on, thanks for the help anyway :D

#4 Kenneth Lee

Kenneth Lee

    Lurker

  • Members
  • 4 posts
  • Graphics Card:ATI Radeon HD 4850
  • Operating System:Mac OS X 10.7 (Lion)

Posted 19 May 2012 - 08:06 PM

i dont know why i can't get winery to build the custom engine. Can you help me to patch it please? :(

#5 ValkTuna

ValkTuna

    Imitator, Intimidator, Stimulator, Simulator of Data, Eliminator

  • Members
  • 770 posts
  • LocationIn the deep dark depths of the earth... :P
  • Graphics Card:nVidia GeForce 320M 256MB.
  • Operating System:OS X 10.9 (Mavericks)
  • I like to play:SMITE, LoL, and other games that catch my attention. Usually a wide range of genres.

Posted 20 May 2012 - 02:17 AM

Yeah, sure. I'll get down to it now.
Posted Image
Main banner thanks to RazorPro
Avatar thanks to adini

I don't have anything else to say, I guess.

#6 ValkTuna

ValkTuna

    Imitator, Intimidator, Stimulator, Simulator of Data, Eliminator

  • Members
  • 770 posts
  • LocationIn the deep dark depths of the earth... :P
  • Graphics Card:nVidia GeForce 320M 256MB.
  • Operating System:OS X 10.9 (Mavericks)
  • I like to play:SMITE, LoL, and other games that catch my attention. Usually a wide range of genres.

Posted 20 May 2012 - 02:26 AM

View PostKenneth Lee, on 19 May 2012 - 02:05 PM, said:

Hi guys, I've just start to use this program for two days and thought that this is amazing, although i am really stuck with patching wine builds.
so guys can you help me to patch the code in here http://pastebin.com/p0AS9NMg to a wine 1.3.18 engine please :D

thank you very much guys and if you can, can you send me a link to how to patch stuff so I can contribute next time!

Hm- the patch is successful but it tells me that the patch is incomplete. Are you sure you got the entire patch? I'm just checking with you here. If you did, then okay. I'm going to build the engine now anyway, in case that's the actual full patch.
Posted Image
Main banner thanks to RazorPro
Avatar thanks to adini

I don't have anything else to say, I guess.

#7 ValkTuna

ValkTuna

    Imitator, Intimidator, Stimulator, Simulator of Data, Eliminator

  • Members
  • 770 posts
  • LocationIn the deep dark depths of the earth... :P
  • Graphics Card:nVidia GeForce 320M 256MB.
  • Operating System:OS X 10.9 (Mavericks)
  • I like to play:SMITE, LoL, and other games that catch my attention. Usually a wide range of genres.

Posted 20 May 2012 - 03:18 AM

Alright, it finished building.
Here:
http://www.mediafire...jvy49fmsx7nziy7

You had me play the flash games to pass the time D':
Posted Image
Main banner thanks to RazorPro
Avatar thanks to adini

I don't have anything else to say, I guess.

#8 Kenneth Lee

Kenneth Lee

    Lurker

  • Members
  • 4 posts
  • Graphics Card:ATI Radeon HD 4850
  • Operating System:Mac OS X 10.7 (Lion)

Posted 20 May 2012 - 09:41 PM

there are two vertex blending patch, one with a older engine and the one i gave you are the 1.3.18 one.
I ported it into wine and it does work but it doesn't solve the problem.... i found this code though
http://bugs.winehq.o...nt.cgi?id=35357
and it is for 1.3.23
can you just help me one more time if thats okay, if it does not solve the problem i'll just leave it then....
Thanks so much for your help man!

#9 HarleyDavis

HarleyDavis

    Lurker

  • Members
  • 3 posts
  • Graphics Card:Nvidia gforce 8600m 256mb
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:rpg, shooter, strategy

Posted 11 July 2012 - 08:53 AM

Hey there.  Im assuming you're playing an older 3drendering game that uses a form of vertex blending that is no longer in use in most NTSC format games.  This layering is only available now through an emulation of the software needed to make it work (even on windows, it's an emulation, but underneath everything, so you don't see it).  Wine is not windows, but you can have your vertex shading set to Emulation once you get your wineskin or wine-prefix built.  Use the Configuration App, and check your hardware shader.  You should be able to set your hardware shader to Emulation from there.  If not, you should be able to make a command line edit from winetricks, erasing the "hardware" from the shaders, and putting in Emulation instead.  This will allow your card to see the vertices, and blend them properly, but it may slow your games down a lot.  Make sure you set your vertex blend mode, otherwise the patch is applied, just not used.  Fix that, and you should see a difference.  PS, if you do build a wrapper and it works, see if you can upload the engine (not the wrapper, just the engine), for use with wineskin.  I know a few people who need it, but I don't have the Dev tools installed so no building right now.  good luck.

#10 d-rogerman

d-rogerman

    Lurker

  • Members
  • 3 posts
  • Graphics Card:NVIDIA GeForce 9400M
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:Story heavy games with RPG and choice elements

Posted 31 July 2012 - 02:44 PM

Folks, I was wondering if you guys can help me build a 1.1.44 wine build...Im new to this and I cant seem to get anything to wokr.

#11 d-rogerman

d-rogerman

    Lurker

  • Members
  • 3 posts
  • Graphics Card:NVIDIA GeForce 9400M
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:Story heavy games with RPG and choice elements

Posted 31 July 2012 - 02:47 PM

Plus, I dont even have any dev tools. My friend cant build for me.

#12 ovvldc

ovvldc

    Master Member

  • Members
  • 1258 posts
  • LocationEurope
  • Graphics Card:Intel Iris Plus
  • Operating System:Other OS/Not specified
  • I like to play:stories

Posted 03 August 2012 - 07:11 AM

You can download the dev tools..

#13 d-rogerman

d-rogerman

    Lurker

  • Members
  • 3 posts
  • Graphics Card:NVIDIA GeForce 9400M
  • Operating System:Mac OS X 10.6 (Snow Leopard)
  • I like to play:Story heavy games with RPG and choice elements

Posted 03 August 2012 - 07:38 AM

How the hell do I find the dev tools?

#14 doh123

doh123

    Wineskin Developer

  • Members
  • 4279 posts
  • LocationOver here
  • Graphics Card:Geforce GT 650M, Intel HD 4000, Radeon 6750, Intel HD 3000, Geforce 320m (in 3 machines)
  • Operating System:OS X 10.8 (Mountain Lion)
  • I like to play:RPG and Strategy

Posted 03 August 2012 - 12:54 PM

developer.apple.com
You can get Xcode for free there, you have to sign up, but you do not need one of the paid plans.

Maybe you can see Xcode in the Mac App Store now too if you search... ?  It installs through there anyways.

#15 zoroaster

zoroaster

    Professional Member

  • Members
  • PipPipPipPip
  • 143 posts

Posted 04 August 2012 - 08:58 PM

Yes, you can install Xcode through the App Store (it is always one of the top free apps there).

#16 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 21 May 2015 - 05:56 AM

Hi! I know this post is old, but just wondering, does the Vertex Blending patch work on OSX Wineskin?

Went to this link: https://bugs.winehq....bug.cgi?id=6955

downloaded the patch for Wine 1.7.38, and downloaded the source for Wine 1.7.38 from http://prdownloads.s...forge.net/wine/

patched the source code, and built the engine using Xcode 6.3.2.

But I don't see any difference in games like ILLUSION's "SchoolMate" Anything that needs to be done in Wineskin to "activate" the Vertex Blending functionality? (if so, how?) or the patch just doesn't work with OSX? Is it a lost cause to play many Illusion games on OSX?

Thanks!

#17 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 21 May 2015 - 02:37 PM

View Postyamete888, on 21 May 2015 - 05:56 AM, said:

Hi! I know this post is old, but just wondering, does the Vertex Blending patch work on OSX Wineskin?

Went to this link: https://bugs.winehq....bug.cgi?id=6955

downloaded the patch for Wine 1.7.38, and downloaded the source for Wine 1.7.38 from http://prdownloads.s...forge.net/wine/

patched the source code, and built the engine using Xcode 6.3.2.

But I don't see any difference in games like ILLUSION's "SchoolMate" Anything that needs to be done in Wineskin to "activate" the Vertex Blending functionality? (if so, how?) or the patch just doesn't work with OSX? Is it a lost cause to play many Illusion games on OSX?

Thanks!
I didn't catch what do you want.
If the patch is no more needed then what do you expected to obtain? Is there any glitches you found?

#18 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 21 May 2015 - 09:31 PM

View PostSlice, on 21 May 2015 - 02:37 PM, said:

I didn't catch what do you want.
If the patch is no more needed then what do you expected to obtain? Is there any glitches you found?

Hi! my question is...does the Vertex Blending patch work on OSX? I built custom wineskine engine 1.7.38 + patch (from links on my original post), but I still see broken 3D models when game runs...

is this a slam-dunk compile with Vertex Blending support and problem solved, or there's something else I need to do? or patch doesn't work on OSX for some mysterious reason?
Thanks! :-)

#19 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 22 May 2015 - 03:54 AM

If the patch do the work it should work in any OS. I see no differences and OS dependencies.
But if Wine developers don't want to accept it two years ago then it is wrong. Or Wine already has workaround to this. Choose new Wine to test.

#20 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 22 May 2015 - 05:07 AM

View PostSlice, on 22 May 2015 - 03:54 AM, said:

If the patch do the work it should work in any OS. I see no differences and OS dependencies.
But if Wine developers don't want to accept it two years ago then it is wrong. Or Wine already has workaround to this. Choose new Wine to test.

Hi! THanks for replying! I chose Wine 1.7.38, since it was the most recent version that anyone has written a Vertex Blending patch for it. Per https://appdb.winehq...cation&iId=6888 "Schoolmate" doesn't run well due to lack of Vertex Blending support in Wine.
Built latest version of Wine 1.7.43 (as of this writing), since it's not available yet in Wineskin Winery...but sadly, still same broken, disjointed, 3D models...

Tried building even older versions of Wine, like 1.1.16 with vertex blending patch...but not sure why, process bombs out...even Wine 1.5.22 + vertex blending patch also fails to build. Newer Wine versions, like 1.7.4 + vertex blending patch builds ok, but still broken, disjointed 3D models.

I was wondering if anyone has used any recent version of Wineskin with vertex blending-patched or otherwise with any of the games that need that, and got good results...since I haven't had any luck...! (of course, I could play it on Windows, but it defeats the purpose of Wine + vertex patch, doesn't it?)

Thanks!

#21 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 22 May 2015 - 03:22 PM

You say that the patch never worked.

#22 dankoB

dankoB

    Legendary Member

  • Super Moderators
  • 3011 posts
  • LocationNew Brunswick, Canada
  • Graphics Card:MacBook Pro 11,3
    Core i7 16GB
    NVIDIA GeForce GT 750M
    2GB GDDR5 vRAM
  • Operating System:macOS 10.12 (Sierra)
  • I like to play:la rockitar
Author

Posted 22 May 2015 - 08:51 PM

I've actually been able to apply this patch cleanly to the newest source (1.7.43)

Spoiler

Spoiler

Although, it fails at:

drawprim.c: In function ‘emitBlendedVertex’:
drawprim.c:107: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:114: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:123: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:163:1: warning: "/*" within comment
drawprim.c: In function ‘drawStridedSlow’:
drawprim.c:425: warning: passing argument 1 of ‘emitBlendedVertex’ discards qualifiers from pointer target type
make[1]: *** [drawprim.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Do you think clang may provide a different build outcome Slice?

#23 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 23 May 2015 - 02:34 AM

View PostSlice, on 22 May 2015 - 03:22 PM, said:

You say that the patch never worked.
Hi! Never really saw any difference on OSX for the compiles that went ok for the patched Wine sources for Vertex Blending, or the regular Wine release, as far a the 3D models are concerned, since the models were broken/disjointed in either versions (patched or unpatched)...in a desperate move, tried the earlier versions, of Wine, but those didn't build in Xcode 6.3.2, command line tools for Xcode, W2.5.5v1EngineBase, and the MacOSX10.6.sdk...
This has become an enigma...of what works...

#24 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 23 May 2015 - 08:03 AM

View PostDankoB, on 22 May 2015 - 08:51 PM, said:

I've actually been able to apply this patch cleanly to the newest source (1.7.43)

Spoiler

Spoiler

Although, it fails at:

drawprim.c: In function ‘emitBlendedVertex’:
drawprim.c:107: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:114: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:123: error: ‘struct wined3d_matrix’ has no member named ‘u’
drawprim.c:163:1: warning: "/*" within comment
drawprim.c: In function ‘drawStridedSlow’:
drawprim.c:425: warning: passing argument 1 of ‘emitBlendedVertex’ discards qualifiers from pointer target type
make[1]: *** [drawprim.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Do you think clang may provide a different build outcome Slice?
It is not a problem of compiler or libraries.
See
struct wined3d_matrix
{
	float _11, _12, _13, _14;
	float _21, _22, _23, _24;
	float _31, _32, _33, _34;
	float _41, _42, _43, _44;
};
YES, THE MATRIX DOESN"T CONTAIN MEMBER u
error: ‘struct wined3d_matrix’ has no member named ‘u’


#25 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 25 June 2015 - 07:46 AM

Hey,
there is new patch for the vertex blending. Test, please
https://dl.dropboxus....45-219g.tar.7z

#26 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 13 July 2015 - 08:08 PM

View PostSlice, on 25 June 2015 - 07:46 AM, said:

Hey,
there is new patch for the vertex blending. Test, please
https://dl.dropboxus....45-219g.tar.7z

Hi! any special thing 2 do to activate the vertex blending functionality? Just used it straight out of the box on Illusion's Hako, Sexy Beach 3...see disjointed 3D models. On Happy End Trigger, and Artificial Academy 2, something is wrong with the faces, didn't notice disjointed 3D models, but you can only see only their eyes, and mouth...but no face, or distorted face, or something really weird, and hard to explain...
Hopefully Illusion will stick with UNITY for the long run, since Illusion UNITY games seem to work ok...! (e.g. Play Girls, HaremMate, Play Club).

Thanks!

#27 SWS

SWS

    Lurker

  • Members
  • 2 posts
  • Graphics Card:NVidia Optimus
  • Operating System:Linux

Posted 07 August 2015 - 02:43 PM

View Postyamete888, on 13 July 2015 - 08:08 PM, said:

Hi! any special thing 2 do to activate the vertex blending functionality? Just used it straight out of the box on Illusion's Hako, Sexy Beach 3...see disjointed 3D models. On Happy End Trigger, and Artificial Academy 2, something is wrong with the faces, didn't notice disjointed 3D models, but you can only see only their eyes, and mouth...but no face, or distorted face, or something really weird, and hard to explain...
Hopefully Illusion will stick with UNITY for the long run, since Illusion UNITY games seem to work ok...! (e.g. Play Girls, HaremMate, Play Club).

Thanks!

I think these games use indexed vertex blending which is not supported in the latest vertex blended support added in 1.7.47.
I've added a bug (https://bugs.winehq....ug.cgi?id=39057), there is also a patch which works for me for AG3. If you can test this patch with wine 1.7.47 and add some details to bugzilla (some details for bug appearance in games and if it fixes that for you) maybe it will help this bug to be fixed permanently.

#28 Slice

Slice

    Veteran Member

  • Members
  • PipPipPipPipPip
  • 305 posts
  • Graphics Card:AMD Radeon HD6670, GTX650
  • Operating System:OS X 10.11 (El Capitan)
  • I like to play:Heroes III
    4x4 Evolution
    made Heroes VI working!

Posted 10 November 2015 - 11:08 AM

View PostSWS, on 07 August 2015 - 02:43 PM, said:

I think these games use indexed vertex blending which is not supported in the latest vertex blended support added in 1.7.47.
I've added a bug (https://bugs.winehq....ug.cgi?id=39057), there is also a patch which works for me for AG3. If you can test this patch with wine 1.7.47 and add some details to bugzilla (some details for bug appearance in games and if it fixes that for you) maybe it will help this bug to be fixed permanently.
As I see wine maintainers ignored you?

I am a programmer making my own Wine engine named Sherry based on WineStaging and including some patches still not accepted in the mainstream. I like your patch and include it in my new engine.
https://dl.dropboxus...7.54-2-g.tar.7z
I have no applications to see the effect but I can say that all others works fine.

#29 yamete888

yamete888

    Regular Member

  • Members
  • Pip
  • 19 posts
  • Graphics Card:intel hd
  • Operating System:Other OS/Not specified

Posted 29 November 2015 - 02:35 AM

View PostSWS, on 07 August 2015 - 02:43 PM, said:

I think these games use indexed vertex blending which is not supported in the latest vertex blended support added in 1.7.47.
I've added a bug (https://bugs.winehq....ug.cgi?id=39057), there is also a patch which works for me for AG3. If you can test this patch with wine 1.7.47 and add some details to bugzilla (some details for bug appearance in games and if it fixes that for you) maybe it will help this bug to be fixed permanently.

Hi! been away for a while, since the issue has been lingering for so long, and somehow, patches that "suppossedly" worked on linux to fix the broken 3D models never worked when applied to OSX Wine. Thank you very much!!!!!!! tried your patch for wine 1.8-rc1 on https://bugs.winehq....ug.cgi?id=39057 and for the first time, finally some ILLUSION games, like AG3, HAKO, & Sexy Beach 3 look fine...! Not sure what other ILLUSION games use "Indexed Vertex Blending" , but looks like  at least Schoolmate & @Housemate (and perhaps others) don't, since they look weird...!

#30 ovvldc

ovvldc

    Master Member

  • Members
  • 1258 posts
  • LocationEurope
  • Graphics Card:Intel Iris Plus
  • Operating System:Other OS/Not specified
  • I like to play:stories

Posted 01 December 2015 - 06:05 AM

View PostSlice, on 10 November 2015 - 11:08 AM, said:

I am a programmer making my own Wine engine named Sherry based on WineStaging and including some patches still not accepted in the mainstream. I like your patch and include it in my new engine.

Have you tried submitting your patches to staging?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users