Regarding Model Decompile/Recompile

A Forum Thread for Counter-Strike 1.6

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Ring-A-Ding Rampage points.
  • Post: Give Ring-A-Ding Rampage your thoughts on this Thread.
  • Vote: Help Ring-A-Ding Rampage win the Monthly Awards.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

Updates

Added Images
  • Addition Images added since people did not seem to notice such differences.
Ring-A-Ding Rampage avatar
Ring-A-Ding Rampage username pic Joined 7y ago
In Continuum
2,404 points Ranked 2001st
71 medals 9 legendary 18 rare
  • Submitted 60 Sprites Medal icon
  • Thanked 500 submitters Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
  • Submitted 100 Skins Medal icon
  • Reached 100 subscribers Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
Ring-A-Ding Rampage avatar
Ring-A-Ding Rampage
3d
I have noticed that decompiling a model and subsequently recompiling it without even modifying will still result in slight differences on the model.

I am not talking about the UV, I have used DoomMusic's StudioMDL to fix the UV positioning. Rather, some kind of distortion occurs after every decompile/compile.

For example, the width of the gun seems to get slightly smaller.

I tried scaling the mesh by 0.01 on all dimensions and the end result matched the original almost perfectly but there were still minor aberrations.

Note that the differences I speak of are so small that they would be difficult to notice unless you compare the original and recompiled versions side-by-side.

Is this a problem occurring due to the decompiler or is it occurring due to the compiler?

So is there any fix to this problem, or a strategy to be followed while compiling/decompiling stuff?






2nd image - Differences in the triangles as seen via Git Diff - left is the recompile of original and right is the recompile of the recompile.

Posts

  • 12d
    Xx MAHA xX avatar
    Xx MAHA xX Joined 2y ago
    Offline
    6,633 points Ranked 689th
    18 medals 4 rare
    • Received thanks 50 times Medal icon
    • Thanked 50 submitters Medal icon
    • Returned 1000 times Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • One month a member Medal icon
    • Reached 1,000 Points Medal icon
    First of all, I like to know u have submitted this thread as a "CREATOR" or as a "REDISTRIBUTOR"?  lol
    • Creative x 1
    Ya Allah Sobhan
  • 11d
    andiargetlam avatar
    andiargetlam username pic Joined 6mo ago
    Connecting.....
    Outlaws Flag Affiliation: Outlaws
    938 points Ranked 5318th
    17 medals 1 legendary 3 rare
    • 2017 Top Contributor Medal icon
    • 10 submissions featured Medal icon
    • GameBanana’s Christmas Giveaway 2017 Day Nine Winner! Medal icon
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    andiargetlam avatar
    andiargetlam
    Outlaws Flag
    Affiliation
    Outlaws
    I've tried DoomMusic's studiomdl, but it seems it can't support $cliptotextures (though i don't really know what it means) and i failed compiling every time i use that studiomdl

    But with other studiomdl i never encounter problem like yours
    Artistic Recoil avatar
    Mantra
    Artistic Recoil
  • 11d
    Xx MAHA xX avatar
    Xx MAHA xX Joined 2y ago
    Offline
    6,633 points Ranked 689th
    18 medals 4 rare
    • Received thanks 50 times Medal icon
    • Thanked 50 submitters Medal icon
    • Returned 1000 times Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    • One month a member Medal icon
    • Reached 1,000 Points Medal icon
    U are right, "decompiling a model and subsequently recompiling it without even modifying will still result in slight differences on the model." 
    And that slight differences are caused by DECOMPILING. 
    I have created a box with the size of 64X64X64, and Compile it, when imported the model in the map, all sizes were matched with the source refrences.
    Another bugs usually caused by decompiling are "messing sequence,uv,mesh up".
    Ya Allah Sobhan
  • 11d
    [PRince_4] Sharma avatar
    [PRince_4] Sharma Joined 2y ago
    JOB---
    IND Industry! Flag Affiliation: IND Industry!
    5,639 points Ranked 830th
    26 medals 1 legendary 5 rare
    • 30 submissions featured Medal icon
    • 10 submissions featured Medal icon
    • Received thanks 50 times Medal icon
    • Thanked 50 submitters Medal icon
    • 8-14 Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • Returned 1000 times Medal icon
    [PRince_4] Sharma IND Industry! Flag
    Affiliation
    IND Industry!
    That is just because the original compiler used a different version of compiles or used some other "$" commands like "$origin" in his ".qc" that were not in the decompiled one , try verbose setting with decompiler program.
    Slicin' My Way 2 TOP! avatar
    Mantra
    Slicin' My Way 2 TOP!
  • 11d
    CS PRO avatar
    CS PRO username pic Joined 4y ago
    HL Manager CS:CZ Manager
    Catch Me L8r
    CS:GO Ports Flag Affiliation: CS:GO Ports
    9,468 points Ranked 479th
    35 medals 4 legendary 5 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    CS PRO avatar
    CS PRO
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    Try using Crowbar toolkit. It supports Goldsrc now.

    Though i never experienced that before..
    Still Alive.. avatar
    Mantra
    Still Alive..
  • 3d
    Ring-A-Ding Rampage avatar
    Ring-A-Ding Rampage username pic Joined 7y ago
    In Continuum
    2,404 points Ranked 2001st
    71 medals 9 legendary 18 rare
    • Submitted 60 Sprites Medal icon
    • Thanked 500 submitters Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • Submitted 100 Skins Medal icon
    • Reached 100 subscribers Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    Ring-A-Ding Rampage avatar
    Ring-A-Ding Rampage
    (づ。◕‿‿◕。)づ
    Xx MAHA xX, andiargetlam, [PRince_4] Sharma, CS PRO : There you go, now it should be much more clear.

    I know the differences are so small that it may seem that I am nitpicking but certain geometry does become uglier and I hate it.

    Have already used Crowbar before posting here, similar results. I haven't compared which one is more accurate though, will do that next.
    • Agree x 1
    • Interesting x 1
    Sleep is for the weak. avatar
    Mantra
    Sleep is for the weak.
  • 3d
    Bloody Death Skull avatar
    Bloody Death Skull username pic Joined 2y ago
    Killing Demons
    1,742 points Ranked 2769th
    22 medals 1 legendary 4 rare
    • 2017 Top Contributor Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Reached 50 subscribers Medal icon
    • Thanked 50 submitters Medal icon
    • One month a member Medal icon
    this is getting me worried :/...
    I Dont Give Fucks I Give Shots
  • 2d
    CS PRO avatar
    CS PRO username pic Joined 4y ago
    HL Manager CS:CZ Manager
    Catch Me L8r
    CS:GO Ports Flag Affiliation: CS:GO Ports
    9,468 points Ranked 479th
    35 medals 4 legendary 5 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    CS PRO avatar
    CS PRO
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    I'll send the link of this thread to the dev, I guess he'll know what's going on..
    Still Alive.. avatar
    Mantra
    Still Alive..

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Submitter

Ring-A-Ding Rampage avatar
Ring-A-Ding Rampage username pic Joined 7y ago
In Continuum
2,404 points Ranked 2001st
71 medals 9 legendary 18 rare
  • Submitted 60 Sprites Medal icon
  • Thanked 500 submitters Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
  • Submitted 100 Skins Medal icon
  • Reached 100 subscribers Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon

Ring-A-Ding Rampage avatar
Ring-A-Ding Rampage
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
27
Views
259
Date Added
12d
Date Modified
3d
Date Updated
3d
bcp.crwdcntrl.net tracking pixel